mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-05-15 16:34:50 +00:00
Compare commits
No commits in common. "dc03e0fbb3ef69d9e2827f9b901ab9c549b23405" and "02761a101387c536bd02d62b7d2f6f4676de8ea9" have entirely different histories.
dc03e0fbb3
...
02761a1013
@ -120,10 +120,6 @@ You can easily setup a local LAN dedicated server for you to join and play on. H
|
||||
|
||||
|
||||
## Changelog
|
||||
- v2.3.0 (not released yet)
|
||||
- Smoothed bot aim at range
|
||||
- Fixed bots_manage_fill_spec players being counted with bots_manage_fill_mode 1 (bot only)
|
||||
|
||||
- v2.2.0
|
||||
- Fixed some chat related script runtime errors
|
||||
- Waypoints only load from csv now
|
||||
|
@ -8,7 +8,7 @@
|
||||
*/
|
||||
init()
|
||||
{
|
||||
level.bw_version = "2.3.0";
|
||||
level.bw_version = "2.2.0";
|
||||
|
||||
if ( getdvar( "bots_main" ) == "" )
|
||||
{
|
||||
@ -1027,11 +1027,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 )
|
||||
|
@ -1600,7 +1600,7 @@ aim_loop()
|
||||
{
|
||||
self thread bot_lookat( target gettagorigin( "j_spine4" ), 0.05 );
|
||||
}
|
||||
else if ( !nadeAimOffset && conedot > 0.999995 && lengthsquared( aimoffset ) < 0.05 )
|
||||
else if ( !nadeAimOffset && conedot > 0.999 && lengthsquared( aimoffset ) < 0.05 )
|
||||
{
|
||||
self thread bot_lookat( aimpos, 0.05 );
|
||||
}
|
||||
@ -1618,7 +1618,7 @@ aim_loop()
|
||||
|
||||
conedot = getConeDot( aimpos, eyePos, angles );
|
||||
|
||||
if ( !nadeAimOffset && conedot > 0.999995 && lengthsquared( aimoffset ) < 0.05 )
|
||||
if ( !nadeAimOffset && conedot > 0.999 && lengthsquared( aimoffset ) < 0.05 )
|
||||
{
|
||||
self thread bot_lookat( aimpos, 0.05 );
|
||||
}
|
||||
@ -2858,7 +2858,7 @@ bot_lookat( pos, time, vel, doAimPredict )
|
||||
for ( i = 0; i < steps; i++ )
|
||||
{
|
||||
myAngle = ( angleclamp180( myAngle[ 0 ] + X ), angleclamp180( myAngle[ 1 ] + Y ), 0 );
|
||||
self BotBuiltinBotAngles( myAngle );
|
||||
self setplayerangles( myAngle );
|
||||
wait 0.05;
|
||||
}
|
||||
}
|
||||
|
@ -2856,12 +2856,6 @@ bot_killstreak_think_loop()
|
||||
{
|
||||
curWeap = self getcurrentweapon();
|
||||
|
||||
if ( curWeap == "radar_mp" || curWeap == "helicopter_mp" || curWeap == "airstrike_mp" )
|
||||
{
|
||||
self thread changeToWeapon( self.lastdroppableweapon );
|
||||
return;
|
||||
}
|
||||
|
||||
if ( curWeap == "none" || !isWeaponDroppable( curWeap ) )
|
||||
{
|
||||
curWeap = self.lastdroppableweapon;
|
||||
|
@ -133,17 +133,6 @@ BotBuiltinBotMeleeParams( yaw, dist )
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Sets angles
|
||||
*/
|
||||
BotBuiltinBotAngles( angles )
|
||||
{
|
||||
if ( isdefined( level.bot_builtins ) && isdefined( level.bot_builtins[ "botangles" ] ) )
|
||||
{
|
||||
self [[ level.bot_builtins[ "botangles" ] ]]( angles );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
Test if is a bot
|
||||
*/
|
||||
|
@ -7,7 +7,6 @@ init()
|
||||
level.bot_builtins[ "botmovement" ] = ::do_botmovement;
|
||||
level.bot_builtins[ "botmoveto" ] = ::do_botmoveto;
|
||||
level.bot_builtins[ "botmeleeparams" ] = ::do_botmeleeparams;
|
||||
level.bot_builtins[ "botangles" ] = ::do_botangles;
|
||||
level.bot_builtins[ "isbot" ] = ::do_isbot;
|
||||
level.bot_builtins[ "fs_fopen" ] = ::do_fs_fopen;
|
||||
level.bot_builtins[ "fs_fclose" ] = ::do_fs_fclose;
|
||||
@ -50,12 +49,6 @@ do_botmeleeparams( yaw, dist )
|
||||
// cod4x removed lunging due to movement exploits
|
||||
}
|
||||
|
||||
do_botangles( angles )
|
||||
{
|
||||
self setplayerangles( angles );
|
||||
// self botangles( angles[ 0 ], angles[ 1 ], angles[ 2 ] );
|
||||
}
|
||||
|
||||
do_isbot()
|
||||
{
|
||||
return self.isbot;
|
||||
|
Loading…
x
Reference in New Issue
Block a user