![]() |
|
[Release] How To Spawn Bots - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: [Release] How To Spawn Bots (/Thread-Release-How-To-Spawn-Bots.html) |
How To Spawn Bots - 4FunPlayin - 11-16-2010 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. RE: How To Spawn Bots - Kriege203 - 11-17-2010 (11-16-2010, 16:08)4FunPlayin Wrote: Yeap, just like MW2 but they won't spawn, to spawn them: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 RE: How To Spawn Bots - 4FunPlayin - 11-17-2010 They spawn with random weapon smg_mp is just.. random. And yes you can make it. RE: How To Spawn Bots - Kriege203 - 11-17-2010 (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? |