Fix potential kills doubling after change clothes

Fix by @seelenapparat
This commit is contained in:
AirwavesMan
2020-09-13 15:18:17 +02:00
parent e93783d190
commit 0b26ae1246
2 changed files with 9 additions and 5 deletions

View File

@@ -37,7 +37,7 @@ if (Z_SingleCurrency) then {
};
//Switch
[_model, _charID, _humanity] call player_switchModel; //Already spawned thread, no need to spawn and waitUntil script is done
[_model, _charID, _humanity, _zombieKills, _headShots, _humanKills, _banditKills] call player_switchModel; //Already spawned thread, no need to spawn and waitUntil script is done
//Login
@@ -81,10 +81,10 @@ if (count _medical > 0) then {
//General Stats
//player setVariable ["humanity",_humanity,true]; //Moved to player_switchModel
player setVariable ["zombieKills",_zombieKills,true];
player setVariable ["headShots",_headShots,true];
player setVariable ["humanKills",_humanKills,true];
player setVariable ["banditKills",_banditKills,true];
//player setVariable ["zombieKills",_zombieKills,true]; //Moved to player_switchModel
//player setVariable ["headShots",_headShots,true]; //Moved to player_switchModel
//player setVariable ["humanKills",_humanKills,true]; //Moved to player_switchModel
//player setVariable ["banditKills",_banditKills,true]; //Moved to player_switchModel
//player setVariable ["characterID",_charID,true]; //Moved to player_switchModel
player setVariable ["worldspace",_worldspace];
player setVariable ["combattimeout",_combattimeout,false];