Results 1 to 13 of 13
  1. #1
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic

    How To : Spawning Bots in IW5M

    Rather simple...
    Just include this code in your project:
    Code:
    
                PlayerConnected += new Action<Entity>(entity =>
                {
                    entity.Call("notifyOnPlayerCommand", "ohnoes", "+actionslot 4");
    
                    entity.OnNotify("ohnoes", player =>
                    {
                        var testClient = Utilities.AddTestClient();
    
                        if (testClient == null)
                        {
                            return;
                        }
    
                        testClient.OnNotify("joined_spectators", tc =>
                        {
                            tc.Notify("menuresponse", "team_marinesopfor", "autoassign");
    
                            tc.AfterDelay(500, meh =>
                            {
                                meh.Notify("menuresponse", "changeclass", "class1");
                            });
                        });
                    });
                });
    
    And to activate you click your key assigned to the forth killstreak slot.

    Or if you have the Infinity Script's source, you can uncomment out that part in the TestScript.cs file.


    Here's that file for you lazy people:

    Code:
    
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    namespace InfinityScript
    {
        public class TestScript : BaseScript
        {
            public TestScript() : base()
            {
                /*OnNotify("weapon_fired", weaponName =>
                {
                    GameInterface.Script_PushString((string)weaponName);
                    GameInterface.Script_Call(362, 0, 1);
                });*/
    
                /*OnNotify("connected", player =>
                {
                    Log.Write(LogLevel.Trace, "connected {0}", player);
                    
                    player.As<Entity>().Notified += (type, paras) =>
                    {
                        Log.Write(LogLevel.Trace, "tyep {0}", type);
                    };
    
                    player.As<Entity>().OnNotify("spawned_player", playerEnt =>
                    {
                        Log.Write(LogLevel.Trace, "spawned {0}", playerEnt);
    
                        Call("iprintlnbold", "0mgSniPeZZ by xXxNTAxXx");
    
                        playerEnt.Call("takeallweapons");
                        playerEnt.Call("giveweapon", "iw5_l96a1_mp_l96a1scope");
                        playerEnt.Call("setperk", "specialty_quickdraw");
    
                        Log.Write(LogLevel.Trace, "endSpawned {0}", playerEnt);
                    });
                });*/
    
                /*PlayerConnected += new Action<Entity>(entity =>
                {
                    Log.Write(LogLevel.Trace, "connected {0}", entity);
    
                    entity.SpawnedPlayer += new Action(() =>
                    {
                        Log.Write(LogLevel.Trace, "spawned {0} {1} {2} {3}", entity, entity.GetField<string>("classname"), entity.GetField<string>("sessionteam"), entity.GetField<Vector3>("origin"));
    
                        entity.TakeAllWeapons();
                        //entity.GiveWeapon("iw5_l96a1_mp_l96a1scope");
                        //entity.SwitchToWeaponImmediate("iw5_l96a1_mp_l96a1scope");
                        //entity.Call("givemaxammo", "iw5_l96a1_mp_l96a1scope");
                        entity.GiveWeapon("iw5_mp7_mp");
                        entity.SwitchToWeaponImmediate("iw5_mp7_mp");
                        entity.Call("givemaxammo", "iw5_mp7_mp");
    
                        entity.Call("iprintlnbold", "0mgMP7 by xXxNTAxXx");
                        entity.Call("setperk", "specialty_quickdraw", true, false);
                        entity.Call("setperk", "specialty_fastreload", true, false);
                    });
    
                    //var elem = HudElem.CreateFontString(entity, "default", 1.2f);
                    //elem.X = 200;
                    //elem.Y = 20;
                    //elem.SetText("stuff. just ^2stuff^7.");
                });*/
    
                PlayerConnected += new Action<Entity>(entity =>
                {
                    entity.Call("notifyOnPlayerCommand", "ohnoes", "+actionslot 4");
    
                    entity.OnNotify("ohnoes", player =>
                    {
                        var testClient = Utilities.AddTestClient();
    
                        if (testClient == null)
                        {
                            return;
                        }
    
                        testClient.OnNotify("joined_spectators", tc =>
                        {
                            tc.Notify("menuresponse", "team_marinesopfor", "autoassign");
    
                            tc.AfterDelay(500, meh =>
                            {
                                meh.Notify("menuresponse", "changeclass", "class1");
                            });
                        });
                    });
                });
    
                //Notified += TestScript_Notified;
                Tick += new Action(TestScript_Tick);
            }
    
            int _lastTime;
    
            void TestScript_Tick()
            {
                /*var time = Function.Call<int>(283);
    
                if ((time - _lastTime) > 10)
                {
                    Function.Call(363, time);
                    _lastTime = time;
                }*/
            }
    
            void TestScript_Notified(string arg1, Parameter[] arg2)
            {
                if (arg1 == "trigger" || arg1 == "weapon_fired" || arg1 == "touch")
                {
                    return;
                }
    
                GameInterface.Script_PushString(arg1);
                GameInterface.Script_Call(363, 0, 1);
            }
        }
    }
    

  2. The Following User Says Thank You to Kenshin13 For This Useful Post:

    Instrumental (11-02-2012)

  3. #2
    mwxplayer's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    hax
    Posts
    584
    Reputation
    10
    Thanks
    2,928
    My Mood
    Doh
    thanks I Could Try these

  4. #3
    beholder53's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    1
    For those of us who have no idea how to use the code, could you please upload the dll itself?

  5. #4
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by beholder53 View Post
    For those of us who have no idea how to use the code, could you please upload the dll itself?
    Not atm, busy. Got school etc. Plus im cranky b/c im going through cigerette withdrawal... >.<

  6. #5
    mwxplayer's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    hax
    Posts
    584
    Reputation
    10
    Thanks
    2,928
    My Mood
    Doh
    I could Make AIZombies with These Thanks + I can try a level Up Mod [since level hacking is not allowed]

  7. #6
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by mwxplayer View Post
    I could Make AIZombies with These Thanks + I can try a level Up Mod [since level hacking is not allowed]
    High EXP server+This = High levels.
    and No. These bots are just the retarded ones.

  8. #7
    mwxplayer's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    hax
    Posts
    584
    Reputation
    10
    Thanks
    2,928
    My Mood
    Doh
    Quote Originally Posted by Kenshin13 View Post
    High EXP server+This = High levels.
    and No. These bots are just the retarded ones.
    so they can be used for leveling UP :3

  9. #8
    damdam69's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    how do i do this for tekno mw3??? please help... sh*t be confusing

  10. #9
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,750
    Reputation
    66
    Thanks
    14,529
    My Mood
    Angelic
    Quote Originally Posted by damdam69 View Post
    how do i do this for tekno mw3??? please help... sh*t be confusing
    Well.. if you pay attention on the thread it says IW5M, and TeknoMW3 =/= IW5M, therefore this isn't for Tekno.


    CoD Minion from 09/19/2012 to 01/10/2013

  11. #10
    raghavsharma's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    3
    Reputation
    10
    Thanks
    0
    what i hv to do its not a script so i put it in the iw5m folder what now???
    '

  12. #11
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by raghavsharma View Post
    what i hv to do its not a script so i put it in the iw5m folder what now???
    '
    I released and explained what to do mumpass...

  13. #12
    micahzgreat's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    1
    Reputation
    10
    Thanks
    0
    Does it work in private match?

  14. #13
    Kenshin13's Avatar
    Join Date
    May 2011
    Gender
    male
    Location
    Cloud 9
    Posts
    3,470
    Reputation
    564
    Thanks
    6,168
    My Mood
    Psychedelic
    Quote Originally Posted by micahzgreat View Post
    Does it work in private match?
    Nope. At least not this way.

Similar Threads

  1. How Do I Bot Runescape? 8o...
    By newport111 in forum Runescape Help
    Replies: 14
    Last Post: 04-28-2011, 10:23 AM
  2. [Release] VMware [How to make bots]
    By skulhead in forum CrossFire Tutorials
    Replies: 69
    Last Post: 04-27-2011, 02:42 PM
  3. [Tutorial] How to add bots to RSBOT
    By zazack in forum Runescape Hacks / Bots
    Replies: 4
    Last Post: 11-08-2010, 04:52 PM
  4. How to add bots to mods
    By Elmoisabeast in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 7
    Last Post: 11-04-2010, 12:49 AM
  5. How to make bots on browsergames
    By takahuja in forum General
    Replies: 1
    Last Post: 06-29-2007, 08:33 PM