mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Added WIP Limited fuel in Refuel points.
Vanilla development commits:707a591765c453cdedd2Set to double vanilla default value since Epoch has a lot more large vehicles with 1000+ fuel capacity.
This commit is contained in:
@@ -292,7 +292,7 @@ if (!isNull _cursorTarget && !_inVehicle && !_isPZombie && (player distance _cur
|
||||
//Allow player to fill Fuel can
|
||||
if (_hasEmptyFuelCan && {_isFuel} && {!a_player_jerryfilling}) then {
|
||||
if (s_player_fillfuel < 0) then {
|
||||
s_player_fillfuel = player addAction [localize "str_actions_self_10", "\z\addons\dayz_code\actions\jerry_fill.sqf",[], 1, false, true];
|
||||
s_player_fillfuel = player addAction [localize "str_actions_self_10", "\z\addons\dayz_code\actions\jerry_fill.sqf",_cursorTarget, 1, false, true];
|
||||
};
|
||||
} else {
|
||||
player removeAction s_player_fillfuel;
|
||||
|
||||
Reference in New Issue
Block a user