editing respawn times

Discussion in 'Mapping Questions & Discussion' started by nesman, Dec 28, 2016.

  1. nesman

    aa nesman oh god how did this get here

    Messages:
    208
    Positive Ratings:
    56
    Greetings.

    I cannot seem to find any good explanations to editing respawn waves and respawn times.

    How do I go about doing this?

    Do I need any special entities?
     
  2. theatreTECHIE

    aa theatreTECHIE Yet another Techie for the net...

    Messages:
    393
    Positive Ratings:
    408
    The way to change respawn wave times is to send an input to the tf_gamerules entity. The input needs to be either SetRedTeamRespawnWaveTime <float> or SetBlueTeamRespawnWaveTime <float>. This number will then be the time between each wave.
    When a player dies, they must wait the time of the deathcam, then wait out until the end of the next full wave. For example, if the respawn wave time is 10 seconds, a player who just died will wait out the deathcam time which is a few seconds, then wait between 10 and 20 seconds depending on how far through the current wave is.
     
    • Thanks Thanks x 1
    • Agree Agree x 1
  3. nesman

    aa nesman oh god how did this get here

    Messages:
    208
    Positive Ratings:
    56
    ok great, however if I'm correct you cant just add a input to and entity. So what would I create to send the input?
     
  4. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,191
    Are you looking for the entity that sends the output? If so, that's the point of I/O - it depends on when you want to be chaging the times. logic_auto can track some world states, like map load, though any of them besides map load itself are HL2-related and even there extremely specific. You probably do not have a point in your TF2 map where antlions become player allies.
     
  5. nesman

    aa nesman oh god how did this get here

    Messages:
    208
    Positive Ratings:
    56
    I just wanted to reduce the times so people weren't ending up with 21+ second respawn times. Is that helping to explain what I wanted to do?

    I understand the difference between waves etc.
     
  6. Crowbar

    aa Crowbar perfektoberfest

    Messages:
    1,440
    Positive Ratings:
    1,191
    I'm not entirely sure what's your problem with that. Are you struggling to set up inputs themselves? theatreTechie explained that well enough. I see that you want to know how to "send an output". In an entity that can send them (most of them), go to the Outputs tab, and add one. The entity and the output event depends on when you want the output to happen. More of how it works on the article. logic_auto sends its outputs on map load, as stated on the article I linked.
     
  7. nesman

    aa nesman oh god how did this get here

    Messages:
    208
    Positive Ratings:
    56
    ok I found out how. What I needed was the team_round_timer entity and set an output OnRoundStart then setredwaverespawntime.
     
  8. theatreTECHIE

    aa theatreTECHIE Yet another Techie for the net...

    Messages:
    393
    Positive Ratings:
    408
    Most people actually use the logic_auto entity to set the respawn wave time at the start of a round. The output that is sent is OnMultiNewRound.
     
    • Agree Agree x 1