some testing

This commit is contained in:
ineed bots 2023-04-30 00:15:59 -06:00
parent c730347c25
commit dbf6ce6f3e
3 changed files with 15 additions and 8 deletions

View File

@ -6,7 +6,9 @@ init()
{ {
level thread maps\bots\_bot::init(); level thread maps\bots\_bot::init();
if ( getDvar( "player_debug_bots" ) == "" )
setDvar( "player_debug_bots", 1 ); setDvar( "player_debug_bots", 1 );
thread test_bot_pathing(); thread test_bot_pathing();
} }

View File

@ -17,7 +17,9 @@ init()
level thread onPlayerConnect(); level thread onPlayerConnect();
level thread spitOutTime(); level thread spitOutTime();
if ( getDvar( "killtest_bot_debug" ) == "" )
setDvar( "killtest_bot_debug", 1 ); setDvar( "killtest_bot_debug", 1 );
level thread addBot(); level thread addBot();
level thread setupcallbacks(); level thread setupcallbacks();
@ -220,9 +222,10 @@ addBot()
if ( !isDefined( guy ) ) if ( !isDefined( guy ) )
return; return;
guy.killingAll = true; // guy.killingAll = true;
guy giveWeapon( "ptrs41_zombie" ); // ptrs41_zombie zombie_doublebarrel weapon = "zombie_thompson";
guy switchToWeapon( "ptrs41_zombie" ); // colt_dirty_harry guy giveWeapon( weapon ); // ptrs41_zombie zombie_doublebarrel
guy switchToWeapon( weapon ); // colt_dirty_harry
//guy thread walk_to_player(); //guy thread walk_to_player();
//guy thread do_move(); //guy thread do_move();
@ -236,6 +239,8 @@ addBot()
break; break;
} }
guy giveMaxAmmo( weapon );
wait 0.05; wait 0.05;
} }
} }