mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Remove vehicle actions when unconscious
This commit is contained in:
@@ -72,7 +72,7 @@ if (_inVehicle) then {
|
||||
};
|
||||
//Check if patients
|
||||
_crew = crew _vehicle;
|
||||
if (count _crew > 0) then {
|
||||
if (count _crew > 0 && !r_player_unconscious) then {
|
||||
_unconscious_crew = [];
|
||||
{
|
||||
if (_x getVariable "NORRN_unconscious") then {
|
||||
@@ -100,6 +100,13 @@ if (_inVehicle) then {
|
||||
r_player_lastSeat = [];
|
||||
};
|
||||
|
||||
if (r_player_unconscious) then {
|
||||
call r_player_removeActions2;
|
||||
r_player_lastVehicle = objNull;
|
||||
r_player_lastSeat = [];
|
||||
r_action_unload = false;
|
||||
};
|
||||
|
||||
//Lets make sure the player is looking at the target
|
||||
if (isPlayer cursorTarget) then {
|
||||
if (!r_drag_sqf && !r_action && !_inVehicle && !r_player_unconscious && (player distance _menClose < 3)) then {
|
||||
|
||||
Reference in New Issue
Block a user