mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-24 09:29:21 +03:00
Missing Files
This commit is contained in:
59
SQF/dayz_code/medical/wipes.sqf
Normal file
59
SQF/dayz_code/medical/wipes.sqf
Normal file
@@ -0,0 +1,59 @@
|
||||
private ["_started","_finished","_animState","_isMedic","_id","_unit"];
|
||||
_unit = (_this select 3) select 0;
|
||||
player removeMagazine "ItemAntibacterialWipe";
|
||||
|
||||
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;
|
||||
[player,"bandage",0,false] call dayz_zombieSpeak;
|
||||
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;
|
||||
};
|
||||
if (vehicle player != player) then {
|
||||
sleep 3;
|
||||
r_doLoop = false;
|
||||
_finished = true;
|
||||
};
|
||||
sleep 0.1;
|
||||
};
|
||||
r_doLoop = false;
|
||||
|
||||
if (_finished) then {
|
||||
//["PVCDZ_hlt_Bandage",[_unit,player]] call broadcastRpcCallAll;
|
||||
//PVCDZ_hlt_Bandage = [_unit,player];
|
||||
//publicVariable "PVCDZ_hlt_Bandage";
|
||||
//PVDZ_send = [_unit,"Bandage",[_unit,player]];
|
||||
//publicVariableServer "PVDZ_send";
|
||||
|
||||
|
||||
if ((_unit == player) or (vehicle player != player)) then {
|
||||
r_player_Sepsis = [false, 0];
|
||||
player setVariable ["USEC_Sepsis", false, true];
|
||||
player setVariable ["sepsisStarted", nil];
|
||||
};
|
||||
} else {
|
||||
r_interrupt = false;
|
||||
[objNull, player, rSwitchMove,""] call RE;
|
||||
player playActionNow "stop";
|
||||
player addMagazine "ItemAntibacterialWipe";
|
||||
};
|
||||
Reference in New Issue
Block a user