Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default [RELEASE-UNTESTED] Spawn in a circle

    Code:
    self thread script( 100, 0 );
    
    script( radius, circumfrence )
    {
            self.multiplier = 2;
            self.Pi = 3.14;
    	self.center = ( 0, 0, 0)
            circumfrence = radius;
            circumfrence *= 2;
            circumfrence *= 3;
            circumfrence /= level.players.size;
    	
    	for(i = 0; 0 < level.players.size; i++ )
    	{
    		level.players[i] setOrgin( self.center + ( 0, radius, circumfrence * i  ) );
    	}
    }

    0 Not allowed! Not allowed!

  2. #2
    Member lonewolf369's Avatar
    Join Date
    Aug 2012
    Location
    Hyrule
    Posts
    123
    Points
    -9,815
         User Info     Contact     Gamer ID
    Join Date
    Aug 2012
    Location
    Hyrule
    Posts
    123
    Points
    -9,815

    Contact info:

    Youtube Channel: http://www.youtube.com/user/Gam3rcrazy69?feature=mhee

    Default

    And this is for?

    0 Not allowed! Not allowed!
    "Fear not the darkness - but welcome its embrace."
    ―Ezio Auditore da Firenze.

  3. #3
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Quote Originally Posted by lonewolf369 View Post
    And this is for?
    A gametype.

    0 Not allowed! Not allowed!

  4. #4
    Nooblet
    Join Date
    Sep 2012
    Posts
    3
    Points
    4
         User Info     Contact     Gamer ID
    Join Date
    Sep 2012
    Posts
    3
    Points
    4
    Gamer IDs

    Steam ID: Qare_Guard

    Default

    is it for Resistance retribution

    0 Not allowed! Not allowed!

  5. #5
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Quote Originally Posted by zWhiteLight View Post
    is it for Resistance retribution
    Wtf? It's for black ops.

    0 Not allowed! Not allowed!

  6. #6
    Mid Laner
    #SKATE EVERY DAMN DAY
    FrozenFire's Avatar

    Badge

    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,545
    Points
    3,442
         User Info     Contact     Gamer ID
    Join Date
    Mar 2012
    Location
    NYC
    Posts
    2,545
    Points
    3,442
    Gamer IDs

    Steam ID: froz3nfir398

    Contact info:

    Youtube Channel: http://www.youtube.com/user/FROZ3NFIR3ZCHANNEL?feature=mhee

    Default

    So I can add this to the ''onPlayerSpawned" script right?And everyone would spawn in a circle?
    Nice share.

    0 Not allowed! Not allowed!
    The Visionary





  7. #7
    Evolved Modder
    Living Liek Larry
    tony's Avatar
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Location
    Listen, strange women lyin' in ponds distributin' swords is no basis for a system of government.
    Posts
    6,302
    Points
    10,689
    Gamer IDs

    PSN ID: L33T_T0ny Steam ID: ToNy Wii Code: L33T_T0ny

    Default

    interesting

    i see other uses for this too

    0 Not allowed! Not allowed!

  8. #8
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Wont work. Look at your setOrigin. The only parameter that changes is the z variable.

    0 Not allowed! Not allowed!

  9. #9
    Banned
    Join Date
    May 2011
    Posts
    917
    Points
    1,182
         User Info     Contact     Gamer ID
    Join Date
    May 2011
    Posts
    917
    Points
    1,182

    Default

    Quote Originally Posted by Kazzababe View Post
    Wont work. Look at your setOrigin. The only parameter that changes is the z variable.
    Z variable? If it won't work can you show me an example of what I should change the setOrgin?

    0 Not allowed! Not allowed!

  10. #10
    Formally known as Tlpwnzer KazzababeGamer's Avatar
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427
         User Info     Contact     Gamer ID
    Join Date
    Jun 2011
    Posts
    2,947
    Points
    5,427

    Default

    Origin = ( x, y, z )
    You need to change the x and the z. Y stands for height and therefore does not need to be changed.

    0 Not allowed! Not allowed!

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -10. The time now is 07:39 AM.
Powered by vBulletin®
Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.