mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2026-07-05 15:19:56 +00:00
fixed ac130/chopper angles,
bots properly use pred missiles
This commit is contained in:
+24
-6
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user