1. Hey there Guest,

    The game servers have moved to semi-dedicated hardware and IPs have changed. Please see front page server widget for up-to-date game server information.

Editing spawntimes.

Discussion in 'Mapping Questions & Discussion' started by dogs697, Sep 17, 2009.

  1. dogs697

    dogs697 L1: Registered

    Messages:
    8
    Positive Ratings:
    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
     
  2. Xi.Cynx

    aa Xi.Cynx Former Alias: †Blade†

    Messages:
    775
    Positive Ratings:
    771
    This is the entity your going to need:

    tf_gamerules

    Click on it for more information on what each option does within it. ;)
     
  3. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    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.
     
  4. Sgt Frag

    Sgt Frag L14: Epic Member

    Messages:
    1,443
    Positive Ratings:
    356
    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.
     
  5. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    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.

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

    Sgt Frag L14: Epic Member

    Messages:
    1,443
    Positive Ratings:
    356
    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. ?.
     
  7. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    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.
     
    • Thanks Thanks x 2
  8. Sgt Frag

    Sgt Frag L14: Epic Member

    Messages:
    1,443
    Positive Ratings:
    356
    Oh OK.

    So it makes you wait until last wave is finished (up to 10 seconds on a 10 sec wave or as little as 0 [last wave JUST finished]), then it adds the respawn wave time (10 seconds).

    Alot easier to undrstand for me now. I couldn't figure why I was getting random 11-20 second times.

    Thanks (again) Boojum.
     
  9. dogs697

    dogs697 L1: Registered

    Messages:
    8
    Positive Ratings:
    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: Sep 18, 2009
  10. Xi.Cynx

    aa Xi.Cynx Former Alias: †Blade†

    Messages:
    775
    Positive Ratings:
    771
    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
     
  11. dogs697

    dogs697 L1: Registered

    Messages:
    8
    Positive Ratings:
    0
    I restarted sdk and then there it was. Thx anyway :D