- Apr 22, 2018
- 34
- 6
Hello, I'm creating a jump map, and I mostly need general help, since I haven't done this before. Right now though, my question is whether or not it's possible to force players on one team in hammer, and if it is, how.
OnHurtPlayer > Clientcommand > Command > jointeam red > 0.00
OnHurtPlayer > Clientcommand > Command > join_class soldier > 0.10
Thanks! I'm sure that it should work, but jointeam doesn't appear to be a valid command, resulting in the trigger just killing the soldier. Do you know of any command that forces the player to switch teams? I searched for it but couldn't find it.Then go to your trigger_hurt's 'Outputs' tab, and give it the following outputs:
- Give the 'filter_activator_tfteam' a name like 'Flt_Blue', the team to the one you don't want to use, and filer mode to 'Allow'.
- Give the point_clientcommand a name. I like simply 'Clientcommand'
- Set the damage on the 'trigger_hurt' to anything over 450 (enough to insta-kill an overhealed heavy). Then set it's filter to your named 'filter_activator_tfteam'
Code:OnHurtPlayer > Clientcommand > Command > jointeam red > 0.00 OnHurtPlayer > Clientcommand > Command > join_class soldier > 0.10
jointeam is the correct in game command. Any other command you might be thinking of would probably be a sourcemod command such as 'sm_team'Thanks! I'm sure that it should work, but jointeam doesn't appear to be a valid command, resulting in the trigger just killing the soldier. Do you know of any command that forces the player to switch teams? I searched for it but couldn't find it.
I already have it set in my autoexec, so everything should be fineIt's controlled by a CVAR, 'sv_allow_point_servercommand'
That need to be set to "always" for it to work.