Files
DayZ-Epoch/dayz_code/actions/jerry_fill.sqf
vbawol 3c9df28ead 0.981 + 1.7.6.1 CE
+ Increased raise horde distance to 65m.
+ decreased raise horde action timer to 7 seconds.
+ sync with 1.7.6.1 CE
2013-02-26 20:05:35 -06:00

23 lines
650 B
Plaintext

private["_hasFood","_item","_text","_qty"];
player removeAction s_player_fillfuel;
s_player_fillfuel = -1;
_qty = {_x == "ItemJerrycanEmpty"} count magazines player;
if ("ItemJerrycanEmpty" in magazines player) then {
for "_x" from 1 to _qty do {
player removeMagazine "ItemJerrycanEmpty";
player addMagazine "ItemJerrycan";
};
player playActionNow "Medic";
_dis=10;
_sfx = "refuel";
[player,_sfx,0,false,_dis] call dayz_zombieSpeak;
[player,_dis,true,(getPosATL player)] spawn player_alertZombies;
cutText [format[(localize "str_player_09"),_qty], "PLAIN DOWN"];
} else {
cutText [(localize "str_player_10") , "PLAIN DOWN"];
};