GTA V Minimap to GTA IV

DRUZZRIN12296

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.

Michael Wojtanis

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...

DRUZZRIN12296

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

Michael Wojtanis

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.

pedro2555

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.

DRUZZRIN12296

I made a script that loads the border for map and barsNow just for the Health bars. And making map rectangle :SAnd making the script hide the game radarI'm thinking that I could get the amount of health the player has and relate it to a percentage of bar?

I made a script that loads the border for map and bars*SNIP**SNIP*Now just for the Health bars. And making map rectangle :SAnd making the script hide the game radarI'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.

Michael Wojtanis

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.

DRUZZRIN12296

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.

pedro2555

I made a script that loads the border for map and barsNow just for the Health bars. And making map rectangle :SAnd making the script hide the game radarI'm thinking that I could get the amount of health the player has and relate it to a percentage of bar?

for the bar :

CODE

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.

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.