mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-12 19:22:56 +03:00
Add basic security checks to object_killed
PVDZ_veh_Save = [_obj,"killed"]; could be abused in the same way as
server_deleteObj (42e0047)
This commit is contained in:
@@ -68,7 +68,7 @@ player addMagazine _emptycan;
|
||||
PVDZ_obj_Destroy = [_objectID,_objectUID,player,_obj,dayz_authKey,false];
|
||||
publicVariableServer "PVDZ_obj_Destroy";
|
||||
|
||||
PVDZ_veh_Save = [_obj, "killed"];
|
||||
PVDZ_veh_Save = [_obj,"killed",false,false,dayz_playerUID,dayz_authKey];
|
||||
publicVariableServer "PVDZ_veh_Save";
|
||||
|
||||
//Set fire to item
|
||||
|
||||
@@ -4,9 +4,9 @@ _unit = _this select 0;
|
||||
// ask server to set global damage to 1, save to the hive
|
||||
if (local _unit) then {
|
||||
if (isServer) then {
|
||||
[_unit, "killed"] call server_updateObject;
|
||||
[_unit,"killed",false,false,"SERVER",dayz_serverKey] call server_updateObject;
|
||||
} else {
|
||||
PVDZ_veh_Save = [_unit, "killed"];
|
||||
PVDZ_veh_Save = [_unit,"killed",false,false,dayz_playerUID,dayz_authKey];
|
||||
publicVariableServer "PVDZ_veh_Save";
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user