mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 20:12:20 +03:00
+ Added variable pricing to traders. Stock under 5 will be sold at the buy price and over 50 will be bought at the sell price. + Fixed trades not forcing a gear save and added more forced gear saves. + Added test for time based UID for purchased vehicles. + Reduced humanity gained by using a blood bag to 100 down from 250. + Added 5 minute penalty knockout for combat loggers. + Added prevention to logging out in a trader city. fixes #171 + Changed cargo check to only show on alive vehicles. Fixes #176 + Potential fix for gunner on armored SUV. Fixes #172 + Fixes for refueling and repairing that was broken by 1.7.61 + Removed taming of dogs for now. fixes #162
28 lines
699 B
Plaintext
28 lines
699 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"];
|
|
}; |