Apply suggestions from code review

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
Drofseh 2024-05-31 09:14:05 -07:00 committed by GitHub
parent 56c7b72bba
commit ac1e2eb5de
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 6 deletions

View File

@ -39,7 +39,7 @@
[QGVAR(unloadedCargoOnKilled), {
params ["_item", "_vehicle"];
private _velocity = velocity _vehicle apply {_x / CARGO_TUMBLE_VELOCITY_DIVISOR};
private _torque = _vehicle vectorModelToWorld [random CARGO_TUMBLE_TORQUE,0,0];
private _torque = _vehicle vectorModelToWorld [random CARGO_TUMBLE_TORQUE, 0, 0];
_item setVelocity _velocity;
_item addTorque _torque;

View File

@ -19,9 +19,7 @@
params ["_object"];
private _killed = false;
if (count _this > 1) then {_killed = true}; // The Killed event has 4 params. The Deleted event only has 1 param.
private _killed = count _this > 1; // The Killed event has 4 params. The Deleted event only has 1 param.
private _loaded = _object getVariable [QGVAR(loaded), []];

View File

@ -10,7 +10,7 @@
* 3: Deploy parameters <ARRAY> (default: [])
* - 0: Position AGL <ARRAY>
* - 1: Direction <NUMBER>
* 4: Unload only if stable <BOOL> (default: true) (Applies only if arguemnt 3 is default)
* 4: Unload only if stable <BOOL> (default: true) (Applies only if argument 3 is [])
*
* Return Value:
* Object unloaded <BOOL>

View File

@ -502,7 +502,7 @@
<English>Unload Cargo On Killed</English>
</Key>
<Key ID="STR_ACE_Cargo_unloadOnKilled_description">
<English>The chance for each cargo loaded into a vehicle to be unloaded if the vehicle is killed. [Only Objects]</English>
<English>The chance for each cargo loaded into a vehicle to be unloaded if the vehicle is killed.\nApplies to objects only.</English>
</Key>
<Key ID="STR_ACE_Cargo_loadTimeCoefficient">
<English>Load Time Coefficient</English>