Making text show depending on which team has flag

  • If you're asking a question make sure to set the thread type to be a question!

owly-oop

im birb
aa
Apr 14, 2009
819
1,215
I have no clue how to do this

In the "Invade CTF" mode, there's a neutral flag in the middle and you must plant it at enemy base. Anyways when someone has intel it doesn't show who has the flag, hud is still neutral.

I don't think changing the hud is possible (or i'm dumb :O ), i was thinking just print text over the flag hud saying "Red" or "Blu"

is this possible and how? I'm dumb with entities
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
You should be able to trigger team goal string's manually during gameplay, er. I'll (or someone else will) have to test that out though.

Something like "OnFlagPickupRedTeam/SetBluGoalString/Defend your capture zone!"
 

Pseudo

L6: Sharp Member
Jan 26, 2008
319
150
You want the flag to be the color of the team that's carrying it?
I think this should work:
OnPickupTeam1 SetTeam 2
OnPickupTeam2 SetTeam 3
OnDrop SetTeam 0
OnCapture SetTeam 0

If you want text displays, you would use two game_text, just have them Display when the corresponding OnPickupTeam_ happens.
 

Pseudo

L6: Sharp Member
Jan 26, 2008
319
150
Isn't that the crappy HL translucent text though?
Yes, but he doesn't really have any other choice. The goal strings only show when players first spawn, and game_text_tf won't let you choose its placement or display time.