-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vehicle turret magazine reload port #410
base: unstable
Are you sure you want to change the base?
Vehicle turret magazine reload port #410
Conversation
couldn't find where to put a disable/enable parametr, probably could add it at the beginning of each sqf file |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally should make ReloadRepackTurretMagazines
shorter, perhaps abbreviate it. Also change the class in CfgFunctions.hpp
accordingly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does this PR actually achieve? As far as I can tell there's no front end support to use the reload script, so isn't it a bit useless for 99% of people?
|
||
class reload_repack_turret_magazines { | ||
file = QPATHTOFOLDER(Scripts\RRTurretMagazines\scripts); | ||
class postInit {}; | ||
class reloadTurret {}; | ||
class monitorMagazines {}; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't this class postInit
overwrite the original A3A_fnc_postInit
? That would be a very critical issue
If it's going to be called by execVM
then you don't actually need to define it here anyway
private _ammoThisMag = selectMin [_fullCount, _totalAmmo]; | ||
_magsAdd pushBack [_currentMagazine, _turretPath, _ammoThisMag]; | ||
_totalAmmo = _totalAmmo - _ammoThisMag; | ||
_message = _message + str _ammoThisMag + ([", ", ""] select (_i == _magsCount)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[", ", ""]
Is this not an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it works, so ...no? I mean, you tried this PR right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried many other pulls and they "worked", until they didn't
Literally the point of reviewing, I see a syntax issue so I point it out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc, at first it was [",", ""]
, I added additional space after comma so created text would look better [", ", ""]
A3A/addons/core/Scripts/RRTurretMagazines/scripts/fn_reloadTurret.sqf
Outdated
Show resolved
Hide resolved
A3A/addons/core/Scripts/RRTurretMagazines/scripts/fn_monitorMagazines.sqf
Outdated
Show resolved
Hide resolved
…ret.sqf Co-authored-by: Silence <[email protected]>
…gazines.sqf Co-authored-by: Silence <[email protected]>
What type of PR is this?
What have you changed and why?
Information:
Ported + translated this mod/script https://github.com/ampersand38/reload-repack-turret-magazines , because it seems usefull
Please specify which Issue this PR Resolves (If Applicable).
"This PR closes #XXXX!"
Please verify the following.
Is further testing or are further changes required?
How can the changes be tested?
Steps:
Notes: