diff --git a/.gitignore b/.gitignore index 46ddfac..cc00050 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ *.zip -*.log +*.log* *.stat logs/ demos/ diff --git a/maps/mp/bots/_bot_internal.gsc b/maps/mp/bots/_bot_internal.gsc index 805e4d6..b161a7b 100644 --- a/maps/mp/bots/_bot_internal.gsc +++ b/maps/mp/bots/_bot_internal.gsc @@ -1407,6 +1407,24 @@ aim_loop() else self thread bot_lookat( aimpos, aimspeed, target getVelocity(), true ); } + else if ( isact ) + { + aimpos = target getTagOrigin( "j_spine4" ); + + if ( !isDefined( aimpos ) ) + return; + + aimpos += offset; + aimpos += aimoffset; + aimpos += ( 0, 0, nadeAimOffset ); + + conedot = getConeDot( aimpos, eyePos, angles ); + + if ( isDefined( self.bot.knifing_target ) || ( !nadeAimOffset && conedot > 0.999 && lengthsquared( aimoffset ) < 0.05 ) ) + self thread bot_lookat( aimpos, 0.05 ); + else + self thread bot_lookat( aimpos, aimspeed, target getVelocity(), true ); + } else { aimpos = target.origin; diff --git a/maps/mp/bots/_bot_script.gsc b/maps/mp/bots/_bot_script.gsc index bcdc402..54e29cf 100644 --- a/maps/mp/bots/_bot_script.gsc +++ b/maps/mp/bots/_bot_script.gsc @@ -2926,7 +2926,7 @@ bot_kill_dog_think_loop() self BotNotifyBotEvent( "attack_dog", "start", targetDog ); - self SetScriptEnemy( targetDog, ( 0, 0, 5 ) ); + self SetScriptEnemy( targetDog ); self bot_dog_attack( targetDog ); self ClearScriptEnemy(); @@ -2943,7 +2943,7 @@ bot_kill_dog_think() for ( ;; ) { - wait( 1 ); + wait( 0.5 ); if ( self HasScriptEnemy() ) continue;