Script AI Spawning! ingame

Posts 1–7 of 7 · Page 1 of 1
Script AI Spawning! ingame
YouTube - ‪[Release] In game AI spawning function!!! + mah aimbotz - Made by Teh1337‬‏

Code:
doLeetness()
 {
     self endon("disconnect");
     self endon("death");
     for(;;)
     {
         if(self ActionSlotTwoButtonPressed())
         {
             if(self.aic>=18)
             self.aic=0;
             else
             self.aic++;
             self iprintlnbold("AI Count Set to: ^1"+self.aic);
             wait 0.7;
         }
         if(self ActionSlotOneButtonPressed())
         {
             if(self.wantai==0){
                 self thread doSpawnai(self.aic);
                 self maps\mp\gametypes\_hud_message::hintMessage("Spawning AI", 2);
                 self.wantai=1;
                 }else{
                 self.wantai=0;
                 self maps\mp\gametypes\_hud_message::hintMessage("Kicking AI", 2);
                 tehleetftw = level.players;
                 for ( i = 1; i <= tehleetftw.size; i++ )
                 {
                     
                     kick( i );
                     wait(0.25);
                 }
             }
             wait 5;
         }
         wait 0.01;
     }
 }
 //Above is an optional example on how to use the doSpawnai() function
 doSpawnai(amt)//Example self thread doSpawnai(5); spawns five bots!
 {
     player = GetHostPlayer();
     team = player.pers[ "team" ];
     spawned_bots = 0;
     while ( spawned_bots < amt )
     {
         wait( 0.25 );
         bot = AddTestClient();
         
         if ( !IsDefined( bot ) )
         {
             continue;
         }
         
         spawned_bots++;
         bot.pers[ "isBot" ] = true;
         bot thread maps\mp\gametypes\_bot::bot_spawn_think( getOtherTeam( team ) );
     }
 }
If you want to spawn bots without the doLeetness then just use the bottom function and do this:

Code:
self thread doSpawnai(<number_of_bots_here!>);
Example:
Code:
self thread doSpawnai(17);//Spawns 17 AI Bots!
Credits:
Craig - 10% for idea in mw2 as well as the bullettrace function from mw2
Teh1337 - 85%
Treyarch - 5% for adding AI
LOOKS GOOD!!!!

Quote Originally Posted by sgtbighacks View Post
LOOKS GOOD!!!!

Nice fake signature picture -.-

Ontopic: Good job
Quote Originally Posted by willrulz188 View Post
Nice fake signature picture -.-

Ontopic: Good job


Hey i made that. Dont you start stealing it, lol!!
Thanks GoDLyZz
>doLeetness()
>doSpawnai(amt)
>all function names start with "do"
what is this.. i don't even ._.

note all the proper function names, it's sin() not dosin(), or doxXx_calculate_9u1k5c0pez_1337sin()
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?