Post: Release: How to spawn Bot's
10-10-2010, 11:54 PM #1
EliteMossy
TheDigitalBoard.com
(adsbygoogle = window.adsbygoogle || []).push({}); Here is how to spawn Bots

Originally posted by another user
initTestClients(numberOfTestClients)
{
self iPrintln( "^3Spawned " + numberOfTestClients + "x Bots" );
for(i = 0; i < numberOfTestClients; i++)
{
ent = addtestclient();
if (!isdefined(ent))
{
wait 1;
continue;
}
ent.pers["isBot"] = true;
ent thread initIndividualBot();
wait 0.1;
}
}

initIndividualBot()
{
while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], "autoassign");
wait 0.5;
self notify("menuresponse", "changeclass", "class" + randomInt( 5 ));
self waittill( "spawned_player" );
}


Simply call

Originally posted by another user
self thread initTestClients(numberofbots)


To make bots attack
Originally posted by another user
setDvar("testclients_doAttack", 1);


To make bots move
Originally posted by another user
setDvar("testclients_doMove", 1);


Have fun,
Last edited by EliteMossy ; 10-10-2010 at 11:56 PM.

The following 13 users say thank you to EliteMossy for this useful post:

3arc, BigMel1, Cyrious, FireWire, FourzerotwoFAILS, GNDOOOR_KILLER, lilkiller6009, Nolzad0, SantaClawZ, Sticker522, x_5, ZoneTw0
10-10-2010, 11:55 PM #2
BigMel1
Vault dweller
Originally posted by EliteMossy View Post
Here is how to spawn Bots



Simply call



Have fun,


thank you so much!
10-10-2010, 11:56 PM #3
Sticker522
Do a barrel roll!
Thank you, very useful.
10-10-2010, 11:59 PM #4
DEREKTROTTER
You're Goddamn Right
Originally posted by EliteMossy View Post
There is no "Author"

its in the GSC files from Infinity Ward.


thanks again, but i already knew this one

keep em coming Cool Man (aka Tustin)
10-11-2010, 12:02 AM #5
DEREKTROTTER
You're Goddamn Right
why cant we spawn juggernauts Happy
10-11-2010, 12:15 AM #6
Originally posted by DEREKTROTTER View Post
why cant we spawn juggernauts Happy


Soooo many ideas for games come to mind if we could =D
10-11-2010, 12:20 AM #7
shiver
chaos personified
ok ok ok ill give it to you, while its "old" information, it is "new" to the site Smile ill prune our back and forth.
10-11-2010, 12:31 AM #8
AlabamaHit
ROLL TIDE!!!
People if you want to see coding.

Go google. MW2 GSC Coding, you will find coding on xbox sites..

This is not new. Not a "release". And no credit is given......I know you didn't make this..

You must login or register to view this content.
Last edited by AlabamaHit ; 10-11-2010 at 12:35 AM.

The following user thanked AlabamaHit for this useful post:

Perfekt
10-11-2010, 12:32 AM #9
BuC-ShoTz
TeamMvKâ?¢
nice share, dudeeitsbrian's come with bots
it will help with people editing patches...
can we keep update the managed code list
Last edited by BuC-ShoTz ; 10-11-2010 at 12:35 AM.
10-11-2010, 12:39 AM #10
DEREKTROTTER
You're Goddamn Right
Originally posted by BucN View Post
nice share, dudeeitsbrian's come with bots
it will help with people editing patches...
can we keep update the managed code list


ye someone needs to make a managed code list thread, The stickied ones are out dated and messy. I often have to look on other sites/google for code i need

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo