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-11-2010, 03:12 PM #29
ModThatGame
Do a barrel roll!
Thank You Very Much
10-11-2010, 03:15 PM #30
EliteMossy
TheDigitalBoard.com
Originally posted by oOKoOLBhoYOo View Post
yeh well if it is more different than why is converting patches a relative Copy/paste job with decompression + compression..?? most of the code will work on ps3. am i right? maybe some little codes are not similar..? but on the whole a xbox patch is relatively SiMiLAR to the ps3 on the Whole!!


the GSC coding is the same, but the compression is different. All GSC code will work regardless of Xbox, PS3, PC. (except PC have different binds for the controls (like +reload on pc is +usereload on PS3)).
10-11-2010, 03:36 PM #31
oOKoOLBhoYOo
Bounty hunter
Originally posted by EliteMossy View Post
the GSC coding is the same, but the compression is different. All GSC code will work regardless of Xbox, PS3, PC. (except PC have different binds for the controls (like +reload on pc is +usereload on PS3)).


I know the compression is different! lol not that nooby yet :P but thats what i meant the Gsc is the same and the compression is obviously different!! anyway we're :bro: now LOL

Btw i was in your game yesterday with you and mrmoss, I must say the CONNECTION is terrible!! lagging like crap allover the place!!! i dunno the how gd the patch is as mrmoss always selected roll the Dice :( anyway you should sort mrmoss's connection out LOL! Eek :y:
10-11-2010, 04:55 PM #32
Jakob
[move]Enzo[/move]
not really a release, but good to know
10-11-2010, 05:28 PM #33
gmon3y
Banned
Wheres the no thanx button?
06-08-2016, 02:52 PM #34
:spongegar:

The following 3 users groaned at MemoryPointers for this awful post:

Jordan, Midnight, mrtn
03-08-2017, 01:58 AM #35
oblx
Gym leader
How do I spawn bots while using a non host
03-08-2017, 02:08 AM #36
Kronos
Former Staff
Originally posted by oblx View Post
How do I spawn bots while using a non host


you have to be host to spwn bots. PS no Grave digging

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo