AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   [TF2] Directly modify HUD elements (https://forums.alliedmods.net/showthread.php?t=314760)

Blinx 03-05-2019 21:49

[TF2] Directly modify HUD elements
 
https://i.imgur.com/YamAkL1.png

I was wondering if it's possible to directly modify the two KOTH timers to not display time but just an ordinary int or float without the colon, but I don't know where I'd look to modify that, any ideas?

Powerlord 03-06-2019 14:42

Re: [TF2] Directly modify HUD elements
 
I highly suspect that the client just reads from the networked properties on the two KOTH timer entities and then formats them into minutes and seconds.

Edit: The gamerules entity stores the entity refs of the two KOTH timers so they don't even need to be looked up by name.

Mitchell 03-06-2019 16:41

Re: [TF2] Directly modify HUD elements
 
I don't think you can remove the colon, but you could pause the timers (the ones powerlord mentioned in the gamerules). Pause the timers then set them to what you want. Make sure no other entities are pointing to them though or it could override what you put in the timer.
For int values you could try changing the hudtype to CTF via the gamerules, expect weird results though.

Blinx 03-10-2019 00:24

Re: [TF2] Directly modify HUD elements
 
Thanks for the replies. I guess I'll just overly HUD elements on top of them.


All times are GMT -4. The time now is 12:27.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.