mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-10-07 03:09:34 +03:00
Fix combat logging
Thanks @ndavalos @ebaydayz since this was moved after player_sumMedical is called in https://github.com/EpochModTeam/DayZ-Epoch/commit/5f0c2fcc4952b03791512ee4128c889b2821734c it would no longer save the modified unconcious and timeout vars to the DB.
This commit is contained in:
1 parent
e2c2a2a76a
commit
4e946552fd
1 file changed
+4
-2
@@ -150,8 +150,10 @@ if (_currentModel == _modelChk) then {
|
||||
};
|
||||
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
|
||||
_medical set [1, true]; //set unconcious to true
|
||||
_medical set [10, 150]; //combat timeout
|
||||
//_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
|
||||
//_character setVariable ["USEC_BloodQty",3000]; // Set blood to 3000
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user