ACE3/TO_MERGE/ace/sys_cargo/fnc_init.sqf

23 lines
636 B
Plaintext
Raw Normal View History

2015-01-29 23:18:45 +00:00
/* 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];