mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Fix playerSync error from 5f0c2fc
@icomrade There are cases where playerSync will receive > 3 params if achievements are passed. Example: https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/system/player_spawn_2.sqf#L305
This commit is contained in:
@@ -148,8 +148,8 @@ if (_currentModel == _modelChk) then {
|
||||
_currentModel = str _currentModel;
|
||||
_character setVariable ["model_CHK",typeOf _character];
|
||||
};
|
||||
if (count _this > 3) then { //calling from player_onDisconnect
|
||||
if (_this select 3 > 0) then { //combat logged
|
||||
if (count _this > 4) then { //calling from player_onDisconnect
|
||||
if (_this select 4 > 0) then { //combat logged
|
||||
_character setVariable ["NORRN_unconscious",true,true]; // Set status to unconscious
|
||||
_character setVariable ["unconsciousTime",150,true]; // Set knock out timer to 2 minutes 30 seconds
|
||||
//_character setVariable ["USEC_injured",true]; // Set status to bleeding
|
||||
|
||||
Reference in New Issue
Block a user