mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
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:
@@ -150,8 +150,10 @@ if (_currentModel == _modelChk) then {
|
|||||||
};
|
};
|
||||||
if (count _this > 4) then { //calling from player_onDisconnect
|
if (count _this > 4) then { //calling from player_onDisconnect
|
||||||
if (_this select 4 > 0) then { //combat logged
|
if (_this select 4 > 0) then { //combat logged
|
||||||
_character setVariable ["NORRN_unconscious",true,true]; // Set status to unconscious
|
_medical set [1, true]; //set unconcious to true
|
||||||
_character setVariable ["unconsciousTime",150,true]; // Set knock out timer to 2 minutes 30 seconds
|
_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_injured",true]; // Set status to bleeding
|
||||||
//_character setVariable ["USEC_BloodQty",3000]; // Set blood to 3000
|
//_character setVariable ["USEC_BloodQty",3000]; // Set blood to 3000
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user