fixed ac130/chopper angles,

bots properly use pred missiles
This commit is contained in:
ineed bots
2024-04-30 01:33:00 -06:00
parent 755541e8d2
commit 72526aa97c
5 changed files with 429 additions and 77 deletions
+24 -6
View File
@@ -277,6 +277,7 @@ init()
level.bots_fullautoguns[ "peacekeeper" ] = true;
level thread fixGamemodes();
level thread fixPredMissile();
level thread onPlayerConnect();
level thread addNotifyOnAirdrops();
@@ -286,6 +287,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.
*/
@@ -606,7 +624,7 @@ watchScrabler()
onDisconnectPlayer()
{
name = self.name;
self waittill( "disconnect" );
waittillframeend;
@@ -1168,11 +1186,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 )