Yet Another Forward Spawn question


(Stektr33) #1

Before you shake your head, please hear out what I’m trying to, as the posts that I have read vary slightly different from mine. What I’m trying to do is to have a forward spawn for the Axis, but not the Allies. If the Axis cap the flag, the axs flag sprouts on the command map and they’re able to spawn there. If the Allies cap it, I want the Axis knocked back at their original spawn, but I DON’T want an Allied flag to sprout and let the Allies spawn there. Now, all this is working except for the fact that an Allied flag pops up in the command map. I’m guessing what I need to do is remove the “default_axis” spawnflags from the team_wolf_objective (TWO). But if I do that, I don’t get any flags on the cmd map. I’m guessing, I need to call setstate on the TWO, but I’m not sure what to call it with? Thanks.
Sorry if this truly has been addressed, and if it has please supply a link…I’ve been looking all day.


(Drakir) #2

The team_wolf_checkpoint works like a switch. So when an Axis players touches it the flag pops up and vice versa for Allies. So you cannot have a team_wolf_checkpoint for only 1 team. But u can have it switching spawnpoints for only 1 team. Just dont add any spawnpoints targeted by the team_wolf_checkpoint for the team that u dont want to be able to spawn there.

U can fake this by using a bunch of other stuff, a trigger of some sort to trigger the forward spawn location setup.


(Stektr33) #3

I was able to make it work for one team by setting the team_wolf_objective spawnflags to “axis only”, which allows it to go back to the “no-flag” state when an allied player touches it.

Yeah, I haven’t added any blue_spawns there, just red ones, which are targeted by the team_wolf_checkpoint,and my script only sets the autospawn for the Axis team, so this part is working as well.

My problem is that when an allied player does touch it, an allied flag sprouts up on the cmd map, even though my team_wolf_objective’s spawn flags is set to “axis only”. If I deselect all the spawn flags from my team_wolf_objective entity, then no flags ever sprout up on the cmd map. So I was thinking, can I set my team_wolf_objective’s spawn flags from axis_only to no flags from my script.

Maybe I read your post wrong, or you misunderstood my actual dilemna, but I hope this clears it up. I’m not sure if using a different mechanism to trigger this “flag system” will help because I still have to deal with the team_wolf_objective sprouting up an allied flag when I don’t want it to.


(Stektr33) #4

Yes!!!
I got this to work. All I did was:


setstate <my team_wolf_objective> invisible

When the allies own the flag, so that it disappears from the cmd map, and when the Axis cap it, simply do:


setstate <my team_wolf_objective> default