This will only update the huds whenever the number of players on a team have changed instead of every second: (this may help eliminate some CGM Buffer overflow)
Find this:
PHP Code:
local.teamshud = int(getcvar("urm_tb_teamshud"))
if(local.teamshud) {
//Display/Update the teams HUD.
waitthread update_hud local.allies local.axis
}
Replace with this:
PHP Code:
local.teamshud = int(getcvar("urm_tb_teamshud"))
if(local.teamshud)
{
if(level.teamsetup)
{
if(level.axis != local.axis || level.allies != local.allies)
{
//Display/Update the teams HUD.
waitthread update_hud local.allies local.axis
level.axis = local.axis
level.allies = local.allies
}
}
else
{
level.teamsetup = 1
level.axis = 0
level.allies = 0
}
}
As far as your team hud display, what you have there is fine. Just put it into the update_hud local.allies local.axis: thread