DeathF0X 198 Posted October 4, 2016 //-Fuel-\\ Hello my friends, heres a small addon that i created some time ago. DevSite What it does ? It increases the fuel consumption for all vehicles based on class Car_F. Requirements: CBA Features: Easy configuration via variables ✔ More passengers, more fuel consumption ✔ Check for road, change values for consumption ✖ (will be in next major release) You can change the consumption via setVariable fox_fuel_settings_rate // default consumption 0.00010 fox_fuel_settings_loadMultiplier // crew multiplier 0.00005; fox_fuel_settings_tooFastRate // malus for driving too fast 0.00015 fox_fuel_settings_tooSlowRate // malus for driving to slow 0.00005 Change back to default use: vehicle setVariable ["fox_fuel_settings_XXX", getNumber (configFile >> "fox_fuel_settings" >> "XXX"), TRUE]; Debug: FOX_FUEL_DEV = TRUE Download: @fox_fuel_release_1_0.zip Permission for reuplaod: All except SteamWorkshop 6 Share this post Link to post Share on other sites
reyhard 2082 Posted October 4, 2016 do you know you can read car rpm instead checking just speed? ;) https://community.bistudio.com/wiki/getSoundController 1 Share this post Link to post Share on other sites
Crielaard 435 Posted October 4, 2016 hey nice. Can you do the same thing for aircraft? Both Jets and Helos. Maybe even count ammo every minute or so? Share this post Link to post Share on other sites
JD Wang 352 Posted October 10, 2016 This is something that I've been looking for for a while now. ARMA has working fuel station and fuel trucks, ACE have a refueling system and it's all practically a useless because vehicles just don't use fuel fast enough for it to be an issue.Thank you, I look forward to trying this out. Is it possible to have a script version for mission makers who don't want to add more addons to their missions? Or is that not really practical? 1 Share this post Link to post Share on other sites
jarrad96 1940 Posted October 11, 2016 Another mod similar to this one added a Jerry Can in the back of vehicles for re-fuelling, as a way to balance the reduced capacity- That mod no longer works as it is overwritten by ACE, but do you plan something similar? Share this post Link to post Share on other sites
DeathF0X 198 Posted October 11, 2016 Another mod similar to this one added a Jerry Can in the back of vehicles for re-fuelling, as a way to balance the reduced capacity- That mod no longer works as it is overwritten by ACE, but do you plan something similar? Yeah my old refuel addon got deprecated due the patch 1.56 i think, something similar is in planning. This is something that I've been looking for for a while now. ARMA has working fuel station and fuel trucks, ACE have a refueling system and it's all practically a useless because vehicles just don't use fuel fast enough for it to be an issue. Thank you, I look forward to trying this out. Is it possible to have a script version for mission makers who don't want to add more addons to their missions? Or is that not really practical? I need to modify some vars and test it again, should be available end of the week. Share this post Link to post Share on other sites
Devastator_cm 434 Posted October 11, 2016 a script version would be really nice :) Share this post Link to post Share on other sites
DeathF0X 198 Posted October 11, 2016 Script version: Download For global settings modify line 27-30 _rate = _vehicle getVariable ["fox_fuel_settings_rate", 0.00010 ]; _loadMultiplier = _vehicle getVariable ["fox_fuel_settings_loadMultiplier", 0.00005 ]; _tooFastRate =_vehicle getVariable ["fox_fuel_settings_tooFastRate", 0.00015 ]; _tooSlowRate = _vehicle getVariable ["fox_fuel_settings_tooSlowRate", 0.00005 ]; How to use: vehicle execVM "fn_fuel.sqf"; 2 Share this post Link to post Share on other sites
Devastator_cm 434 Posted October 11, 2016 I have a question. If I start this script in a vehicle, how can I abort it? I am not a scripting expert :)Reason is, I don't want the script to loop without end if the player leaves the car and turns the engine off. I want to start it again when necessary. Share this post Link to post Share on other sites
DeathF0X 198 Posted October 11, 2016 I have a question. If I start this script in a vehicle, how can I abort it? I am not a scripting expert :) Reason is, I don't want the script to loop without end if the player leaves the car and turns the engine off. I want to start it again when necessary. You cant abort it, the loop is "while alive vehicle" and for consumption "isengineon vehicle". It makes no sense to abort this script, you can change the values to 0 for the specific vehicle. Share this post Link to post Share on other sites
Devastator_cm 434 Posted October 11, 2016 I am just trying to consume less system resources :)So what about if I use while (alive vehicle" and "isengineon vehicle") for looping and using event handler Engine to start the script?Then I guess it will stop doing loop in case vehicle stops engine 1 Share this post Link to post Share on other sites
bad benson 1733 Posted October 11, 2016 great effort. making those gas stations and fuel logistics actually meaningful. 1 Share this post Link to post Share on other sites
Guest Posted October 12, 2016 Release frontpaged on the Armaholic homepage. Fuel consumption - Addon v1.0 Community Base addons A3 Fuel consumption - Script v1.0 Share this post Link to post Share on other sites
sonsalt6 105 Posted October 12, 2016 New mod v1.0 available at withSIX. Download now by clicking: Hey Shiragami , you can upload updates or new mods to withSIX yourself now! Make your own promo page, get the power to release your work at your own point of choosing. To learn more, follow this guide. Share this post Link to post Share on other sites
RitterNZ 2 Posted October 13, 2016 Awesome mod, is there any chance of setting bisign version and server key? Thanks. 2 Share this post Link to post Share on other sites
JD Wang 352 Posted October 22, 2016 Ok so obviously I use the code fox_fuel_settings_rate to increase the consumption. I assume in some form of vehicle setVariable ["fox_fuel_settings_rate", 0.00020, true]; but I have no idea where to put that or if indeed it is correct. I'm just trying to double the consumption rate for all vehicles. Share this post Link to post Share on other sites
Devastator_cm 434 Posted October 22, 2016 did you try writing this into the init of the vehicle? this setVariable ["fox_fuel_settings_rate", 0.00020, true]; and then you need to run the script for that vehichle which is the another line in that init sectionthis execVM "fn_fuel.sqf"; To test if it works you can put a very high consumption rate and check if it works Share this post Link to post Share on other sites
JD Wang 352 Posted October 22, 2016 I'm actually using the addon version now. I was going to use the script, but the addon is so small and work straight out of the box. Also most (if not all) of the vehicles in this mission are spawned in via ALiVE, so I can't run the script in the vehicles init. Share this post Link to post Share on other sites
RitterNZ 2 Posted October 23, 2016 did you try writing this into the init of the vehicle? this setVariable ["fox_fuel_settings_rate", 0.00020, true]; and then you need to run the script for that vehichle which is the another line in that init section this execVM "fn_fuel.sqf"; To test if it works you can put a very high consumption rate and check if it works this works perfect for the script version, thanks. Share this post Link to post Share on other sites
Royal Eagles 1 Posted January 20, 2017 Nice job thx ! Question: How to run the script for vehicle sapwn by mission like Alive & other ? How to apply the script for aircraft, chopper, helo... Sorry for my bad english.. Share this post Link to post Share on other sites
Cheitan 33 Posted February 25, 2017 Hey hey Shiragami ! We found your small addon very interesting, and as you allow reupload (excepted on steam workshop) we are planning to integrate it in our modpack. But we think there is something missing : is it possible for you to sign your mod ? It's a very easy procedure, allowing server admin to increase the security level. In case you don't want to sign your addon, would you allow us to reupload your work signed by our team, in order to use it on our dedicated server ? Thanks again for this great idea ! Share this post Link to post Share on other sites