Fix combat logging

Thanks @ndavalos

@ebaydayz since this was moved after player_sumMedical is called in
5f0c2fcc49
it would no longer save the modified unconcious and timeout vars to the
DB.
This commit is contained in:
icomrade
2016-09-21 11:09:03 -04:00
parent e2c2a2a76a
commit 4e946552fd

View File

@@ -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
};