Editing spawntimes.

dogs697

L1: Registered
Aug 23, 2009
8
0
I'm making a 5cp map and i'm a bit stuck with the longest respawntimes ever.

I know virtually nothing about changing times, entities needed, etc etc.
The 'tutorial' in the valve wiki is everything but helpful to me.
Could someone forward me to a 'spawntime for dummies' tutorial? :blushing:

dogs
 

RavenStryker

Former Alias: †Blade†/Xi.Cynx
aa
Nov 25, 2008
782
845
This is the entity your going to need:

tf_gamerules

Click on it for more information on what each option does within it. ;)
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
5 CP maps usually let the trigger_capture_areas auto-handle the spawn time changes, rather than manually telling the tf_gamerules to. The t_c_a has settings for altering the spawns base on who takes the point.

You could either look at a valve map to see it or get the resource pack in my sig and make use of my pre-made setup.
 

Sgt Frag

L14: Epic Member
May 20, 2008
1,443
710
It would be nice to have more of a 'commoners tut' to this stuff.

Looking at <booleen> and whatnot can be confusing if you don't know what that stuff actually means. I have some ideas on that stuff but still couldn't put it altogether from scratch.

Using Boojums gametype library is a huge help to getting it done quickly, but still fine tuning is rough.

For example, easy enough to adjust a cap areas times. And adding say a '1' to adjust respawn times. But it doesn't seem like that adds one second, it's more like it adds a percentage, which turns out to be 3 seconds or something.
A tut that explained what is actually happening would be awesome.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
I thought we had one around here but I can't seem to find any. But anyway there was a blog post that explained them too.

http://teamfortress.com/post.php?id=1872 said:
Respawn waves occur on regular intervals, based on the map settings. Most of our maps use a 10 second respawn wave time. That 10 seconds is then modified by the map state, generally reduced for the team that controls the most capture points. Each team's respawn wave time is then scaled down if the team has less than 8 players in it, to a minimum of 5 seconds if team has 3 or less players in it. When you die, you are assigned to the respawn wave after the next one. So if the respawn wave time is currently 10 seconds for your team, you'll respawn somewhere between 10 and 20 seconds from your death.

What you set in the map is the wave time, not the spawn time.
 

Sgt Frag

L14: Epic Member
May 20, 2008
1,443
710
thanks, that explains it a little bit. The stock times seem to be working alright, I haven't had any complaints due to respawn times.

So it seems (from the blog post) that the respawn time Minimum is what you set:

So if the respawn wave time is currently 10 seconds for your team, you'll respawn somewhere between 10 and 20 seconds from your death.

then it is adjusted due to 'Valve logic' in game.

So if it's at 10, you cap a point (that has adjust spawn time set to 1) it should make it 11, which is probably more like 8-21 ish depending on number of players and team you are on. ?.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,670
So if it's at 10, you cap a point (that has adjust spawn time set to 1) it should make it 11, which is probably more like 8-21 ish depending on number of players and team you are on. ?.
Your spawn time would be 12-22 seconds. When you die the current wave could be at most 11 seconds, having just started, or as little as 0, just before spawning. You'll be put into the next wave so your time will be 12 to 22.

The playercount spawn time multiplier drops from 1.0 to 0.5 as players drop from 8 to 3.
 

dogs697

L1: Registered
Aug 23, 2009
8
0
I must have done something wrong here cause when the team with 4 cps controlled has to respawn (even 1 person) has to wait as long as 30+ seconds. And the team with 1cp just respawns after 5-10

Also this might be a stupid question but how do i use boojum's library? I've installed it but so far i can only open the prop library. How do i open the premade game mode part?
 
Last edited:

RavenStryker

Former Alias: †Blade†/Xi.Cynx
aa
Nov 25, 2008
782
845
both the prop library and the gametype library should be in this location:

On 64bit systems
C:\Program Files (x86)\Steam\SteamApps\[your-steam-id]\sourcesdk_content\tf\mapsrc

On 32bit systems
C:\Program Files\Steam\SteamApps[your-steam-id]\sourcesdk_content\tf\mapsrc


If you have the latest versions they should be named the following:

ABS_GametypeLibrary_09-09-01
ABS_PropLibrary_09-09-01