• Radar HUD
    6 replies, posted
Hello, I need to make a HUD that looks like the HUD from Star Wars: Battlefront 2. I already wanted to pay people for it but nobody wants to do it, so i have to do it myself. Does anyone knows how to do it? Thank you!
-snip-
You mean one like [URL="http://media.moddb.com/images/mods/1/20/19631/hud_01-1.jpg"]this[/URL]? 1. Create a [URL="https://wiki.garrysmod.com/page/GM/HUDPaint"]HUDPaint[/URL] hook in a client side file. 2. Add some boxes inside the HUDPaint hook. You can use [URL="https://wiki.garrysmod.com/page/draw/RoundedBox"]draw.RoundedBox[/URL] or [URL="https://wiki.garrysmod.com/page/surface/DrawRect"]surface.DrawRect[/URL] 3. Next you'll want to add things like changing the rectangle width based on how much health/armor a player has, but hopefully the first 2 points will help get you started. [B]Edit: [/B] If you end up coding something and need additional help, feel free to post your code below and I'll take a look and try to guide you in the correct direction.
[QUOTE=MrAnarchy;52632693]You mean one like [URL="http://media.moddb.com/images/mods/1/20/19631/hud_01-1.jpg"]this[/URL]? 1. Create a [URL="https://wiki.garrysmod.com/page/GM/HUDPaint"]HUDPaint[/URL] hook in a client side file. 2. Add some boxes inside the HUDPaint hook. You can use [URL="https://wiki.garrysmod.com/page/draw/RoundedBox"]draw.RoundedBox[/URL] or [URL="https://wiki.garrysmod.com/page/surface/DrawRect"]surface.DrawRect[/URL] 3. Next you'll want to add things like changing the rectangle width based on how much health/armor a player has, but hopefully the first 2 points will help get you started. [B]Edit: [/B] If you end up coding something and need additional help, feel free to post your code below and I'll take a look and try to guide you in the correct direction.[/QUOTE] I need that one aswell! But what i need is: [url]https://www.youtube.com/watch?v=zlxyhnuYwl4[/url] If you can help or make it for me im willing to pay you if you want.
I made one of those awhile back. Pretty fucky math, had to use someone else's code for calculation. More trouble than it's worth.
[QUOTE=overki11;52634419]I made one of those awhile back. Pretty fucky math, had to use someone else's code for calculation. More trouble than it's worth.[/QUOTE] It just requires a bit of polar math, nothing too wild.
[QUOTE=code_gs;52634544]It just requires a bit of polar math, nothing too wild.[/QUOTE] yeah but i'm not good at math
Sorry, you need to Log In to post a reply to this thread.