mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Change inCombat to bool instead of number
When a variable is only going to be 0 or 1 it makes more sense to use a
bool.
Also avoided unnecessary network broadcasts of inCombat from e446603
This commit is contained in:
@@ -24,7 +24,7 @@ _humanKills = player getVariable ["humanKills",0];
|
||||
_banditKills = player getVariable ["banditKills",0];
|
||||
_achievements = player getVariable ["Achievements",[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]];
|
||||
_combattimeout = player getVariable["combattimeout",0];
|
||||
_inCombat = player getVariable["inCombat",0];
|
||||
_inCombat = player getVariable ["inCombat",false];
|
||||
_ConfirmedHumanKills = player getVariable ["ConfirmedHumanKills",0];
|
||||
_ConfirmedBanditKills = player getVariable ["ConfirmedBanditKills",0];
|
||||
_friendlies = player getVariable ["friendlies",[]];
|
||||
@@ -83,7 +83,7 @@ player setVariable ["characterID",_charID,true];
|
||||
player setVariable ["worldspace",_worldspace];
|
||||
player setVariable ["Achievements",_achievements];
|
||||
player setVariable ["combattimeout",_combattimeout,false];
|
||||
player setVariable ["inCombat", _inCombat, true];
|
||||
player setVariable ["inCombat",_inCombat,true];
|
||||
|
||||
player setVariable ["ConfirmedHumanKills",_ConfirmedHumanKills,true];
|
||||
player setVariable ["ConfirmedBanditKills",_ConfirmedBanditKills,true];
|
||||
|
||||
Reference in New Issue
Block a user