mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Fix wrong handler for PVDZ_Server_processCode
Vanilla development commit:
afbedde9fa
This commit is contained in:
@@ -207,8 +207,11 @@ if (isServer) then {
|
||||
diag_log format["WARNING: %1",_info];
|
||||
};
|
||||
|
||||
"PVDZ_Server_processCode" addPublicVariableEventHandler {(_this select 1) call pvs_processSetAccessCode};
|
||||
"PVDZ_Server_processSetAccessCode" addPublicVariableEventHandler {(_this select 1) call pvs_processSetAccessCode};
|
||||
|
||||
"PVDZ_Server_processCode" addPublicVariableEventHandler {(_this select 1) call pvs_processAccessCode};
|
||||
|
||||
/*
|
||||
"PVDZ_Server_processSetAccessCode" addPublicVariableEventHandler {
|
||||
private ["_unitSending","_object","_object","_code"];
|
||||
_unitSending = (_this select 1) select 0;
|
||||
@@ -240,6 +243,7 @@ if (isServer) then {
|
||||
diag_log format["WARNING: %1, %2 is trying to set a code for a gate he does not own.",(name _unitSending),(getPlayerUID _unitSending)];
|
||||
};
|
||||
};
|
||||
*/
|
||||
|
||||
"PVDZ_Server_buildLock" addPublicVariableEventHandler {
|
||||
_object = (_this select 1) select 0;
|
||||
@@ -304,16 +308,16 @@ if (!isDedicated) then {
|
||||
_object setVariable ["dayz_padlockLockStatus", false,true];
|
||||
_object setVariable ["isOpen", "1", true];
|
||||
_object setVariable ["dayz_padlockHistory", [], true];
|
||||
format [localize "STR_BLD_UNLOCKED",typeOf _object] call dayz_rollingMessages;
|
||||
format[localize "STR_BLD_UNLOCKED",typeOf _object] call dayz_rollingMessages;
|
||||
} else {
|
||||
format [localize "STR_BLD_WRONG_COMBO",typeOf _object] call dayz_rollingMessages;
|
||||
format[localize "STR_BLD_WRONG_COMBO",typeOf _object] call dayz_rollingMessages;
|
||||
_object setVariable ["dayz_padlockHistory", _codeGuess, true];
|
||||
};
|
||||
};
|
||||
|
||||
"PVCDZ_Client_processAccessCode" addPublicVariableEventHandler {
|
||||
_codeGuess = (_this select 1) select 0;
|
||||
format [localize "STR_BLD_COMBO_SET",_codeGuess] call dayz_rollingMessages;
|
||||
format[localize "STR_BLD_COMBO_SET",_codeGuess] call dayz_rollingMessages;
|
||||
};
|
||||
|
||||
// EPOCH ADDITION
|
||||
|
||||
Reference in New Issue
Block a user