mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
e5f02f8d63
sys_cargo to merge
23 lines
636 B
Plaintext
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];
|
|
|