View Single Post
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-11-2019 , 18:15   Re: [TF2]Editing Round Timer
Reply With Quote #2

For TF2 Prop Hunt, I actually hooked my team_round_timer spawning to the SDKHook_SpawnPost of the team_control_point_master entity. As a failsafe, I check in teamplay_round_start to see if a TCPM entity exists on the map and spawn one if it doesn't. (Side note: Don't do this in CTF maps)

Granted, this was on the arena game mode, so in OnClientPutInServer, I used SendConVarValue to fake the tf_arena_round_time value to force the client UI to draw the timer background as it won't if this cvar is set to 0 (the default).
Am I back? Well, we'll see.
Powerlord is offline