-mesh,models/ctf/flag_red.tga
-mesh2,models/ctf/banner_red.tga
-mesh3,models/ctf/glow_red.tga
\ No newline at end of file
+mesh,models/ctf/flag.tga
+mesh2,models/ctf/banner.tga
+mesh3,models/ctf/glow.tga
\ No newline at end of file
+++ /dev/null
-mesh,models/ctf/flag_blue.tga
-mesh2,models/ctf/banner_blue.tga
-mesh3,models/ctf/glow_blue.tga
\ No newline at end of file
+++ /dev/null
-mesh,models/ctf/flag_yellow.tga
-mesh2,models/ctf/banner_yellow.tga
-mesh3,models/ctf/glow_yellow.tga
\ No newline at end of file
+++ /dev/null
-mesh,models/ctf/flag_pink.tga
-mesh2,models/ctf/banner_pink.tga
-mesh3,models/ctf/glow_pink.tga
\ No newline at end of file
+++ /dev/null
-mesh,models/ctf/flag_neutral.tga
-mesh2,models/ctf/banner_neutral.tga
-mesh3,models/ctf/glow_neutral.tga
\ No newline at end of file
flag.nextthink = time + FLAG_THINKRATE;
flag.ctf_status = FLAG_BASE;
+ // set correct team colors
+ flag.glowmod = Team_ColorRGB(teamnum);
+ flag.colormap = (teamnum) ? (teamnum - 1) * 0x11 : 0x00;
+ flag.colormap |= BIT(10); // RENDER_COLORMAPPED
+
// crudely force them all to 0
if(autocvar_g_ctf_score_ignore_fields)
flag.cnt = flag.score_assist = flag.score_team_capture = flag.score_capture = flag.score_drop = flag.score_pickup = flag.score_return = 0;
-models/ctf/glow_red
+models/ctf/glow
{
{
- map models/ctf/glow_red.tga
- tcMod scale 0.03 0.03
- tcMod scroll 0.1 -0.04
- tcMod rotate 0.1
- }
-}
-models/ctf/glow_blue
-{
- {
- map models/ctf/glow_blue.tga
- tcMod scale 0.03 0.03
- tcMod scroll 0.1 -0.04
- tcMod rotate 0.1
- }
-}
-models/ctf/glow_yellow
-{
- {
- map models/ctf/glow_yellow.tga
- tcMod scale 0.03 0.03
- tcMod scroll 0.1 -0.04
- tcMod rotate 0.1
- }
-}
-models/ctf/glow_pink
-{
- {
- map models/ctf/glow_pink.tga
- tcMod scale 0.03 0.03
- tcMod scroll 0.1 -0.04
- tcMod rotate 0.1
- }
-}
-models/ctf/glow_neutral
-{
- {
- map models/ctf/glow_neutral.tga
+ map models/ctf/glow.tga
tcMod scale 0.03 0.03
tcMod scroll 0.1 -0.04
tcMod rotate 0.1