ACE3/TO_MERGE/ace/sys_cargo/fnc_init.sqf
Giallustio e5f02f8d63 sys_cargo
sys_cargo to merge
2015-01-30 00:19:13 +01:00

23 lines
636 B
Plaintext

/* ace_sys_cargo | (c) 2014 by rocko */
//#define DEBUG_MODE_FULL
#include "script_component.hpp"
if (productVersion select 2 <= 110) exitWith {};
PARAMS_1(_vehicle);
_m = getMass _vehicle;
_com = getCenterOfMass _vehicle;
_currentcontent = _vehicle getVariable [QGVAR(content), []];
if (count _currentcontent > 0) then {
_vehicle setVariable [QGVAR(content), []];
_error = format["You cannot bypass the loading function for (%1) - ",_vehicle]; TRACE_1("Content hack detected","");
WARNING(_error);
};
_vehicle setVariable [QGVAR(mass),_m];
_vehicle setVariable [QGVAR(comass),_com];
_vehicle setVariable [QGVAR(ready),true];