mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-24 09:00:50 +03:00
test to reset tiredness
+ [ADDED] Reset tiredness when you take painkillers. + [ADDED] Reset tiredness when you sleep at a tent.
This commit is contained in:
@@ -46,3 +46,5 @@ player playMove "AidlPpneMstpSnonWnonDnon_SleepC_standUp";
|
|||||||
|
|
||||||
waitUntil { animationState player != "AidlPpneMstpSnonWnonDnon_SleepC_standUp"};
|
waitUntil { animationState player != "AidlPpneMstpSnonWnonDnon_SleepC_standUp"};
|
||||||
|
|
||||||
|
R3F_TIRED_Accumulator = 0;
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
private ["_id","_unit"];
|
private ["_id","_unit"];
|
||||||
_unit = (_this select 3) select 0;
|
_unit = (_this select 3) select 0;
|
||||||
|
|
||||||
_unit setVariable ["USEC_inPain", false, true];
|
|
||||||
|
|
||||||
call fnc_usec_medic_removeActions;
|
call fnc_usec_medic_removeActions;
|
||||||
r_action = false;
|
r_action = false;
|
||||||
@@ -11,6 +11,8 @@ r_action = false;
|
|||||||
_num_removed = ([player,"ItemPainkiller"] call BIS_fnc_invRemove);
|
_num_removed = ([player,"ItemPainkiller"] call BIS_fnc_invRemove);
|
||||||
if(_num_removed == 1) then {
|
if(_num_removed == 1) then {
|
||||||
|
|
||||||
|
_unit setVariable ["USEC_inPain", false, true];
|
||||||
|
|
||||||
if (vehicle player == player) then {
|
if (vehicle player == player) then {
|
||||||
//not in a vehicle
|
//not in a vehicle
|
||||||
player playActionNow "Gear";
|
player playActionNow "Gear";
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ _medic = _array select 1;
|
|||||||
|
|
||||||
if (_unit == player) then {
|
if (_unit == player) then {
|
||||||
r_player_inpain = false;
|
r_player_inpain = false;
|
||||||
|
R3F_TIRED_Accumulator = 0;
|
||||||
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
|
||||||
};
|
};
|
||||||
if (isServer) then {
|
if (isServer) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user