mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Apply suggestions from code review
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
56c7b72bba
commit
ac1e2eb5de
@ -39,7 +39,7 @@
|
|||||||
[QGVAR(unloadedCargoOnKilled), {
|
[QGVAR(unloadedCargoOnKilled), {
|
||||||
params ["_item", "_vehicle"];
|
params ["_item", "_vehicle"];
|
||||||
private _velocity = velocity _vehicle apply {_x / CARGO_TUMBLE_VELOCITY_DIVISOR};
|
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 setVelocity _velocity;
|
||||||
_item addTorque _torque;
|
_item addTorque _torque;
|
||||||
|
@ -19,9 +19,7 @@
|
|||||||
|
|
||||||
params ["_object"];
|
params ["_object"];
|
||||||
|
|
||||||
private _killed = false;
|
private _killed = count _this > 1; // The Killed event has 4 params. The Deleted event only has 1 param.
|
||||||
|
|
||||||
if (count _this > 1) then {_killed = true}; // The Killed event has 4 params. The Deleted event only has 1 param.
|
|
||||||
|
|
||||||
private _loaded = _object getVariable [QGVAR(loaded), []];
|
private _loaded = _object getVariable [QGVAR(loaded), []];
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
* 3: Deploy parameters <ARRAY> (default: [])
|
* 3: Deploy parameters <ARRAY> (default: [])
|
||||||
* - 0: Position AGL <ARRAY>
|
* - 0: Position AGL <ARRAY>
|
||||||
* - 1: Direction <NUMBER>
|
* - 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:
|
* Return Value:
|
||||||
* Object unloaded <BOOL>
|
* Object unloaded <BOOL>
|
||||||
|
@ -502,7 +502,7 @@
|
|||||||
<English>Unload Cargo On Killed</English>
|
<English>Unload Cargo On Killed</English>
|
||||||
</Key>
|
</Key>
|
||||||
<Key ID="STR_ACE_Cargo_unloadOnKilled_description">
|
<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>
|
||||||
<Key ID="STR_ACE_Cargo_loadTimeCoefficient">
|
<Key ID="STR_ACE_Cargo_loadTimeCoefficient">
|
||||||
<English>Load Time Coefficient</English>
|
<English>Load Time Coefficient</English>
|
||||||
|
Loading…
Reference in New Issue
Block a user