Files
DayZ-Epoch/dayz_code/actions/jerry_fill.sqf
vbawol 6cc4b0ce80 0.996a
+ [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.
2013-03-12 10:20:45 -05:00

28 lines
703 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";
};
//disableSerialization;
//call dayz_forceSave;
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"];
};