mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
Update vanilla player build
Vanilla development commits applied:a2193626a0deb72076722de1d90edd8a914606cf
This commit is contained in:
@@ -6,23 +6,23 @@ Called by "HandleDamage" vehicle Event Handler
|
||||
- [unit, damage] call fnc_obj_handleDam;
|
||||
- return : updated damage
|
||||
************************************************************/
|
||||
private["_obj","_total","_currentDamage"];
|
||||
private["_obj","_total","_damage"];
|
||||
|
||||
_obj = _this select 0;
|
||||
_damage = _this select 2;
|
||||
_damage = _this select 1;
|
||||
_total = (damage _obj);
|
||||
|
||||
if (_damage > 0) then {
|
||||
_total = (damage _obj) + _damage;
|
||||
|
||||
if (!isServer) then {
|
||||
PVDZ_veh_Save = [_obj,"objWallDamage",_total];
|
||||
PVDZ_veh_Save = [_obj,"objWallDamage",(_total + _damage)];
|
||||
publicVariableServer "PVDZ_veh_Save";
|
||||
} else {
|
||||
[_obj,"objWallDamage",_total] call server_updateObject;
|
||||
[_obj,"objWallDamage",(_total + _damage)] call server_updateObject;
|
||||
};
|
||||
};
|
||||
|
||||
//diag_log format["INFO - %1(%3) - %2(%4)",_obj,_damage,(typeof _obj),(_total + _damage)];
|
||||
|
||||
|
||||
// all "HandleDamage event" functions should return the effective damage that the engine will record for that part
|
||||
_total
|
||||
0
|
||||
|
||||
Reference in New Issue
Block a user