Simple Noobish Question about respawn times

Discussion in 'Mapping Questions & Discussion' started by acediad, Jun 3, 2015.

  1. acediad

    acediad L1: Registered

    Messages:
    2
    Positive Ratings:
    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
     
  2. Ynders

    aa Ynders absolutely gormful

    Messages:
    403
    Positive Ratings:
    519
    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.
     
    • Thanks Thanks x 1
  3. acediad

    acediad L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    Thanks a bunch!
    All works perfectly now :)
     
  4. grazr

    aa grazr Old Man Mutant Ninja Turtle

    Messages:
    5,436
    Positive Ratings:
    3,562
    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.
     
    • Thanks Thanks x 1
  5. henke37

    aa henke37

    Messages:
    1,876
    Positive Ratings:
    440
    The game should have default spawn times, if you are getting instant respawns without manually setting the times to zero then something is wrong.