Results 1 to 6 of 6
  1. #1
    TechnoX's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Logitech G510.
    Posts
    154
    Reputation
    11
    Thanks
    3
    My Mood
    Yeehaw

    Post Custom spawn locations

    Help me, need custom spawn locations. Thanks
    I have big mess.

  2. #2
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    153
    My Mood
    Amazed
    The Easiest way is this, you can add more and also put for different maps.

    Code:
    Spawnpoints()
    {
         switch(randomInt(2))
         {
               case 0:
               self setOrigin(blablabla);
               break;
               case 1:
               self setOrigin(blablabla);
               break;
          }
    }

  3. #3
    TechnoX's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Logitech G510.
    Posts
    154
    Reputation
    11
    Thanks
    3
    My Mood
    Yeehaw
    Thanks you. Hmm but i want to use it for S&D so i need spawn locations for axis and allies.
    Last edited by TechnoX; 06-11-2011 at 03:22 AM.
    I have big mess.

  4. #4
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    153
    My Mood
    Amazed
    Quote Originally Posted by TechnoX View Post
    Thanks you. Hmm but i want to use it for S&D so i need spawn locations for axis and allies.
    Code:
    if ( self.pers["team"] == "allies" ) 
    {
                  switch(randomInt(2))
                  {
                  case 0:
                  self setOrigin(blablabla);
                  break;
                  case 1:
                  self setOrigin(blablabla);
                  break;
                  }
    }
    ???

  5. The Following User Says Thank You to Yamato For This Useful Post:

    TechnoX (06-11-2011)

  6. #5
    TechnoX's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Location
    Logitech G510.
    Posts
    154
    Reputation
    11
    Thanks
    3
    My Mood
    Yeehaw
    Ye like that, thanks.
    I have big mess.

  7. #6
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,851
    Reputation
    3350
    Thanks
    79,155
    My Mood
    Breezy
    Or you can utilise arrays :3
    Code:
    self.spawnLocation["allies"] = [];
    self.spawnLocation["allies"][0] = (123, 456, 789);
    self.spawnLocation["allies"][1] = (123, 456, 789);
    self.spawnLocation["allies"][2] = (123, 456, 789);
    self.spawnLocation["allies"][3] = (123, 456, 789);
    self.spawnLocation["axis"] = [];
    self.spawnLocation["axis"][0] = (123, 456, 789);
    self.spawnLocation["axis"][1] = (123, 456, 789);
    self.spawnLocation["axis"][2] = (123, 456, 789);
    self.spawnLocation["axis"][3] = (123, 456, 789);
    
    self setOrigin(self.spawnLocation[self.pers["team"]][randomInt(self.spawnLocation[self.pers["team"]].size)]);
    All you need to do is add more spawn locations to the array, the setOrigin code will 'update' automatically.

    /marked as solved
    Last edited by master131; 06-11-2011 at 05:28 PM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.1 *NEW*
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]