Random-ish Spawn Locations

Discussion in 'Mapping Questions & Discussion' started by Kataan, Feb 11, 2010.

  1. Kataan

    Kataan L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    Hello

    Thanks in advance for any help.

    What I am trying to do, is have multiple spawn locations scattered around my map where either blue or red team players can spawn. At the moment the players spawn at only one of the locations, and if blue and red players spawn at the same time they become stuck (the spawn location is set just above the ground).

    Is there a way I can allow the players (either blue or red) to spawn randomly at the various spawn locations I have created?

    (I've probably made a rookie mistake somewhere)

    Cheers Kataan
     
  2. Kazagin

    Kazagin L3: Member

    Messages:
    130
    Positive Ratings:
    9
    How far apart are your
    "info_player_teamspawn" entities?
    If they are too close, they won't work.
     
  3. absurdistof

    aa absurdistof

    Messages:
    1,242
    Positive Ratings:
    393
    I would make sure that each place they spawn would not only make sense for the flow of the game, but also for the player. Dropping someone in on top of a crate in an alleyway next to the combat will be very confusing for the player. Keep the separate teamspawns away from each other safely in team-specific rooms, the spawns themselves could be a few units up (like 4) just to be safe.

    If you are looking to spawn people based on CPs or where a payload cart is, you need to have outputs sent from the capture points to activate or disable spawnrooms, so you can control who spawns where when.
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,535
    If I understand you right you just want random spawning across the whole map like a generic DM map? If that's the case just placing info_player_teamspawn set to Any all over the place should work fine.
    If you have done this, then I'd suspect you have a team_control_point_round in the map, which requires you to set the spawns to use. Name all the spawns the same thing and then set both team's spawns in the round entity to that name.
     
  5. Pseudo

    Pseudo L6: Sharp Member

    Messages:
    319
    Positive Ratings:
    149
    I think that is a bug with teamspawns set to "Any".
     
  6. martijntje

    martijntje L8: Fancy Shmancy Member

    Messages:
    539
    Positive Ratings:
    168
    you could just make a lot of spawns
    the thing is you spawn in order of the order the spawns. so the first spawn you make will also be the first place where you start (every match)

    or.... use a entity_spawn_manager and let is spawn spawns at random locations (yet to check if this works)
     
  7. Kataan

    Kataan L1: Registered

    Messages:
    9
    Positive Ratings:
    0
    Thanks everyone for your responses, they are all appreciated!

    @Kazagin: they are far enough apart where this isnt an issue.

    @absurdistof: I understand your concern for the flow of the game, but the positions I have placed the spawn locations should not upset the balance (its hard to explain the map layout, you'll just have to trust me ^_^). It will be probably be ctf or koth, have not fully decided yet. I have made them all active at start up.

    @A Boojum Snark: Thats what I was after, I'll try what you suggested and post the results.

    @martijntje: You are right, I always spawned at the first spawn location.

    Thank you all again for your help and suggestions. ^_^