Raveypoopoo
Member
For anyone interested, here is my altered version of Auto refuel. It currently features;
-Different (and easily changeable) refuel rates for air and land vehicles
-Different (and easily changeable) refuel distances for air and land vehicles
-Requires engines to be off to refuel
-Calls you a variety naughty things to you if you try to refuel a bicycle (updated! because thats what I do with my time.)
-Added compatibility with boats (though you will probably need to edit your map to have fuel tanks in/near the water for it to mean anything)
To implement it you just need to follow the same directions as the regular Auto Refuel shown here1
http://dayz.st/w/HOW-TO_add_Auto_Refuel
With the small difference on the last step, in which you have to change
to
To customize the refuel rates, or distances to refuel simply open kh_actions.sqf and find this
then change it to your heart's content.
-Different (and easily changeable) refuel rates for air and land vehicles
-Different (and easily changeable) refuel distances for air and land vehicles
-Requires engines to be off to refuel
-Calls you a variety naughty things to you if you try to refuel a bicycle (updated! because thats what I do with my time.)
-Added compatibility with boats (though you will probably need to edit your map to have fuel tanks in/near the water for it to mean anything)
To implement it you just need to follow the same directions as the regular Auto Refuel shown here1
http://dayz.st/w/HOW-TO_add_Auto_Refuel
With the small difference on the last step, in which you have to change
Code:
5 setFuel !"\"setFuel\"," !"z\addons\dayz_code\compile\local_setFuel.sqf" !"\"dayzSetFuel\"" !"dayzSetFuel_code" !"dayzSetFuel = _val;" !"Scripts\kh_actions.sqf" !"Scripts\kh_vehicle_refuel.sqf"
Code:
5 setFuel !"\"setFuel\"," !"z\addons\dayz_code\compile\local_setFuel.sqf" !"\"dayzSetFuel\"" !"dayzSetFuel_code" !"dayzSetFuel = _val;" !"Scripts\kh_actions.sqf" !"Scripts\kh_vehicle_refuel.sqf !"Scripts\kh_airvehicle_refuel.sqf"
To customize the refuel rates, or distances to refuel simply open kh_actions.sqf and find this
Code:
_distance = 15; // Distance from object to display Refuel Message for land vehicles
_airdistance = 30; // Distance from object to display Refuel Message for air vehicles
_seadistance = 25; // Distance from object to display Refuel Message for air vehicles
_amount= 0.006; // Amount of fuel to add per loop. Default was 0.005
_airamount= 0.0012; // Amount of fuel to add for air vehicles per loop. Default was 0.005