-
Notifications
You must be signed in to change notification settings - Fork 737
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
Rearm - Pylon Support and Dynamically Add Supply Actions #5183
Conversation
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.
Pylon support 👍
Pylon hardpoint caching 👍
Dynamic actions 👍
One file with borked indentation 👎
Don't really like how every single function checks for argument input correctness and how they are spread into multiple lines because of that, but I won't make that stop the merge, just a comment. Not sure about performance at all.
* | ||
* Arguments: | ||
* 0: Ammo Truck <OBJECT> | ||
* 1: Vehicle object or Vehicle class <OBJECT><STRING> |
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.
Not true, params
only accepts object.
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.
For 2nd arg string is fine
params [["_truck", objNull, [objNull]], ["_vehicle", objNull, [objNull, ""]]];
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.
Clearly I am blind.
|
||
private _turretConfig = _this call CBA_fnc_getTurret; | ||
|
||
getArray (_turretConfig >> "magazines") |
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.
2 lines seem a bit redundant, just getArray (_this call CBA_fnc_getTurret >> "magazines")
would do.
|
||
|
||
private _actionReadSupplyCounter = [ // GVAR(supply) > 0 | ||
QGVAR(ReadSupplyCounter), |
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.
Indent? (whole file)
Are the |
@@ -3,7 +3,7 @@ | |||
#include "\z\ace\addons\main\script_mod.hpp" | |||
|
|||
// #define DEBUG_MODE_FULL | |||
// #define DISABLE_COMPILE_CACHE | |||
#define DISABLE_COMPILE_CACHE |
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.
eh?
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.
Was commented out again in #5260.
Merge after #5182
Progress on issue #5180 and #5173