mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Move disableUSerInput in unconcious code
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
// (c) facoptere@gmail.com, licensed to DayZMod for the community
|
// (c) facoptere@gmail.com, licensed to DayZMod for the community
|
||||||
|
|
||||||
private ["_count","_anim","_weapon","_sprint","_stance","_transmove","_start","_timeout","_short","_sandLevel","_disableHdlr","_speed"];
|
private ["_count","_anim","_weapon","_sprint","_stance","_transmove","_start","_timeout","_short","_sandLevel","_disableHdlr","_speed"];
|
||||||
|
_inVeh = player != vehicle player;
|
||||||
if (r_player_unconsciousInProgress) exitWith {};
|
if (r_player_unconsciousInProgress) exitWith {};
|
||||||
r_player_unconsciousInProgress = true;
|
r_player_unconsciousInProgress = true;
|
||||||
|
|
||||||
@@ -24,7 +24,9 @@ _sandLevel = ctrlPosition ((uiNamespace getVariable 'DAYZ_GUI_waiting') displayC
|
|||||||
_disableHdlr = [] spawn { uiSleep 2; disableUserInput true; r_player_unconsciousInputDisabled = true; };
|
_disableHdlr = [] spawn { uiSleep 2; disableUserInput true; r_player_unconsciousInputDisabled = true; };
|
||||||
autoRunActive = false;
|
autoRunActive = false;
|
||||||
|
|
||||||
|
if (!_inVeh) then {
|
||||||
player playAction "CanNotMove";
|
player playAction "CanNotMove";
|
||||||
|
};
|
||||||
"dynamicBlur" ppEffectEnable true;"dynamicBlur" ppEffectAdjust [2]; "dynamicBlur" ppEffectCommit 0;
|
"dynamicBlur" ppEffectEnable true;"dynamicBlur" ppEffectAdjust [2]; "dynamicBlur" ppEffectCommit 0;
|
||||||
"colorCorrections" ppEffectEnable true;"colorCorrections" ppEffectEnable true;"colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 0.1], [1, 1, 1, 0.0]];"colorCorrections" ppEffectCommit 0;
|
"colorCorrections" ppEffectEnable true;"colorCorrections" ppEffectEnable true;"colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 0.1], [1, 1, 1, 0.0]];"colorCorrections" ppEffectCommit 0;
|
||||||
if (dayz_soundMuted) then {call player_toggleSoundMute;}; // hide icon before fadeSound
|
if (dayz_soundMuted) then {call player_toggleSoundMute;}; // hide icon before fadeSound
|
||||||
@@ -38,7 +40,6 @@ while { (diag_tickTime - _start) < _timeout and r_player_unconscious and alive p
|
|||||||
((uiNamespace getVariable 'DAYZ_GUI_waiting') displayCtrl 1400) ctrlSetPosition _sandLevel;
|
((uiNamespace getVariable 'DAYZ_GUI_waiting') displayCtrl 1400) ctrlSetPosition _sandLevel;
|
||||||
((uiNamespace getVariable 'DAYZ_GUI_waiting') displayCtrl 1400) ctrlCommit 0.05;
|
((uiNamespace getVariable 'DAYZ_GUI_waiting') displayCtrl 1400) ctrlCommit 0.05;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*_veh = vehicle player;
|
/*_veh = vehicle player;
|
||||||
if ((player != _veh) and {(_veh iskindOf "LandVehicle")}) then {
|
if ((player != _veh) and {(_veh iskindOf "LandVehicle")}) then {
|
||||||
_speed = [0,0,0] distance velocity _veh;
|
_speed = [0,0,0] distance velocity _veh;
|
||||||
@@ -76,12 +77,14 @@ disableUserInput false;
|
|||||||
r_player_unconsciousInputDisabled = false;
|
r_player_unconsciousInputDisabled = false;
|
||||||
4 cutRsc ["default", "PLAIN",1];
|
4 cutRsc ["default", "PLAIN",1];
|
||||||
|
|
||||||
|
|
||||||
|
if (!_inVeh) then {
|
||||||
[nil, player, rSWITCHMOVE, "AinjPpneMstpSnonWnonDnon"] call RE;
|
[nil, player, rSWITCHMOVE, "AinjPpneMstpSnonWnonDnon"] call RE;
|
||||||
player SWITCHMOVE "AinjPpneMstpSnonWnonDnon";
|
player SWITCHMOVE "AinjPpneMstpSnonWnonDnon";
|
||||||
PVDZ_plr_SwitchMove = [player,"AinjPpneMstpSnonWnonDnon"];
|
PVDZ_plr_SwitchMove = [player,"AinjPpneMstpSnonWnonDnon"];
|
||||||
publicVariableServer "PVDZ_plr_SwitchMove"; //Needed to execute switchMove on server machine. rSwitchMove only executes on other clients
|
publicVariableServer "PVDZ_plr_SwitchMove"; //Needed to execute switchMove on server machine. rSwitchMove only executes on other clients
|
||||||
|
|
||||||
player playMoveNow "AmovPpneMstpSnonWnonDnon_healed";
|
player playMoveNow "AmovPpneMstpSnonWnonDnon_healed";
|
||||||
|
};
|
||||||
|
|
||||||
10 fadeSound 1;
|
10 fadeSound 1;
|
||||||
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
||||||
|
|||||||
Reference in New Issue
Block a user