mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 13:26:39 +03:00
+ [REVERT] Removed a bunch of force gear saves that should no longer be needed. + [FIXED] Removed auto refuel from lingor gas stations. + [FIXED] Removed auto refuel and repair lingor hangars. + [REMOVED] Bear Traps and Land Mines. + [FIXED] Removed radar from chinhook with _DZ variant. + [FIXED] Possible fix for extra intel in heliocopters.
58 lines
1.4 KiB
Plaintext
58 lines
1.4 KiB
Plaintext
// bleed.sqf
|
|
_unit = (_this select 3) select 0;
|
|
_lowBlood = _unit getVariable ["USEC_lowBlood", false];
|
|
_injured = _unit getVariable ["USEC_injured", false];
|
|
_inPain = _unit getVariable ["USEC_inPain", false];
|
|
_lastused = _unit getVariable ["LastTransfusion", time];
|
|
|
|
// if (_lastused - time < 600) exitwith {cutText [format[(localize "str_actions_medical_18"),_text] , "PLAIN DOWN"]};
|
|
|
|
call fnc_usec_medic_removeActions;
|
|
r_action = false;
|
|
|
|
if (vehicle player == player) then {
|
|
//not in a vehicle
|
|
player playActionNow "Medic";
|
|
};
|
|
|
|
r_interrupt = false;
|
|
_animState = animationState player;
|
|
r_doLoop = true;
|
|
_started = false;
|
|
_finished = false;
|
|
while {r_doLoop} do {
|
|
_animState = animationState player;
|
|
_isMedic = ["medic",_animState] call fnc_inString;
|
|
if (_isMedic) then {
|
|
_started = true;
|
|
};
|
|
if (_started and !_isMedic) then {
|
|
r_doLoop = false;
|
|
_finished = true;
|
|
};
|
|
if (r_interrupt) then {
|
|
r_doLoop = false;
|
|
};
|
|
sleep 0.1;
|
|
};
|
|
r_doLoop = false;
|
|
|
|
if (_finished) then {
|
|
_unit setVariable["LastTransfusion",time,true];
|
|
_unit setVariable["USEC_lowBlood",false,true];
|
|
player removeMagazine "ItemBloodbag";
|
|
|
|
//disableSerialization;
|
|
//call dayz_forceSave;
|
|
|
|
//["usecTransfuse",[_unit,player]] call broadcastRpcCallAll;
|
|
usecTransfuse = [_unit,player];
|
|
publicVariable "usecTransfuse";
|
|
|
|
//dayzHumanity = [player,100];
|
|
[player,100] call player_humanityChange;
|
|
} else {
|
|
r_interrupt = false;
|
|
player switchMove "";
|
|
player playActionNow "stop";
|
|
}; |