What's new

Solved Need add bots for azza patch

p6ris

p6ris

Newbie
Messages
12
Reaction score
2
Points
45
Sin$
0
Hello! I converted an xbox azza patch(Xbox) To PC. Every Thing Works. Just want to add bots to the menu. This menu had a little problem that i fixed. but everything WORKS! Just need bots.


And if i could have help for adding credits to the menu also. it seems like if i delete something then put something i want the game crashes.
 
Smokey xKoVx

Smokey xKoVx

Getting There
Messages
859
Reaction score
381
Points
200
Sin$
7
Here u go bro.
The only thing u need to do is put addTestClients as an option :smile:

addTestClients()
{
setDvar("sv_botsPressAttackBtn", "1");
setDvar("sv_botsRandomInput", "1");

for(i = 0; i < 5; i++)
{
ent = addtestclient();
if (!isdefined(ent))
{
println("Could not add test client");
wait 1;
continue;
}
ent.pers["isBot"] = true;
ent thread TestClient("autoassign");
}
}

TestClient(team)
{
self endon( "disconnect" );

while(!isdefined(self.pers["team"]))
wait .05;
self notify("menuresponse", game["menu_team"], team);
wait 0.5;
classes = getArrayKeys( level.classMap );
okclasses = [];
for ( i = 0; i < classes.size; i++ )
{
if ( !issubstr( classes, "custom" ) && isDefined( level.default_perk[ level.classMap[ classes ] ] ) )
okclasses[ okclasses.size ] = classes;
}
assert( okclasses.size );
while( 1 )
{
class = okclasses[ randomint( okclasses.size ) ];
if ( !level.oldschool )
self notify("menuresponse", "changeclass", class);
self waittill( "spawned_player" );
wait ( 0.10 );
}
}
 
Upvote 0
Top Bottom
Login
Register