Commit 5d78675a authored by Razer's avatar Razer
Browse files

Decreased network traffic for few variables

parent 568f0993
......@@ -14,6 +14,8 @@
params["_cursor","_parameters"];
if([_parameters select 0] call ACT_fnc_checkItems) then {
player action ["SwitchWeapon",player,player,-1];
player switchMove "amovpercmstpsnonwnondnon";
if (["playActionNow","dsr_act_gut_corpse"] call BASE_fnc_doAction) then {
[_cursor, player, "Gut", 4] remoteExec ["ACT_fnc_gut", 2];
};
......
......@@ -14,10 +14,10 @@ if (count _lock > 4) then {
// TODO REMOVE WHEN NEXT DB WIPE IS REQUIRED
_lock resize 4;
_object setVariable ["APMS_UnlockCode",_lock,true];
_object setVariable ["APMS_updateRequired",true,true];
_object setVariable ["APMS_updateRequired",true,2];
};
if(_combo isEqualTo _lock) then {
_object setVariable ["APMS_updateRequired",true,true];
_object setVariable ["APMS_updateRequired",true,2];
for "_i" from 1 to 10 do {
_object setVariable ["bis_disabled_Door_" + str(_i),1,true]; // disable door access
......
......@@ -19,10 +19,10 @@ if (count _lock > 4) then {
// TODO REMOVE WHEN NEXT DB WIPE IS REQUIRED
_lock resize 4;
_object setVariable ["APMS_UnlockCode",_lock,true];
_object setVariable ["APMS_updateRequired",true,true];
_object setVariable ["APMS_updateRequired",true,2];
};
if(_combo isEqualTo _lock) then {
_object setVariable ["APMS_updateRequired",true,true];
_object setVariable ["APMS_updateRequired",true,2];
player setVariable ["DS_var_wrongCodeTimes",nil];
for "_i" from 1 to 10 do {
......
......@@ -22,8 +22,8 @@ OM_var_collisionForce = 0;
OM_var_lifted setMass (OM_var_lifted getVariable ["oMass",5]);
OM_var_lifted setVariable ["APMS_positionAdvanced", nil, true];
OM_var_lifted setVariable ["APMS_updateRequired",true,true];
OM_var_lifted setVariable ["APMS_positionAdvanced",nil,2];
OM_var_lifted setVariable ["APMS_updateRequired",true,2];
OM_var_lifted = objNull;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment