mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-23 16:40:50 +03:00
Update public variables
It makes no sense to rename the identical DayZ PVs to have an E in their name. I don't see any good reason it was done in the first place. All it accomplishes is breaking script compatibility between the two mods and requiring different publicvariable.txt filters. The only time it makes sense is for custom Epoch variables that aren't used in vanilla. All admins have to do to update custom scripts is swap the names according to the change log. Note I've submitted a pull request to replace PVDZ_veh_Save with PVDZ_obj_Save in official too because they are duplicates.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/***********************************************************
|
||||
ASSIGN DAMAGE TO A UNIT.
|
||||
Called by "HandleDamage" vehicle Event Handler
|
||||
or by "PVCDZE_veh_SH" PV
|
||||
or by "PVCDZ_veh_SH" PV
|
||||
or by zombie_attack
|
||||
|
||||
- Function fnc_veh_handleDam
|
||||
@@ -37,8 +37,8 @@ if (local _unit) then {
|
||||
_unit setHit [_selection, _total];
|
||||
|
||||
if (!isServer) then {
|
||||
PVDZE_veh_Update = [_unit,"damage"];
|
||||
publicVariableServer "PVDZE_veh_Update";
|
||||
PVDZ_obj_Save = [_unit,"damage"];
|
||||
publicVariableServer "PVDZ_obj_Save";
|
||||
} else {
|
||||
[_unit, "damage"] call server_updateObject;
|
||||
};
|
||||
@@ -47,8 +47,8 @@ if (local _unit) then {
|
||||
//if ( (count _this > 5) AND {(_this select 5)}) then {
|
||||
// vehicle is not local to this client, ask the client which vehicle is local to set damage
|
||||
//_this resize 5; // delete "broadcast" boolean
|
||||
PVDZE_send = [_unit,"VehHandleDam",_this];
|
||||
publicVariableServer "PVDZE_send";
|
||||
PVDZ_send = [_unit,"VehHandleDam",_this];
|
||||
publicVariableServer "PVDZ_send";
|
||||
//};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user