Forcing people to respawn in the next spawn?

Discussion in 'Mapping Questions & Discussion' started by Bull, Mar 5, 2015.

  1. Bull

    Bull L4: Comfortable Member

    Messages:
    178
    Positive Ratings:
    140
    Hey guys,

    another question from me today: I'm working on a payload map which has 2 forward spawns for both teams. Now, my question is: how do I force the remaining (possibly AFK-) players to be respawned at their next spawnpoint? Currently I'm trying to use trigger_hurt but won't that add up to the death-counter? I'm also trying to lock the doors of the previous spawns after the next one gets unlocked, which works fine now. However, without the trigger_hurt, it'd trap people inside.

    Does anyone know how Valve handles forward spawns?
     
  2. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,472
    Positive Ratings:
    237
    Use a teleport :)
     
    • Thanks Thanks x 1
  3. Bull

    Bull L4: Comfortable Member

    Messages:
    178
    Positive Ratings:
    140
    Alright I'm solving this the other way; once a forward spawn gets locked, the door is one-way, meaning that the ones inside are still allowed to leave. I hope it'll work.
     
  4. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,472
    Positive Ratings:
    237
    that works too :)
     
    • Thanks Thanks x 1
  5. Bull

    Bull L4: Comfortable Member

    Messages:
    178
    Positive Ratings:
    140
    Thanks for the advice anyhow :)
     
  6. DonutVikingChap

    DonutVikingChap L5: Dapper Member

    Messages:
    228
    Positive Ratings:
    142
    This works, but it's very exploitable since people can stay in there on purpose and wait until the attackers have passed and then ambush them when nobody cares about that spawn anymore. I recommend the teleportation method. :)
     
  7. Bull

    Bull L4: Comfortable Member

    Messages:
    178
    Positive Ratings:
    140
    I'm now going to playtest this version a lot with people; I think you're right, if you are, I'll use your method! Cheers
     
  8. EArkham

    aa EArkham Necromancer

    Messages:
    1,576
    Positive Ratings:
    2,199
    Barnblitz does it like this:

    • Create a game_forcerespawn entity. Name it "force_respawn_red" or "force_respawn_blu" or whatever.
    • Turn on the second spawn, enable all its doors, do all that good stuff
    • Disable the first spawn, disable all the doors, all that good stuff, do this like 0.10 seconds after enabling the second spawn in the logic
    • Enable a trigger_hurt that covers the first spawn, do this around 0.15 or 0.20 seconds
    • Trigger the game_forcerespawn entity with a parameter of 1 for blue and 2 for red at a delay of around 0.25 (make sure it's AFTER you've turned on the trigger_hurt).
    • Players should "instantly" respawn at your second spawn if they're still inside the first spawn when it goes off
     
    • Thanks Thanks x 3
  9. Bull

    Bull L4: Comfortable Member

    Messages:
    178
    Positive Ratings:
    140
    Now that's what I needed! Thanks man! :thumbup:
     
  10. Kill_the_Bug

    Kill_the_Bug L14: Epic Member

    Messages:
    1,472
    Positive Ratings:
    237
    Being someone who likes to ambush them...you're making me unhappy:mad:
     
  11. Toomai

    Toomai L3: Member

    Messages:
    129
    Positive Ratings:
    77
    I feel like chiming in and saying that, as a player, I can't stand the Barnblitz solution. It feels like far too often I'm all but out the door just as the point caps and bam I'm sent elsewhere. For Steel it's kind of unavoidable, but I still think it's a band-aid solution.
    This is in fact what Upward does, and I much prefer it because of an oft-overlooked detail - as BLU pushes the cart from 2 to 3, they can look up into the now-disabled spawn room to see if there are any lurkers there and plan accordingly. And the lurkers can't hang around forever because they get killed if 3 is capped and the spawn room changes team.
     
  12. Bull

    Bull L4: Comfortable Member

    Messages:
    178
    Positive Ratings:
    140
    I'll be trying out Barn's method first; If I feel it's indeed not fun, I'll change it up!
     
  13. Bull

    Bull L4: Comfortable Member

    Messages:
    178
    Positive Ratings:
    140
    Alright, so people did not seem to like the kill-respawn method. I tried a trigger_teleport aimed to the next teamspawns but that didn't work. I might try an info_destination or whatever it's called, but I'm afraid I'd get 12 people spawning inside eachother then. Any suggestions?
     
  14. henke37

    aa henke37

    Messages:
    1,912
    Positive Ratings:
    446
    Use more than one info_destination.
     
  15. Lampenpam

    aa Lampenpam

    Messages:
    1,019
    Positive Ratings:
    337
    That's not too much of a problem since you can't get stuck in team mates. I doubt people will bother it
     
    Last edited: Mar 27, 2015
  16. Bull

    Bull L4: Comfortable Member

    Messages:
    178
    Positive Ratings:
    140
    Fair enough, I'll give it a shot
     
  17. DonutVikingChap

    DonutVikingChap L5: Dapper Member

    Messages:
    228
    Positive Ratings:
    142
    Doesn't this add a death to their stats?