Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Release Forum » [Hud] Simple Hud
Re: [Hud] Simple Hud [message #414048 is a reply to message #412690] Mon, 14 December 2009 21:46 Go to previous messageGo to previous message
Tunaman
Messages: 1190
Registered: January 2005
Karma:
General (1 Star)
You can add one line of code to shaderhud.cpp to make custom HUDs made by HUD.ini work properly with hud toggling commands.

if(!(*(bool *)0x8124b4)) return; //return if IsHudShown == false


You can just add this at the top of the UpdateHUD2() function.
What this does is check if the value at 0x8124b4(the address of IsHudShown) is 0, if it is 0 then it just exits the function. ^^


http://img694.imageshack.us/img694/9055/tunamanlmao.png
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [skin] Not so hot Hotiwre
Next Topic: GDI CHARACTER PT ICONS
Goto Forum:
  


Current Time: Sat Feb 15 00:55:06 MST 2025

Total time taken to generate the page: 0.01361 seconds