Simple Noobish Question about respawn times

acediad

L1: Registered
Jun 3, 2015
2
0
Hi, I'm new to mapping and I have a question about respawn times.
When I die in my map, I can change class and instantly respawn, meaning you can repsawn straight away without having to wait every time you die.
Is there any way to prevent this using some sort of entity or by editing the playerspawn entity?

I expect this has been asked before but I couldn't find a thread, so if someone could direct me to a thread where this has been explained, I would be grateful.
Thanks
Acediad
 

chemelia

yndersn't
aa
May 11, 2014
406
619
Add logic_auto and tf_gamerules entities to your map if you haven't already. On the logic_auto, add the output

OnMultiNewRound>tf_gamerules>SetRed/BlueRespawnWaveTime <number>.

The right number to place in <number> varies by gamemode, and the map's size.
 

grazr

Old Man Mutant Ninja Turtle
aa
Mar 4, 2008
5,441
3,814
Yeah, the waiting time will be dictated by how you want to balance the level. Generally with the 5cp control point maps, the winning team gets a respawn bonus with faster respawns to provide help with "attrition", one team wearing another down. Or maybe you just want to increase the pace by reducing both teams respawn timers.

It will also dictate, taking into account travel time, where players meet in your map. You will probably want them to meet at key areas like an objective, if you find they're meeting just before or after a location of interest, there's no need to modify the map necessarily, just adjust the spawn timers. This will be true more for attack defend modes. KoTH and the central CP in 5CP will want to be as symmetrical as possible.
 

henke37

aa
Sep 23, 2011
2,075
515
The game should have default spawn times, if you are getting instant respawns without manually setting the times to zero then something is wrong.