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:
vbawol
2013-06-20 08:44:58 -05:00
parent 50d38e89a4
commit 5b0d2e0f5c
3 changed files with 6 additions and 1 deletions

View File

@@ -46,3 +46,5 @@ player playMove "AidlPpneMstpSnonWnonDnon_SleepC_standUp";
waitUntil { animationState player != "AidlPpneMstpSnonWnonDnon_SleepC_standUp"};
R3F_TIRED_Accumulator = 0;

View File

@@ -3,7 +3,7 @@
private ["_id","_unit"];
_unit = (_this select 3) select 0;
_unit setVariable ["USEC_inPain", false, true];
call fnc_usec_medic_removeActions;
r_action = false;
@@ -11,6 +11,8 @@ r_action = false;
_num_removed = ([player,"ItemPainkiller"] call BIS_fnc_invRemove);
if(_num_removed == 1) then {
_unit setVariable ["USEC_inPain", false, true];
if (vehicle player == player) then {
//not in a vehicle
player playActionNow "Gear";

View File

@@ -5,6 +5,7 @@ _medic = _array select 1;
if (_unit == player) then {
r_player_inpain = false;
R3F_TIRED_Accumulator = 0;
"dynamicBlur" ppEffectAdjust [0]; "dynamicBlur" ppEffectCommit 5;
};
if (isServer) then {