1
0
mirror of https://github.com/ineedbots/iw5_bot_warfare.git synced 2026-03-27 12:43:03 +00:00

the angle update

This commit is contained in:
ineed bots
2024-04-30 01:33:08 -06:00
parent b47088538e
commit 39c6f5054f
5 changed files with 431 additions and 76 deletions

View File

@@ -280,6 +280,7 @@ init()
level.bots_fullautoguns[ "remote" ] = true;
level thread fixGamemodes();
level thread fixPredMissile();
level thread onPlayerConnect();
level thread addNotifyOnAirdrops();
@@ -291,6 +292,23 @@ init()
level thread onPlayerChat();
}
/*
Change func pointer to ours, so that we can link the player ref to the rocket
*/
fixPredMissile()
{
for ( i = 0; i < 19; i++ )
{
if ( isdefined( level.killstreakfuncs ) && isdefined( level.killstreakfuncs[ "predator_missile" ] ) )
{
level.killstreakfuncs[ "predator_missile" ] = ::tryUsePredatorMissileFix;
break;
}
wait 0.05;
}
}
/*
Starts the threads for bots.
*/
@@ -857,7 +875,7 @@ onPlayerConnect()
onDisconnectPlayer()
{
name = self.name;
self waittill( "disconnect" );
waittillframeend;
@@ -1419,11 +1437,11 @@ addBots_loop()
if ( fillMode == 0 || fillMode == 2 )
{
amount += players;
}
if ( getdvarint( "bots_manage_fill_spec" ) )
{
amount += spec;
if ( getdvarint( "bots_manage_fill_spec" ) )
{
amount += spec;
}
}
if ( amount < fillAmount )