Pandur 0 Posted February 15, 2009 Share Posted February 15, 2009 You could use DRAW_RECT to draw a Fuel bar. Use a Dark color (for example transparent black) as a backgroudn and some other color (like green) to draw the fuel level. You could also change the color of the fuel bar to red when fuel is low, or maybe even make it flashing in a red color. Yes, that would be pretty nice! I like the idea with the speedometer, too. Very useful!!! At the moment I dont know what I like more: GTAIV or its modders... Link to post Share on other sites
Leopard_ 0 Posted February 15, 2009 Share Posted February 15, 2009 OK, petrol mod v3 is released! Download at my forum. OK, I'm just about it to release v3. The money thing is broken. Trying to fix it. also gonna make a juicy text speedometer/fuel in next version! You could use DRAW_RECT to draw a Fuel bar. Use a Dark color (for example transparent black) as a backgroudn and some other color (like green) to draw the fuel level. You could also change the color of the fuel bar to red when fuel is low, or maybe even make it flashing in a red color. Hmm.. I suppose it is Draw Rectangle? I've searched it, but i didn't found the params (I'm using C++ script hook). If i know the params, i might do a good looking speedometer. The switch-to-red thing is a good idea, i maybe will do it. Link to post Share on other sites
Andrew 54 Posted February 15, 2009 Share Posted February 15, 2009 OK, I'm just about it to release v3. The money thing is broken. Trying to fix it. also gonna make a juicy text speedometer/fuel in next version! You could use DRAW_RECT to draw a Fuel bar. Use a Dark color (for example transparent black) as a backgroudn and some other color (like green) to draw the fuel level. You could also change the color of the fuel bar to red when fuel is low, or maybe even make it flashing in a red color. I didn't realise there was a DRAW_RECT function. Link to post Share on other sites
sammclean23 7 Posted February 15, 2009 Share Posted February 15, 2009 (edited) hi, going for remaining petrol stations now has this been suggested: turning off petrol just for missions like the SA one? And after i will search for heli pads Sam Edited February 15, 2009 by sammclean23 Link to post Share on other sites
Leopard_ 0 Posted February 15, 2009 Share Posted February 15, 2009 Hmm... i don't know how to set money? Somebody say how to take/add money to niko? I also made an .ini now. Will include keys and toggable functions. EDIT: I'll do the rest of petrol station locations tomorrow. I'm going to bed. Link to post Share on other sites
FunGt 56 Posted February 15, 2009 Share Posted February 15, 2009 I tried the mod, nice one, but I found a bug. The fuel number can be also negative lol. You should make that the fuel number can't be under 0. Link to post Share on other sites
Andrew 54 Posted February 15, 2009 Share Posted February 15, 2009 Its getting there slowly. I might release mine soon. Got a bit more work to be done. -3 different priced petrol stations -7 working petrol stations -2 stealing locations, gives you a 2 star wanted level -Saves one lot of fuel between saves. (press key to retrive fuel) -Each car has randomly generated amount of fuel -Expensive recovery option should you fun out of petrol. -Control hazard lights. Link to post Share on other sites
sammclean23 7 Posted February 15, 2009 Share Posted February 15, 2009 remaining station coordinates. sorry if ive missed any out but im sure it is quite a thorough search:D station: -1314.27 1732.04 27.43 station 1: -1393.18 31.04 6.64 Link to post Share on other sites
sammclean23 7 Posted February 15, 2009 Share Posted February 15, 2009 (edited) summary of station coordinates First Island 1131.84 , -353.76 , 19.00 1770.03 , 841.80 , 16.44 1125.81 , 333.24 , 29.42 -1392.85, 30.58, 6.51 Small Island above the first one 1451, 1712.86, 16.41 Second Island -479.06, -208.68 ,7.49 The station oppsite LCPD was already included Third island -1314.27, 1732.04, 27.43 -1393.18, 31.04, 6.64 Helipad coordinates will be on shortly Edited February 15, 2009 by sammclean23 Link to post Share on other sites
sammclean23 7 Posted February 16, 2009 Share Posted February 16, 2009 (edited) Finding it difficult locating the helipads because after flying around a while, the gas runs out. After the gas runs out, the gas runs out for all helicopters of that type i was flying the anihilator, landed got the police one, but gas was empty. disable helicopters fuel just till the pads are located? EDIT: or use these coordinates of two that ive already found to create a station to allow me to find the rest. 2162.20, 841.37, 18.47 2229.64, 736.53, 5.69 Sam Edited February 16, 2009 by sammclean23 Link to post Share on other sites
Andrew 54 Posted February 16, 2009 Share Posted February 16, 2009 sammclean23, if this is the same for leos mod, as it is for mine. You should be able to use the cheat function to heal the vehicle and restart the helicopter. Link to post Share on other sites
the_gas 0 Posted February 16, 2009 Author Share Posted February 16, 2009 Good work guys again. Once one, or both of you have finished the mod, send me a pm with mod instructions, screenshots, download links whatever you want to say and ill update the first post with what you send me in a pm. Link to post Share on other sites
Andrew 54 Posted February 16, 2009 Share Posted February 16, 2009 Or I can update the first post Anyway hope to restart work on this when I get back from University. Link to post Share on other sites
HazardX 13 Posted February 16, 2009 Share Posted February 16, 2009 The DRAW_RECT fucntion for C++: static void DrawRect(f32 centerX, f32 centerY, f32 width, f32 height, u32 R, u32 G, u32 B, u32 A) { NativeInvoke::Invoke<scriptVoid>("DRAW_RECT", centerX, centerY, width, height, R, G, B, A); } In .Net scripts you can use PerFrameDrawing to draw text and rectangles on screen (there is an example included). Link to post Share on other sites
a-k-t-w 0 Posted February 16, 2009 Share Posted February 16, 2009 is learning .net hard? Link to post Share on other sites
Andrew 54 Posted February 16, 2009 Share Posted February 16, 2009 The DRAW_RECT fucntion for C++: static void DrawRect(f32 centerX, f32 centerY, f32 width, f32 height, u32 R, u32 G, u32 B, u32 A) { NativeInvoke::Invoke<scriptVoid>("DRAW_RECT", centerX, centerY, width, height, R, G, B, A); } In .Net scripts you can use PerFrameDrawing to draw text and rectangles on screen (there is an example included). I had a play with that in the .net hook. Seems relatively easy. One thing I'd like it to stop doing is to draw in the center. Link to post Share on other sites
the_gas 0 Posted February 16, 2009 Author Share Posted February 16, 2009 Or I can update the first post Anyway hope to restart work on this when I get back from University. Ok, didn't realise you had such mighty privileges. Link to post Share on other sites
Leopard_ 0 Posted February 16, 2009 Share Posted February 16, 2009 Or I can update the first post Anyway hope to restart work on this when I get back from University. Ok, didn't realise you had such mighty privileges. Hey, you could include my version too in the main post? @HazardX: Thank you for rectangle thing! I'll make an box editor soon @sam: I'll PM you a special version of my mod. That means helis don't have fuel. Leopard Link to post Share on other sites
HazardX 13 Posted February 16, 2009 Share Posted February 16, 2009 I had a play with that in the .net hook. Seems relatively easy. One thing I'd like it to stop doing is to draw in the center. I've included a DrawRectangle function in .Net that takes a RectangleF. A RectangleF takes left, top, width and height. Link to post Share on other sites
sammclean23 7 Posted February 16, 2009 Share Posted February 16, 2009 sammclean23, if this is the same for leos mod, as it is for mine. You should be able to use the cheat function to heal the vehicle and restart the helicopter. thanks for that Link to post Share on other sites
sammclean23 7 Posted February 16, 2009 Share Posted February 16, 2009 Or I can update the first post Anyway hope to restart work on this when I get back from University. Ok, didn't realise you had such mighty privileges. Hey, you could include my version too in the main post? @HazardX: Thank you for rectangle thing! I'll make an box editor soon @sam: I'll PM you a special version of my mod. That means helis don't have fuel. Leopard thanks aswell ill have the helipad coords by tonight with locations once again Link to post Share on other sites
the_gas 0 Posted February 16, 2009 Author Share Posted February 16, 2009 Or I can update the first post Anyway hope to restart work on this when I get back from University. Ok, didn't realise you had such mighty privileges. Hey, you could include my version too in the main post? @HazardX: Thank you for rectangle thing! I'll make an box editor soon @sam: I'll PM you a special version of my mod. That means helis don't have fuel. Leopard Yeah i think both should be included, and then people have an alternative choice. Link to post Share on other sites
Leopard_ 0 Posted February 16, 2009 Share Posted February 16, 2009 Ok. Either i'm stupid or i'm too tired to code. I have 1000 errors in my script, same amount of bugs too. Trying to fix it. Also doing a nice speedometer EDIT: YES!!! Finally i fixed this whole sht! Man.. i'm so happy now Gonna do a preview video soon... Ok, so v4.5 will include - fixed pay bug - Include a few heli fuel places - Juicy speedometer (with a warning text if fuel is low) Leopard Link to post Share on other sites
the_gas 0 Posted February 16, 2009 Author Share Posted February 16, 2009 Looking forward to it. Link to post Share on other sites
Pandur 0 Posted February 16, 2009 Share Posted February 16, 2009 yay... something's going on in this thread! i am back from work, so i start the game and look for possible boat stations... Link to post Share on other sites
Andrew 54 Posted February 16, 2009 Share Posted February 16, 2009 Nearly ready for a release of mine. - 4 different blip types indentifying the different stations (A, C, J, K) - 3 different station prices (Ron, TerraOil and Globe) 209, 239 and 260 for 10l of fuel - 9 working paying stations - 7 stealing locations (ranging from tankers to, the oil facilties in Acter, get a 2 star wanted level) - Expensive emergency recovery. Fills the car with 100l of petrol to get you to a petrol station. - Fuel gauge changes colour depending on how much fuel in the tank, with text display. - Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright) Link to post Share on other sites
Leopard_ 0 Posted February 16, 2009 Share Posted February 16, 2009 - Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright) Cool idea! Myself, i don't have any plans what to do. Oh wait.. i'm gonna do heli/boat, right! Hmm, what more.. i could try to make so if the player calls "TOW-555-0100" a truck driver will come to you Leopard Link to post Share on other sites
Andrew 54 Posted February 16, 2009 Share Posted February 16, 2009 - Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright) Cool idea! Myself, i don't have any plans what to do. Oh wait.. i'm gonna do heli/boat, right! Hmm, what more.. i could try to make so if the player calls "TOW-555-0100" a truck driver will come to you Leopard I don't think we have access to the cell phone? Link to post Share on other sites
Leopard_ 0 Posted February 16, 2009 Share Posted February 16, 2009 - Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright) Cool idea! Myself, i don't have any plans what to do. Oh wait.. i'm gonna do heli/boat, right! Hmm, what more.. i could try to make so if the player calls "TOW-555-0100" a truck driver will come to you Leopard I don't think we have access to the cell phone? I think? There's an emergencycall.sco inside scripts.img. Could be something init. Link to post Share on other sites
Andrew 54 Posted February 16, 2009 Share Posted February 16, 2009 - Speed gauge, changes colour to indicate fuel drain (red = huge drain, green = alright) Cool idea! Myself, i don't have any plans what to do. Oh wait.. i'm gonna do heli/boat, right! Hmm, what more.. i could try to make so if the player calls "TOW-555-0100" a truck driver will come to you Leopard I don't think we have access to the cell phone? I think? There's an emergencycall.sco inside scripts.img. Could be something init. Hmm, could be we can decompile SCO scripts don't think we can edit them yet. Link to post Share on other sites