View Full Version : Help On HUD
15th Nov 2001, 12:32 AM
Hi, I have a few question regarding using a new HUD in a mutator. I've read a few tutorials on HUD's but most of them indicate that the best way to use the new hud, is by making a new game type. But I don't really need to make a new game type. I've used the PostRender function in the mutator subclass of my package, but I don't really know how to make if work. Please if someone out there have any experience with HUD's and know how to run them from a mutator (NOT GAMETYPE) I would be thankful if you can clear this doubt I have, thanks.
15th Nov 2001, 04:40 AM
Assuming your PostRender function in your mutator function is properly set up, this Tick function will make it work:
Function Tick(float DeltaTime)
Or, if you already have a function Tick, just add the if Statement + function call. If you want to make really clean and fast code, and donít have a function Tick yet, you could disable Tick when your HUD mutator is registered, by adding this:
under the RegisterHUDMutator call.
By the way, to clear things up: you really DONíT need a gametype to add things to the HUD. If you want a totally new HUD, so you donít want the normal things (ammo, weapons, frags) drawn on the HUD, yes then you need a gametype. Another thing you need a gametype for is to make a new scoreboard.
Hope this helps you,
15th Nov 2001, 04:57 AM
Works great!! Thanks a lot for taking your time and helping this poor soul!! :D
15th Nov 2001, 06:22 AM
No problem ! I'm just glad I was able to help.
15th Nov 2001, 10:24 AM
15th Nov 2001, 11:37 AM
vBulletin® v3.8.7, Copyright ©2000-2015, vBulletin Solutions, Inc.