DayZ icon indicating copy to clipboard operation
DayZ copied to clipboard

Vehicle speed offroad

Open VidKo opened this issue 11 years ago • 2 comments

Please change the offroad top speed of the cars:

military offroad: higher speed offroad (it's too slow offroad at the moment) SUV: lower speed offroad, higher fuel consumption

VidKo avatar Dec 25 '14 11:12 VidKo

Speed we should be able to do a few tweaks, fuel is another issue that involves a loop on each vehicle. Arma has no default config system that enables fuel usage. (that i cant think off)

while {(alive (_this select 0)) and (fuel (_this select 0) > 0)} do { if (isEngineOn (_this select 0)) then { (_this select 0) setFuel ( Fuel (_this select 0) - (_this select 1)); }; sleep 1; };

We would have to create a simple script in the init of every vehicle that covers fuel usage. Just first thoughts anyway. I'll take a look after the xmas.

R4Z0R49 avatar Dec 25 '14 20:12 R4Z0R49

Added a prototype fuel consumption system.

https://github.com/DayZMod/DayZ/commit/dbf2f4d8a12be99b56cf48484df3e67684ffb7cc

R4Z0R49 avatar Dec 26 '14 11:12 R4Z0R49