mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-08-30 13:23:14 +00:00
some testing
This commit is contained in:
@@ -477,7 +477,7 @@ target_loop()
|
|||||||
myFov *= 1 - adsFovFact * adsAmount;
|
myFov *= 1 - adsFovFact * adsAmount;
|
||||||
}
|
}
|
||||||
|
|
||||||
enemies = GetAISpeciesArray("axis", "all");
|
enemies = GetAISpeciesArray( "axis", "all" );
|
||||||
|
|
||||||
enemycount = enemies.size;
|
enemycount = enemies.size;
|
||||||
|
|
||||||
@@ -545,7 +545,7 @@ target_loop()
|
|||||||
targetAnkleLeft = enemy getTagOrigin( "j_ankle_le" );
|
targetAnkleLeft = enemy getTagOrigin( "j_ankle_le" );
|
||||||
targetAnkleRight = enemy getTagOrigin( "j_ankle_ri" );
|
targetAnkleRight = enemy getTagOrigin( "j_ankle_ri" );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
targetHead = enemy getTagOrigin( "j_head" );
|
targetHead = enemy getTagOrigin( "j_head" );
|
||||||
targetAnkleLeft = enemy getTagOrigin( "j_ankle_le" );
|
targetAnkleLeft = enemy getTagOrigin( "j_ankle_le" );
|
||||||
@@ -679,7 +679,7 @@ selectBoneForTarget( enemy, bones )
|
|||||||
{
|
{
|
||||||
return PickRandom( bones );
|
return PickRandom( bones );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return PickRandom( bones );
|
return PickRandom( bones );
|
||||||
}
|
}
|
||||||
|
@@ -6,7 +6,9 @@ init()
|
|||||||
{
|
{
|
||||||
level thread maps\bots\_bot::init();
|
level thread maps\bots\_bot::init();
|
||||||
|
|
||||||
setDvar( "player_debug_bots", 1 );
|
if ( getDvar( "player_debug_bots" ) == "" )
|
||||||
|
setDvar( "player_debug_bots", 1 );
|
||||||
|
|
||||||
thread test_bot_pathing();
|
thread test_bot_pathing();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -17,7 +17,9 @@ init()
|
|||||||
level thread onPlayerConnect();
|
level thread onPlayerConnect();
|
||||||
level thread spitOutTime();
|
level thread spitOutTime();
|
||||||
|
|
||||||
setDvar( "killtest_bot_debug", 1 );
|
if ( getDvar( "killtest_bot_debug" ) == "" )
|
||||||
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user