mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Unconscious Timer
This commit is contained in:
parent
8f64d961c3
commit
e628588602
@ -57,6 +57,7 @@ if !(_source isEqualTo _unit) then {
|
||||
if !(lifeState _unit == "INCAPACITATED") then {
|
||||
EPOCH_HandleDamageTimeOut = diag_ticktime + 1;
|
||||
_unit setUnconscious true;
|
||||
EPOCH_UnconsciousTime = diag_ticktime + 60 + (random 120);
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -427,6 +427,13 @@ if (cameraview isequalto "GROUP") then {
|
||||
vehicle player switchCamera "Internal";
|
||||
};
|
||||
|
||||
if (lifeState player == "INCAPACITATED") then {
|
||||
if ((missionnamespace getvariable ["EPOCH_UnconsciousTime",diag_ticktime]) < diag_ticktime) then {
|
||||
player setUnconscious false;
|
||||
player playMoveNow 'AmovPercMstpSnonWnonDnon';
|
||||
};
|
||||
};
|
||||
|
||||
// force update
|
||||
if (EPOCH_forceUpdateNow) then {
|
||||
_forceUpdate = false;
|
||||
|
Loading…
Reference in New Issue
Block a user