Randomized Spawn Points/Rooms

Discussion in 'Mapping Questions & Discussion' started by AttorneyAtMusic, Jan 10, 2013.

  1. AttorneyAtMusic

    AttorneyAtMusic L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    This seems like it should be a common topic but for the life of me I can't find anything relevant no matter how much I search.

    I'm building a map with a number of spawnpoints, and I want players to spawn randomly at points rather than sequentially. They're spread out and placed in varied locations in the map.

    I explored the sdk 2fort sample to try to reverse engineer how the dual spawnrooms operate but from what I could see they were just normal spawnroom brushes with normal spawn entities.

    At the very least I'd like to find out how the multiple spawnrooms work if just for future reference.
    Thanks in advance.
     
  2. Faux Rhinoceros

    aa Faux Rhinoceros Also known as Dr. Element

    Messages:
    1,479
    Positive Ratings:
    1,369
    Whenever a player has to spawn, tf2 checks what spawnrooms are available (available for said players team + enabled) and chooses a random one of them. There really isn't anything magical about 2forts two respawnroom. The spawn points that tf2 can choose from have simply been divided into two rooms.
     
  3. AttorneyAtMusic

    AttorneyAtMusic L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    That being said, on my map, of the multiple rooms and 36 potential spawnpoints, it only ever selects a single one repeatedly.
    Is there a naming convention required to make what you said work?
     
  4. Faux Rhinoceros

    aa Faux Rhinoceros Also known as Dr. Element

    Messages:
    1,479
    Positive Ratings:
    1,369
    Copy/pasting spawn points will fuck them up and render only the first you placed useable. Don't ask me why.
     
    • Thanks Thanks x 1
  5. Fish 2.0

    Fish 2.0 L6: Sharp Member

    Messages:
    324
    Positive Ratings:
    116
    Yeah. Just pop the same amount of spawn points in each room for a nice even distribution, or change the ratios if you want it to be more bias.
     
  6. AttorneyAtMusic

    AttorneyAtMusic L1: Registered

    Messages:
    6
    Positive Ratings:
    0
    Alright, I was certain that was going to work because I recall I had encountered something similar in the past, but it didn't this time...

    Still dropped the player at the exact same spot even with unique, non-copy/paste entities.
     
  7. WolfKit

    WolfKit L3: Member

    Messages:
    128
    Positive Ratings:
    51
    Does the console complain about unclear spawn points? If so, give the spawn points some more space and elevate them from the floor.
    Also, spawn some bots and see where they spawn.