hi...i did a search but i'm not sure of the exact name...
i was lookin for the mod that displays how many players on each team during a tdm game.
obj has it built in...but i would like one for tdm.
any ideas where i can get it??
thanks
Z
level waittill spawn
main:
thread teams
thread setup
end
teams:
while(1)
{
huddraw_align 202 right top
huddraw_font 202 "courier-20"
huddraw_rect 202 -59 90 100 14
huddraw_color 202 1 0 0
huddraw_alpha 202 1.0
huddraw_shader 203 ("textures/hud/allies")
huddraw_align 203 right top
huddraw_rect 203 -60 77 14 14
huddraw_alpha 203 1.0
huddraw_align 204 right top
huddraw_font 204 "courier-20"
huddraw_rect 204 -39 90 100 14
huddraw_color 204 1 0 0
huddraw_alpha 204 1.0
huddraw_shader 205 ("textures/hud/axis")
huddraw_align 205 right top
huddraw_rect 205 -40 77 14 14
huddraw_alpha 205 1.0
huddraw_align 206 right top
huddraw_font 206 "courier-20"
huddraw_rect 206 -80 55 100 14
huddraw_alpha 206 1.0
huddraw_string 206 ("=TEAMS= ")
huddraw_string 202 (level.allies)
huddraw_string 204 (level.axis)
wait 1
}
end
setup:
while(1)
{
level.allies = 0
level.axis = 0
for(local.i=1;local.i <= $player.size;local.i++)
{
if($player[local.i].dmteam == "axis")
level.axis++
else
if($player[local.i].dmteam == "allies")
level.allies++
}
waitframe
huddraw_color 206 0 1 0
if ((level.axis > level.allies+1) && (getcvar("g_gametype") != "1"))
{
huddraw_color 206 1 0 0
}
if ((level.allies > level.axis+1) && (getcvar("g_gametype") != "1"))
{
huddraw_color 206 1 0 0
}
wait .5
huddraw_color 206 0 1 0
wait .5
}
end
make a team.scr with that, put it in global folder and exec it (exec global/team.scr) from dmprecache or wherever you want.
THANKS AGAIN !!!!
works well.
2nd time you've helped me. appreciate it!
cya
Z