Common - Add lockInventory status effect (#9402)

Add lockInventory status effect
This commit is contained in:
Jasper 2023-09-22 18:02:09 +02:00 committed by GitHub
parent 11664b0040
commit 6f58830603
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,6 +28,7 @@
["setHidden", true, ["ace_unconscious"]] call FUNC(statusEffect_addType); ["setHidden", true, ["ace_unconscious"]] call FUNC(statusEffect_addType);
["blockRadio", false, [QEGVAR(captives,Handcuffed), QEGVAR(captives,Surrendered), "ace_unconscious"]] call FUNC(statusEffect_addType); ["blockRadio", false, [QEGVAR(captives,Handcuffed), QEGVAR(captives,Surrendered), "ace_unconscious"]] call FUNC(statusEffect_addType);
["blockSpeaking", false, ["ace_unconscious"]] call FUNC(statusEffect_addType); ["blockSpeaking", false, ["ace_unconscious"]] call FUNC(statusEffect_addType);
["lockInventory", true, []] call FUNC(statusEffect_addType);
[QGVAR(forceWalk), { [QGVAR(forceWalk), {
params ["_object", "_set"]; params ["_object", "_set"];
@ -120,6 +121,12 @@
_object setMass _mass; _object setMass _mass;
}] call CBA_fnc_addEventHandler; }] call CBA_fnc_addEventHandler;
[QGVAR(lockInventory), {
params ["_object", "_set"];
TRACE_2("lockInventory EH",_object,_set);
_object lockInventory (_set > 0);
}] call CBA_fnc_addEventHandler;
//Add a fix for BIS's zeus remoteControl module not reseting variables on DC when RC a unit //Add a fix for BIS's zeus remoteControl module not reseting variables on DC when RC a unit
//This variable is used for isPlayer checks //This variable is used for isPlayer checks
if (isServer) then { if (isServer) then {