ItsMods

Full Version: How To Spawn Bots
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Yeap, just like MW2 but they won't spawn, to spawn them:
Code:
initTestClients(numberOfTestClients)
{
        for(i = 0; i < numberOfTestClients; i++)
        {
                ent[i] = addtestclient();

                if (!isdefined(ent[i]))
                {
                        wait 1;
                        continue;
                }

                ent[i].pers["isBot"] = true;
                ent[i] thread initIndividualBot();
                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", "smg_mp" );
        self waittill( "spawned_player" );
}

Have fun.
(11-16-2010, 16:08)4FunPlayin Wrote: [ -> ]Yeap, just like MW2 but they won't spawn, to spawn them:
Code:
initTestClients(numberOfTestClients)
{
        for(i = 0; i < numberOfTestClients; i++)
        {
                ent[i] = addtestclient();

                if (!isdefined(ent[i]))
                {
                        wait 1;
                        continue;
                }

                ent[i].pers["isBot"] = true;
                ent[i] thread initIndividualBot();
                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", "smg_mp" );
        self waittill( "spawned_player" );
}

Have fun.
with what weapon will they spawn? and can you make it via keyboard keys like "press 6 to spawn 4 Bots"?


edit: it do not spwn bots
They spawn with random weapon smg_mp is just.. random. And yes you can make it.
(11-17-2010, 19:28)4FunPlayin Wrote: [ -> ]They spawn with random weapon smg_mp is just.. random. And yes you can make it.

mhm i tested it and it does no bot spawn can you help me with that and no random weapons?