DRUZZRIN12296 Posted July 21, 2013 Share Posted July 21, 2013 I'm currently trying to make a GTA V HUD for GTA IV. I have made the border rectangle just like GTA V but now I have no idea how to change the health and armour bars into the linear ones shown in GTA V. I also need the radar map to fit in the rectangle also. Wondering whether I would have to make my own script, or if I can just rewrite what they have in the game. There must be something there to say: "Hey! The game wants the radar to be round not square. and we want the health and armour to fit around" but I simpy can not find it. I've looked in almost every nook and cranny. I'd say I've overturned around 80% of the game's files opening .dat's some .sco's... Just can not locate where to find this. My next option was to find out how they made a GTA IV HUD mod for SA and see if I could reverse engineer. The health and armour bars in GTA V are much like previous GTAs so what tells those games to have the health and armour bars linear!! Someone for the love of all that is holy, help me!! I'm going mad, this is pretty much the last thing I need to publish this mod for the public :'( NOTE: If someone could also tell me why my TBOGT and TLAD crosshairs are huge!!? That'd be great. Link to comment Share on other sites More sharing options...
Michael Wojtanis Posted July 21, 2013 Share Posted July 21, 2013 Well, nobody know where is the information about radar sphere. If You want make HUD You should copy of GTA 4 map or load texture and then with player position X,Y make sure to pleace it. Then write about blocking rectangle [borders] and also write the drawing rectangle of Player Health. That is all. I can make the health bar, armor and "special" but... i self do not know exactly how to do minimap. I know how to make map in one direction, but without rotation... Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 21, 2013 Author Share Posted July 21, 2013 Are you interested in helping me get this done? Haha Ps nice job on The weapon wheel. I don't know much at all about scripting Alexander made a GTA IV radar mod for San Andreas and I've messaged him about this asking how he did it. Link to comment Share on other sites More sharing options...
Michael Wojtanis Posted July 21, 2013 Share Posted July 21, 2013 If he answer, please, share with us the solution what he did. Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 21, 2013 Author Share Posted July 21, 2013 If he answer, please, share with us the solution what he did. If he does then I will make sure to tell you us Michaels have to stick together hahaha. Now scripting: Before I go to sleep, 0:30am here, would you be willing to give me some code structure Icould write to get the health and armour bars? Tell me what you would need to be able to help me Link to comment Share on other sites More sharing options...
Michael Wojtanis Posted July 21, 2013 Share Posted July 21, 2013 You just need to know about DrawingPerFrame, getting from Player.Character.health and Player.Character.Armor and that is all. Next just do some matematic of screen... To work perfect on wide, on 3:4 etc. Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 21, 2013 Author Share Posted July 21, 2013 Too bad I don't. Hahaha. Is it like GET_CHAR_HEALTH and GET_CHAR_ARMOUR? How will that all link to health bar and armour bar? :S would you be able to make a basic example and send me it? Link to comment Share on other sites More sharing options...
Michael Wojtanis Posted July 21, 2013 Share Posted July 21, 2013 int playerHealth = Player.Character.Health; int playerArmor = Player.Character.Armor; This is beggining... i write now my script, sorry Link to comment Share on other sites More sharing options...
pedro2555 Posted July 21, 2013 Share Posted July 21, 2013 Well, nobody know where is the information about radar sphere.If You want make HUD You should copy of GTA 4 map or load texture and then with player position X,Y make sure to pleace it. Then write about blocking rectangle [borders] and also write the drawing rectangle of Player Health. That is all. I can make the health bar, armor and "special" but... i self do not know exactly how to do minimap. I know how to make map in one direction, but without rotation... C'mon man I'm sure you can find out how to rotate the map. BTW excelent work with the V Weapon HUD, funny enought I had the exact same idea when I saw the V preview video. So give a search on how to rotate that and take hands on job, if I find a way I will post it here. I would love to see that mod from you. Link to comment Share on other sites More sharing options...
Michael Wojtanis Posted July 21, 2013 Share Posted July 21, 2013 First i must end the weapon hud and switcher players mod. Then i will see what i can do with minimap. Link to comment Share on other sites More sharing options...
pedro2555 Posted July 21, 2013 Share Posted July 21, 2013 First i must end the weapon hud and switcher players mod. Then i will see what i can do with minimap. . Call it 'GTA IV + I' mod pack. Good work mate. Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 21, 2013 Author Share Posted July 21, 2013 int playerHealth = Player.Character.Health;int playerArmor = Player.Character.Armor; This is beggining... i write now my script, sorry Thanks a lot man. Just got a reply from Alexander. I'm not sure if he knows Hi , it needs different approach with GTA IV , this isn't typical modding and requires many things to patch in exe . I'll try learn some more about scripting. I am supposed to be writing a seminar this week... Hahaha Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 21, 2013 Author Share Posted July 21, 2013 (edited) PROGRESS: Hazah! I made a script that loads the border for map and bars Now just for the Health bars. And making map rectangle :S And making the script hide the game radar I'm thinking that I could get the amount of health the player has and relate it to a percentage of bar? Edited July 23, 2013 by DRUZZRIN12296 Link to comment Share on other sites More sharing options...
Wheatley Posted July 23, 2013 Share Posted July 23, 2013 (edited) PROGRESS:Hazah! I made a script that loads the border for map and bars *SNIP* *SNIP* Now just for the Health bars. And making map rectangle :S And making the script hide the game radar I'm thinking that I could get the amount of health the player has and relate it to a percentage of bar? Nice, this will go well with the GTA V Weapon HUD mod that was released recently. I'm actually trying to work out how to do a "Character Switching" Mechanic on GTA IV right now, I should probably start it on it soon before GTA V's release. I've written my basic idea down into Pseudo code: 1. Start 1.1 Set Player Model to Niko 1.1.1 Save Player Niko Location 1.2 Push Switch Button To Luis 1.2.1 Pull Camera down Y Axis 1.2.2 Move Camera Up X Axis 1.2.3 Move Camera Along Z Axis to Teleport location 1.3 Set Teleport location to random 1.3.1 Set Player Model to Luis 1.4 Save Player Luis Location 1.4.1 Push Button to Johnny 1.4.2 Pull Camera Down Y Axis 1.4.3 Move Camera Up X Axis 1.4.4 Move Camera Along Z Axis to Teleport location 1.5 Set Teleport location to random 1.5.1 Set Player model to Johnny Edited July 23, 2013 by Wheatley Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 23, 2013 Author Share Posted July 23, 2013 Yeah man cool, but I think M. Wojtanis is already scripting his, but you should go ahead. It's always good to see a little competition, stops people from getting lazy Once we have a few GTA V themed mods in place we will make a joint pack for them. Weapon Wheel - M.Wojtanis Character Switcher - M.Wojtanis Radar - DRUZZRIN12296 Middle finger mouse cursor - DRUZZRIN12296 Also I have some GTA V police cars and weapons Inbetween my radar mod I am also making a sniper scope, just like the one they use to kill the deer haha. I am also trying to make a spawn Bugstars Van via telephone haha Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 23, 2013 Author Share Posted July 23, 2013 I am writing script for this too. And this is the deer one that is almost done: Link to comment Share on other sites More sharing options...
Michael Wojtanis Posted July 25, 2013 Share Posted July 25, 2013 You make a model of deer? You should look at "GTA IV" in "other" in modding page. There is instructions to make animation. Just add new animation with OpenIV, in one file i remeber You can put this name and viola - we have a deer with original animation. Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 26, 2013 Author Share Posted July 26, 2013 You make a model of deer?You should look at "GTA IV" in "other" in modding page. There is instructions to make animation. Just add new animation with OpenIV, in one file i remeber You can put this name and viola - we have a deer with original animation. No... I am making the Crosshair for the sniper hahaha Link to comment Share on other sites More sharing options...
pedro2555 Posted July 26, 2013 Share Posted July 26, 2013 PROGRESS:Hazah! I made a script that loads the border for map and bars Now just for the Health bars. And making map rectangle :S And making the script hide the game radar I'm thinking that I could get the amount of health the player has and relate it to a percentage of bar? for the bar : Rectangle(X, Y, (currentValue * (barWidth)) / maxValue, barHeight) for health for instance, just change currentValue to Players health, and maxValue to 100. you may have to tweak some points from the calculation to make sure it fits corectly. But any way it does what you need. Given a maximum it makes it fit in the available space. Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 26, 2013 Author Share Posted July 26, 2013 What if I use a sprite instead, would that work? Link to comment Share on other sites More sharing options...
nixolas1 Posted July 27, 2013 Share Posted July 27, 2013 This is something i made now (C++): u32 health;f32 max=1500.0f; //make bigger if you want a smaller (x-width) health bar.GetCharHealth(ped, &health);health-=100; //max=200, dead=100if(health<=200 && health>=0){}else health=0; //health value is non-existing when player is dead. check for it.// x pos, y pos, x width, y width, r, g, b, alphaDrawRect(0.1f+health/(max*2), 0.96f, health/max, 0.01f, 0, 175, 100, 200); works for me Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 27, 2013 Author Share Posted July 27, 2013 Omg omg omg!!! I need that for C# Link to comment Share on other sites More sharing options...
nixolas1 Posted July 27, 2013 Share Posted July 27, 2013 ops http://puu.sh/3Nb9O.png when i made the made yellow bar i just had to make some special abilities, so the screen is from in-car slow motion ability Link to comment Share on other sites More sharing options...
DRUZZRIN12296 Posted July 27, 2013 Author Share Posted July 27, 2013 (edited) ops http://puu.sh/3Nb9O.png when i made the made yellow bar i just had to make some special abilities, so the screen is from in-car slow motion ability That's not fair you're already ahead of me That's good work. Shame that i don't know how to code really haha. But nice work. Any idea on the map? Edited July 27, 2013 by DRUZZRIN12296 Link to comment Share on other sites More sharing options...
_CP_ Posted July 27, 2013 Share Posted July 27, 2013 Oh, nice progress, keep it up, guys. Link to comment Share on other sites More sharing options...
paranamo42 Posted August 8, 2013 Share Posted August 8, 2013 Looks amazing, When do you think it will be finished? I will be happy to get it first thing Link to comment Share on other sites More sharing options...
pedro2555 Posted August 8, 2013 Share Posted August 8, 2013 What if I use a sprite instead, would that work? For the map itself ? Yes it should be the best option, and should not be difficult at all. I will try to post some snippets for that soon. The blip display, is the real hassle. But still possible. I wished I had time to work on this stuff, but I'm quite limited at the moment. Nice progress thought. Link to comment Share on other sites More sharing options...
nixolas1 Posted August 8, 2013 Share Posted August 8, 2013 What if I use a sprite instead, would that work? For the map itself ? Yes it should be the best option, and should not be difficult at all. I will try to post some snippets for that soon. The blip display, is the real hassle. But still possible. I wished I had time to work on this stuff, but I'm quite limited at the moment. Nice progress thought. how would you draw the sprites so that they dont exceed the radar area? i mean, when you draw the map sprites for the area youre in, the sprites dosnt perfectly match the size of the radar, some of them will be outside the radar area. how would you cut that part out? that is the problem I've been having while trying to make this. The blips could be done somewhat easily, with some GetAllBlipsOfType and some arrays with blip textures linked to blipsprite number. Link to comment Share on other sites More sharing options...
Urethra Posted August 11, 2013 Share Posted August 11, 2013 I'm not sure if this helps, but the guy in this video has a lot of the HUD set up: The map isn't very useful though Link to comment Share on other sites More sharing options...
pedro2555 Posted August 11, 2013 Share Posted August 11, 2013 (edited) What if I use a sprite instead, would that work? If it is only a solid color, why using a sprite ? It will not work with the exact code I've sent you, but it is possible with a bit more code. EDIT: Lol, I may have miss read something Edited August 14, 2013 by pedro2555 Link to comment Share on other sites More sharing options...
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