Fix self actions duplicating when changing clothes and looking at a safe

This was also a bug in 1051. Thanks to Epoch forums user jOoPs for
reporting.
This commit is contained in:
ebaydayz
2016-12-12 15:23:31 -05:00
parent bff2a3091d
commit b4c239729c
3 changed files with 12 additions and 5 deletions

View File

@@ -93,7 +93,8 @@ player setVariable ["DZE_display_name",_tagSetting,true];
//PVDZ_serverStoreVar = [player,"Achievements",_achievements];
//publicVariableServer "PVDZ_serverStoreVar";
call dayz_resetSelfActions;
call dayz_resetSelfActions; //New unit has no self actions yet. Reset variables so actions can be added back.
dayz_actionInProgress = false; //Allow self actions to run now.
eh_player_killed = player addeventhandler ["FiredNear",{_this call player_weaponFiredNear;}];
[player] call fnc_usec_damageHandle;
player allowDamage true;