CodeMaster Posted April 7, 2008 Share Posted April 7, 2008 (edited) Vehicle Fuel Script by CodeMaster[CLOSED] Gonna work with [uVA]Bart on improving his script! Current Version: v1.5 Public BETA As I promised to Vladmo, here it is! My vehicle fuel script. Its based on distance that a vehicle crossed, not on timer, so it works a bit more realistically, but still don't has all the factors what an real engine has (velocity, gear etc...). It's still WIP (Work In Progress), but now refills gas by entering marker on any gas station If anyone could get me coords of ALL gas stations all over the SA that would be great help! Features: - A progress bar, and a text label which represents current level of fuel - Realistic fuel depleting - Stops moving like on real vehicles (won't just remove player from vehicle) - Has gas stations for refilling gas (don't has all gas stations for now, but XetaQuake and [ska]Vladmo are working on that) - Progessbar now hides and shows without bugs! Notice: It won't have empty fuel on a car ever! Every car will have fuel if you have entered it first after respawn or someone didn't depleted it! People who thinks this sucks should try this and reconsider their thinkings! Vote for it on community site if you like the script! UPDATED on 04.08.2007. Fixed bugs spotted by XetaQuake Download: https://community.multitheftauto.com/index.php?p=resources&s=details&id=119 I knew you'll read small letters ^^ Ok then add credits to me if you use it modified! Cheers Nidza Edited August 21, 2008 by Guest Link to comment
XetaQuake Posted April 7, 2008 Share Posted April 7, 2008 wow nice! i thank you! but i have found some bugs When the car are out of full, and when i destroy them, the respawned car have no petrol! when i don´t in a car, the progress bar are still shown, can you change this pleas? can you pleas add a little bit more petrol to the cars? so that its take a little bit longer that the car get out of fuel. i think most of the users want this to. i think its better when the gas stations have markers, so it is better to see refuel don´t cost money, can you add it that it cost money to refuel the car? i think 10$ for 10% is good Link to comment
Borov Posted April 7, 2008 Share Posted April 7, 2008 from my experience fuel in San Andreas doesn't work out well, often turn out to be a nuissance than RP element... Link to comment
CodeMaster Posted April 7, 2008 Author Share Posted April 7, 2008 Thanks for nice comments @XetaQuake: 1. Will be fixed I'm just right now working on it 2. Well i made it to progress bar just ain't filled and to label says out of vehicle but no problem will be changed 3. As I measured, whole SA (traveling by the rail, measuring with my Distance Traveled script) has 22km, and this depletes 1% per 100m its pretty much enough to travel from city to city but ok I'll change it 4. This is WIP (Work In Progress) so it still has no gas station markers, if you can get me coords of stations it could be done easily 5. It's still WIP and most people take those scripts for fun, without money, but ok I'll add a command for changing it (cost / no cost) @Borov Believe me this ain't usual fuel system, its not on a timer! Vote for this if you like it! Cheers Nidza Link to comment
The_Stig Posted April 7, 2008 Share Posted April 7, 2008 Thanks for this One bug i have noticed (maybe its meant to happen lo,) is when driving along with even still about 80% fuel the car stops accelerating and i need to hit w again. Good script tho Link to comment
CodeMaster Posted April 7, 2008 Author Share Posted April 7, 2008 That is not script bug Stig I had same problem until I reinstalled my GTA, it's a GTA bug which happens when changing gears, as far as I know Link to comment
XetaQuake Posted April 7, 2008 Share Posted April 7, 2008 @CodeMaster: thanks for support I'm curious about new versions, YEA to the coords: hm when i think about gas stations, i notice that i don´t know any gas stations there not on Las Venturas lol i playing GTA:SA now 3 years, and i forgot all gas stations...sorry but i can search all gas stations in Las venturas, want you it? Link to comment
CodeMaster Posted April 7, 2008 Author Share Posted April 7, 2008 @XetaQuake I found about thousand gas stations around LV (especially in villages) ^^ If you can get coords please do so If you need I'll release a script I made for myself for gathering them. 1. FIXED 2. FIXED 3. FIXED 4. PENDING 5. PENDING And by a mistake I uploaded it as version 1.0.0 again, but its ok anyways next release will be v2 Please vote for this resource here: https://community.multitheftauto.com/index.php?p=resources&s=details&id=119&vote=5 UPDATED Link to comment
[Ska]Vladmo Posted April 7, 2008 Share Posted April 7, 2008 Thanks CodeMaster! and my name is not Valdo! It's Vladmo! Link to comment
[Ska]Vladmo Posted April 7, 2008 Share Posted April 7, 2008 Also I can get you coords right now and also why not just create markers instead of /refill? When you enter the marker you refill, and it slowly refills. And thanks for this! Link to comment
XetaQuake Posted April 7, 2008 Share Posted April 7, 2008 Tomorrow i search some gas stations around san andreas! I use the "positions" resource, works great, i use it every time ^^ And thanks for the new version, i check it out tomorrow too Link to comment
CodeMaster Posted April 7, 2008 Author Share Posted April 7, 2008 (edited) Glad to see that finally one of my scripts are well accepted by community ^^ Vote for it too please! And Vladmo sorry for misspelling! EDIT: Is that "positions" resource yours, because I can't find it anywhere... Edited April 7, 2008 by Guest Link to comment
[Ska]Vladmo Posted April 7, 2008 Share Posted April 7, 2008 Also, I can find them too, I basically know where they all are Link to comment
CodeMaster Posted April 7, 2008 Author Share Posted April 7, 2008 Ok but I'll need their coords too Link to comment
[Ska]Vladmo Posted April 7, 2008 Share Posted April 7, 2008 Ok but I'll need their coords too Oh I know that I just use the /getpos command Edit: viewtopic.php?f=91&t=22530&p=276149#p276149 My problem Link to comment
CodeMaster Posted April 7, 2008 Author Share Posted April 7, 2008 I didn't knew that lol, But this is becoming like spamming lets move to IRC? Link to comment
XetaQuake Posted April 7, 2008 Share Posted April 7, 2008 Is that "positions" resource yours, because I can't find it anywhere... viewtopic.php?f=91&t=21674 now i go sleep (GMT +1 timezone) Tomorrow i search gas stations, see you! Link to comment
CodeMaster Posted April 8, 2008 Author Share Posted April 8, 2008 Thanks for supporting me I'm gonna work on new version as soon as possible, but I got some exams which awaits me, so development is going to be a bit slowed down... BTW: I have noticed that at those best votes (5's) almost in every my script someone puts one 1, I'm curious about reason you dislike it. If you don't like something please say it don't hide it behind my back, I'm doing my best to make this scripts work well. Link to comment
Mr.Hankey Posted April 8, 2008 Share Posted April 8, 2008 BTW: I have noticed that at those best votes (5's) almost in every my script someone puts one 1, I'm curious about reason you dislike it. If you don't like something please say it don't hide it behind my back, I'm doing my best to make this scripts work well. Don't care about it there are some idiots around the resource center that rate every new resource with 1... Link to comment
CodeMaster Posted April 8, 2008 Author Share Posted April 8, 2008 Thats really not ok... If they got something against I want to hear it, however bad it is, I want to make my scripts be better! But thats... No comment... Link to comment
XetaQuake Posted April 8, 2008 Share Posted April 8, 2008 and here is it all gas stations i found: [b]GAS STATIONS FOR CARS[/b] X:2114.6799316406 Y:920.03802490234 Z:10.8203125 RX:0 X:2639.9396972656 Y:1106.4301757813 Z:10.376944541931 X:2147.025390625 Y:2747.4851074219 Z:10.392276763916 X:2202.6599121094 Y:2474.2084960938 Z:10.389625549316 X:1595.8334960938 Y:2199.1372070313 Z:10.392153739929 X:292.55081176758 Y:2541.2055664063 Z:16.820880889893 X:611.92376708984 Y:1694.8377685547 Z:6.9921875 X:-1328.3668212891 Y:2677.4641113281 Z:50.0625 [b]GAS STATIONS FOR PLANES[/b] X:1564.6478271484 Y:1504.2807617188 Z:10.415808677673 X:290.96713256836 Y:2543.8508300781 Z:16.82049369812 i searched in this radius: its possibly that i overlooked one or two gas stations, but i dont think it because i have searched along all streets Link to comment
Winky Posted April 8, 2008 Share Posted April 8, 2008 12 Gas stations for Cars... or smt like that Link to comment
CodeMaster Posted April 8, 2008 Author Share Posted April 8, 2008 Thats hell of a job! Thank you! And how do you mean Plane Gas Stations? I'll add them for now, and in 1.5 I'll fix some errors that I've been spotted, but I don't think they would really make any troubles to any of you, but still I want this to be clean job... BTW: I got a problem with making markers to be auto implemented as map files, I added an marker as a .map file but it just won't add its self automatically. And yes I did added map to the meta.xml. But I'm unsure how can I choose a script map because for game mode u use ex. : changemode cdm cdm_ls But how can I run a map which is with an script resource? Link to comment
XetaQuake Posted April 8, 2008 Share Posted April 8, 2008 Thats hell of a job! Thank you! And how do you mean Plane Gas Stations? no problem plane gas stations: just gas station coords on the airport, so planes can refuel too Link to comment
CodeMaster Posted April 8, 2008 Author Share Posted April 8, 2008 Update on Progress to v1.5: Fixed a ProgressBar bug (progressbar won't show when player get car by admin panel Added XetaQuake's gas stations Making refuel system Thanks for the kind help from: XetaQuake People who helped me on IRC And to all of you who supports me Cheers Nidza Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now