Remove vehicle actions when unconscious

This commit is contained in:
ebaydayz
2016-11-12 17:54:27 -05:00
parent 8b3376643d
commit abeb5f9383
4 changed files with 13 additions and 4 deletions

View File

@@ -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 {