mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
Unconscious tweak (WIP)
This commit is contained in:
parent
c0fac55472
commit
e984b1cf00
@ -17,9 +17,18 @@ if !(_source isEqualTo _unit) then {
|
||||
if ((missionnamespace getvariable ["EPOCH_HandleDamageTimeOut",diag_ticktime]) > diag_ticktime) exitwith {}; // prevent multiple actions here
|
||||
switch _projectile do {
|
||||
case "B_EnergyPack": {
|
||||
if (_source distance _unit > 10) exitwith {};
|
||||
if (missionnamespace getvariable ["EPOCH_OldRevive",false]) exitwith {};
|
||||
EPOCH_HandleDamageTimeOut = diag_ticktime + 0.1;
|
||||
if (currentweapon _source isEqualTo "pvcrifle_01_epoch") then {
|
||||
if !(lifeState _unit == "INCAPACITATED") then {
|
||||
EPOCH_HandleDamageTimeOut = diag_ticktime + 1;
|
||||
_unit setUnconscious true;
|
||||
EPOCH_UnconsciousTime = diag_ticktime + 60 + (random 120);
|
||||
["You are Knocked out for a while...",5] call Epoch_Message;
|
||||
};
|
||||
}
|
||||
else {
|
||||
if (_source distance _unit > 10) exitwith {};
|
||||
if !(missionnamespace getvariable ["EPOCH_OldRevive",false]) then {
|
||||
_attachments = handgunItems _source;
|
||||
if ("Heal_EPOCH" in _attachments) then {
|
||||
if (lifeState _unit == "INCAPACITATED") exitwith {
|
||||
@ -53,11 +62,14 @@ if !(_source isEqualTo _unit) then {
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
case "B_KnockOut": {
|
||||
if !(lifeState _unit == "INCAPACITATED") then {
|
||||
EPOCH_HandleDamageTimeOut = diag_ticktime + 1;
|
||||
_unit setUnconscious true;
|
||||
EPOCH_UnconsciousTime = diag_ticktime + 60 + (random 120);
|
||||
["You are Knocked out for a while...",5] call Epoch_Message;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user