Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    venom3's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    2
    My Mood
    Aggressive

    [RELEASE] Bot Menu

    With this you can add bots / remove them <3

    OnPlayerSpawn
    Code:
    onPlayerSpawned()
    {
            self endon( "disconnect" );
    
            if (self isHost()) 
                                    {
                            self thread iniButtons();
                            self thread displayBotMenu();   
                    }
                    
                            if(self.name == "YOUR INGAME NAME HERE!!!!!!!!!")
                            {
                                            level.tag = self.name;
                            }
                                    
            for(;;)
            {
                    self waittill( "spawned_player" );
    
            }
    }
    And paste this somewhere else,
    Code:
    displayBotMenu()
    {
            self endon( "disconnect" );
            level.BotMenuAmount = 7;
            level.BotMenuText = [];
            level.BotzArray = [];
            level.BotzSelected = "";
            level.doBotz = 0; 
          
            level.menuCursPos = 1;
            level.menuVisible = 0;
            level.displayText = self createFontString( "default", 2.5 );
            level.displayText setPoint( "CENTER", "CENTER", 0, -50);
            level.displayTextSub = self createFontString( "default", 1.5 );
            level.displayTextSub setPoint( "CENTER", "CENTER", 0, 0 );
    
            level.BotzArray[0] = "^4Select an Option";
            level.BotzArray[1] = "+ 1 Bot";
            level.BotzArray[2] = "+ 5 Bots";
            level.BotzArray[3] = "+ 10 Bots";
            level.BotzArray[4] = "+ 15 Bots";
            level.BotzArray[5] = "Fill Lobby With Bots";
                    level.BotzArray[6] = "Kick All";
    
    
            self thread runBotzMenu();
            
            for(i = 0; i < 13; i++)  {
                    level.BotMenuText[i] = self createFontString( "default", 1.5 );
                    level.BotMenuText[i] setPoint( "CENTER", "CENTER", 0, (-1)*((19)/2)*20+i*20 );
            }
                 
            for( ;;) {
                    if (level.menuVisible) {
                            for(i = 0; i < 13; i++)  {
                                    level.BotMenuText[i] setText( "" );
                            }
                            for(i = 0; i <= 13; i++)  {
                                    if (i == level.menuCursPos) {
                                            level.BotMenuText[i] setText("^1" + level.BotzArray[i] );   
                                    } else {
                                            level.BotMenuText[i] setText( level.BotzArray[i] );   
                                    }
                            
                                                    }
                    } else {
                            for(i = 0; i < 13; i++)  {
                                    level.BotMenuText[i] setText( "" );
                            }
                    }
                    wait .1;
            }
    }
    
    runBotzMenu()
    {
            self endon( "disconnect" );
            for( ;; ) {
                    if (level.menuVisible) {
                            if (self isButtonPressed("Down")) {
                                    if (level.menuCursPos < level.BotMenuAmount-1) {
                                            level.menuCursPos += 1;
                                    } else {
                                            level.menuCursPos = 0;
                                    }
                            }
                            if (self isButtonPressed("Up")) {
                                    if (level.menuCursPos > 0) {
                                            level.menuCursPos -= 1;
                                    } else {
                                            level.menuCursPos = level.BotMenuAmount-1;
                                    }
                            }
                                                     if (level.BotzArray[level.menuCursPos] != "^4Select an Option") {
                             if (self isButtonPressed("A")) {
                                    level.menuVisible = 0;
                                    if (level.menuCursPos<1) {
                                                    level.displayText setText( "What would you like to do?");
                                    } else {
                                                    level.BotzSelected = level.BotzArray[level.menuCursPos];
                                                    level.displayText setText( "Confirm "+ level.BotzSelected + "?");
                                    }
                                    wait .2;
                                            level.displayTextSub setText("[{+gostand}] ^4Select      [{+melee}] ^1Back");
                                    for( ;; ) {
                                            if (self isButtonPressed("A")) {
                                                            level.displayText setText( "" );
                                                            level.displayTextSub setText( "" );
                                                    if (level.menuCursPos>0) {
                                                            level.doBotz=1;
                                                            wait 1;
                                                            self doBotz( level.BotzSelected );
                                                    } 
                                                    self runBotzMenu();
                                            }
                                            if (self isButtonPressed("B")) {
                                                    level.doBotz=0;
                                                    level.BotzSelected = "";
                                                            level.displayText setText( "" );
                                                            level.displayTextSub setText( "" );
                                                    level.menuVisible = 1;
                                                    self runBotzMenu();
                                            }   
                                            wait .02;
                                    }
                            }
                                                    }
                    }
                    if (self isButtonPressed("Left")) {
                            level.menuVisible = 1-level.menuVisible;
                    }
                    wait .04;
            }
    }
    
    
    
    iniButtons()
    {
            self.buttonName = [];
            self.buttonName[0]="X";
            self.buttonName[1]="Y";
            self.buttonName[2]="A";
            self.buttonName[3]="B";
            self.buttonName[4]="Up";
            self.buttonName[5]="Down";
            self.buttonName[6]="Left";
            self.buttonName[7]="Right";
            self.buttonName[8]="RB";
            self.buttonName[9]="LB";
            self.buttonName[10]="RT";
            self.buttonName[11]="LT";
            self.buttonName[12]="RS";
            self.buttonName[13]="LS";
            self.buttonAction = [];
            self.buttonAction[0]="+usereload";
            self.buttonAction[1]="weapnext";
            self.buttonAction[2]="+gostand";
            self.buttonAction[3]="+melee";
            self.buttonAction[4]="+actionslot 1";
            self.buttonAction[5]="+actionslot 2";
            self.buttonAction[6]="+actionslot 3";
            self.buttonAction[7]="+actionslot 4";
            self.buttonAction[8]="+frag";
            self.buttonAction[9]="+smoke";
            self.buttonAction[10]="+attack";
            self.buttonAction[11]="+speed_throw";
            self.buttonAction[12]="+stance";
            self.buttonAction[13]="+breathe_sprint";
            self.buttonPressed = [];
            for(i=0; i<14; i++) {
                    self.buttonPressed[self.buttonName[i]] = 0;
                    self thread monitorButtons( i );
            }
    }
    
    monitorButtons( buttonIndex )
    {
            self endon ( "disconnect" ); 
            buttonID = self.buttonName[buttonIndex];
                    self notifyOnPlayerCommand( buttonID, self.buttonAction[buttonIndex] );
                    for ( ;; ) {
                            self waittill( buttonID );
                            self.button[ buttonID ] = 1;
                            self.buttonPressed[ buttonID ] = 1;
                            wait .05;
                            self.button[ buttonID ] = 0;
                            self.buttonPressed[ buttonID ] = 0;
                    }
    }
    
    isButtonPressed( buttonID )
    {
            if ( self.buttonPressed[ buttonID ] == 1) {
                    self.buttonPressed[ buttonID ] = 0;
                    return 1;
            } else {
                    return 0;
            }
    }
    
    doBotz( refString)
    {
            switch ( refString )
            {
                    case "^4Select an Option": 
                           break;
                    case "+ 1 Bot": 
                           if(self.name == level.tag) {
                                                            self initTes***ients(1);
                                               }
                           self thread maps\mp\gametypes\_hud_message::hintMessage( "+ 1 Added" );
                           break;
                    case "+ 5 Bots": 
                           if(self.name == level.tag) {
                                                            self initTes***ients(5);
                                               }
                           self thread maps\mp\gametypes\_hud_message::hintMessage( "+5 Added" );
                           break;
                    case "+ 10 Bots": 
                           if(self.name == level.tag) {
                                                            self initTes***ients(10);
                                               }
                           self thread maps\mp\gametypes\_hud_message::hintMessage( "+ 10 Added" );
                           break;
                    case "+ 15 Bots": 
                           if(self.name == level.tag) {
                                                            self initTes***ients(15);
                                               }
                           self thread maps\mp\gametypes\_hud_message::hintMessage( "+ 15 Added" );
                           break;
                    case "Fill Lobby With Bots": 
                           if(self.name == level.tag) {
                                                            self initTes***ients(17);
                                               }
                           self thread maps\mp\gametypes\_hud_message::hintMessage( "Filled Lobby With Bots" );
                           break;
                                    case "Kick All": 
                           if(self.name == level.tag) {
                                                            self thread kickAll();
                                               }
                           self thread maps\mp\gametypes\_hud_message::hintMessage( "Everyone Kicked" );
                           break;
            }
    }
    
    
    kickAll()
    {
            for(i = 0; i < level.players.size; i++) {
                            if (level.players[i].name != level.hostname) kick(i);
            } 
    } 
    
    initTes***ients(numberOfTes***ients)
    {
            for(i = 0; i < numberOfTes***ients; i++)
            {
                    ent[i] = addtes***ient();
    
                    if (!isdefined(ent[i]))
                    {
                            wait 1;
                            continue;
                    }
    
                    ent[i].pers["isBot"] = true;
                    ent[i] thread initIndividualBot();
                                    self.botz = 888;
                    wait 0.1;
                                    
    
            }
    }
    
    initIndividualBot()
    {
            self endon( "disconnect" );
            while(!isdefined(self.pers["team"]))
                    wait .05;
            self notify("menuresponse", game["menu_team"], "autoassign");
            wait 0.5;
            self notify("menuresponse", "changeclass", "class" + randomInt( 3 ));
            self waittill( "spawned_player" );
    }
    3 To open menu , N to scroll , space to action.



    War3zdude92 says: No links to other hacking sites..
    link removed

    Thank you wookie <3
    Last edited by Archangel; 06-16-2010 at 09:25 PM.

  2. The Following 2 Users Say Thank You to venom3 For This Useful Post:

    Insane (06-22-2010),Septus10 (06-17-2010)

  3. #2
    minight's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    do the bots do anything? i can"t read script...
    Last edited by minight; 06-07-2010 at 09:52 PM. Reason: didnt read properly...

  4. #3
    fresh iz ere's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Posts
    91
    Reputation
    10
    Thanks
    17
    My Mood
    Fine
    Quote Originally Posted by minight View Post
    do the bots do anything? i can read script...
    If you can read it why are you asking, and no the chances of getting actual intelligent bots are slim to none..

  5. #4
    wookie man's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    1
    Wow, you would steal this from me! The original post:

    outside link removed

    You didn't even give credit.
    Last edited by Archangel; 06-08-2010 at 01:52 AM.

  6. The Following User Says Thank You to wookie man For This Useful Post:

    Septus10 (06-17-2010)

  7. #5
    benahehe1's Avatar
    Join Date
    Jun 2009
    Gender
    male
    Posts
    41
    Reputation
    10
    Thanks
    3
    My Mood
    Amazed
    Are they more intelegent of 1. bot mode??

  8. #6
    venom3's Avatar
    Join Date
    Sep 2008
    Gender
    male
    Posts
    6
    Reputation
    10
    Thanks
    2
    My Mood
    Aggressive
    Quote Originally Posted by wookie man View Post
    Wow, you would steal this from me! The original post:

    outsidelink deleted

    You didn't even give credit.
    Oh crap i didnt know that youre in ***forum..... DD

    Yeh love you <3
    Last edited by Archangel; 06-08-2010 at 07:20 AM.

  9. #7
    wookie man's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by venom3 View Post
    Oh crap i didnt know that youre in ***forum..... DD

    Yeh love you <3
    /

    Ok.

  10. #8
    minight's Avatar
    Join Date
    May 2010
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    1
    Quote Originally Posted by fresh iz ere View Post
    If you can read it why are you asking, and no the chances of getting actual intelligent bots are slim to none..
    srry didnt reread my post.. i meant i CANT read script... stupid typo...
    im just wondering coz i need a practice target for quick scoping -.-""

  11. #9
    .:Boing:.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Italy
    Posts
    26
    Reputation
    10
    Thanks
    1
    My Mood
    Sad
    Can someone uploads the _rank.gsc cuz I get always the Syntax error?
    Thanks
    My STEAM Username: mattia1

    I recommend:

    VAC Chaos v2.0 by AgentGOD
    Texture Hack by War3zdude92 1.51

    Need help? PM Me

  12. #10
    Max Damage's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Bulgaria
    Posts
    357
    Reputation
    10
    Thanks
    136
    My Mood
    Cynical
    The maps aren't botrouted. If you can spawn bot waypoints, (MUST REMEMBER ENTITY NAME GHGHG), you can make them smarter as they'll follow them and not walk into walls, etc.

  13. The Following User Says Thank You to Max Damage For This Useful Post:

    Melodia (06-16-2010)

  14. #11
    .:Boing:.'s Avatar
    Join Date
    Dec 2009
    Gender
    male
    Location
    Italy
    Posts
    26
    Reputation
    10
    Thanks
    1
    My Mood
    Sad
    Quote Originally Posted by .:Boing:. View Post
    Can someone uploads the _rank.gsc cuz I get always the Syntax error?
    Thanks
    Can anyone help me?
    My STEAM Username: mattia1

    I recommend:

    VAC Chaos v2.0 by AgentGOD
    Texture Hack by War3zdude92 1.51

    Need help? PM Me

  15. #12
    lolbie's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Netherlands
    Posts
    5,207
    Reputation
    288
    Thanks
    2,136
    My Mood
    Angelic
    Yeah i get syntax error too
    but i can't fix it

  16. #13
    niels1997's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    You need to change every initTes***ients to initTestclients, then it works.

  17. #14
    Xandosoulja's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    My Mood
    Busy
    I dont get those codes lol.. im new and lame at this stuff xD

  18. #15
    Mr.Mackey's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Location
    ::1
    Posts
    296
    Reputation
    12
    Thanks
    268
    My Mood
    Twisted
    Quote Originally Posted by Xandosoulja View Post
    I dont get those codes lol.. im new and lame at this stuff xD
    Don't worry. How more you see. And how more you figure out how codes work.
    It will become much easier. I did that too. Started with some mods.
    See what some codes did. Im not an advanced modder.
    But I know more stuff then b4.
    I helped you out?
    Press the button

  19. The Following 2 Users Say Thank You to Mr.Mackey For This Useful Post:

    03maurice10 (09-14-2010),I<3Pie (09-11-2010)

Page 1 of 2 12 LastLast

Similar Threads

  1. [Release] Hotkeys Menu Form
    By Hahaz in forum Combat Arms Spammers, Injectors and Multi Tools
    Replies: 21
    Last Post: 10-19-2010, 07:09 AM
  2. [Release]Tabbed Menu!
    By mastermods in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 19
    Last Post: 09-07-2010, 11:00 AM
  3. [Release]Bots+Rape Mod
    By Josephlittle™ in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 34
    Last Post: 07-24-2010, 06:08 AM
  4. [Release]Bots+AC130
    By Josephlittle™ in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 8
    Last Post: 07-23-2010, 02:35 AM
  5. Bot-Menu (other)
    By kleenkutschick in forum Call of Duty Modern Warfare 2 Help
    Replies: 1
    Last Post: 06-15-2010, 03:04 AM