Compare commits

..

No commits in common. "9c0e3e26cde8a5682ac9132e8eec2dc3932b8e33" and "7acc701c04853a33c608c234ea411c03464b4187" have entirely different histories.

4 changed files with 5 additions and 22 deletions

View File

@ -7,7 +7,7 @@
*/
init()
{
level.bw_version = "2.3.0";
level.bw_version = "2.2.0 PR 1";
if ( getdvar( "bots_main" ) == "" )
{

View File

@ -830,7 +830,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;
}
}
@ -1477,7 +1477,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 );
}
@ -1495,7 +1495,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 );
}

View File

@ -84,19 +84,9 @@ 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
*/
BotBuiltinIsBot()
{

View File

@ -5,7 +5,6 @@ init()
level.bot_builtins[ "botstop" ] = ::do_botstop;
level.bot_builtins[ "botmovement" ] = ::do_botmovement;
level.bot_builtins[ "botmeleeparams" ] = ::do_botmeleeparams;
level.bot_builtins[ "botangles" ] = ::do_botangles;
level.bot_builtins[ "isbot" ] = ::do_isbot;
level.bot_builtins[ "generatepath" ] = ::do_generatepath;
level.bot_builtins[ "getfunction" ] = ::do_getfunction;
@ -47,12 +46,6 @@ do_botmeleeparams( yaw, dist )
self botmeleeparams( yaw, dist );
}
do_botangles( angles )
{
self setplayerangles( angles );
// self botangles( angles[ 0 ], angles[ 1 ], angles[ 2 ] );
}
do_isbot()
{
return self isbot();