Gun_game_logic - Spawn points

Why can’t the engine understand when i’m tie a specific team to a certain spawn point in gun games?

I’m working on 1vs1 maps and want team 1 (player 1) to have access to only one of the two re-spawn points, and team 2 (player 2) vice versa .

entity{
_template:t=“gun_game_respawn_base”
transform:m=[[-0.0192025, 0, 0.999816] [0, 1, 0] [-0.999816, 0, -0.0192025] [-363.377, 3.45318, 786.902]]
team:i=1
lastSpawnOnTime:r=1
gun_game__respawnFriendlyRadius:r=0
}

entity{
_template:t=“gun_game_respawn_base”
transform:m=[[0.0906716, 0, -0.995881] [0, 1, 0] [0.995881, 0, 0.0906716] [-365.249, 3.45318, 842.765]]
team:i=2
lastSpawnOnTime:r=1
gun_game__respawnFriendlyRadius:r=0
}

The game ignores my command and both respawn bases becomes -1 after a while.

2 Likes

It’s because gun_game_mode_logic reset all respawn points after 20 seconds by default.
But you can “turn it off” by editing property gun_game__resetSpawnsTimeout to very big number. Like 99999.
I think it will be enough for finish match without any resets.

4 Likes

Thank you very much, sir!

Very helpful.

2 Likes