mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-06-30 16:21:50 +00:00
Fix compile errors. Add bot pathing and movement.
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
#include scripts\sp\bots\bot_target_common;
|
||||
|
||||
bot_lookatobjective()
|
||||
{
|
||||
|
||||
@ -60,7 +62,7 @@ bot_lookattarget()
|
||||
{
|
||||
target = self.zbot_current_target;
|
||||
target_ent = target.target_ent;
|
||||
self bot_lookat( target_ent getTagOrigin( "j_head" ), time, vel, doAimPredict );
|
||||
self bot_lookat( target_ent getTagOrigin( "j_head" ) );
|
||||
wait 0.05;
|
||||
}
|
||||
}
|
||||
@ -195,7 +197,7 @@ bot_lookat( pos, time, vel, doAimPredict )
|
||||
if ( steps < 1 )
|
||||
steps = 1;
|
||||
|
||||
myEye = self GetEyePos(); // get our eye pos
|
||||
myEye = self scripts\sp\bots\_bot_utility::GetEyePos(); // get our eye pos
|
||||
|
||||
if ( doAimPredict )
|
||||
{
|
||||
|
@ -1,3 +1,5 @@
|
||||
#include scripts\sp\bots\bot_objective_common;
|
||||
|
||||
bot_magicbox_purchase()
|
||||
{
|
||||
self.target_pos = self.available_chests[ 0 ].origin;
|
||||
@ -37,7 +39,7 @@ bot_should_purchase_magicbox()
|
||||
{
|
||||
if ( isDefined( self.available_chests[ i ].chest_user ) )
|
||||
{
|
||||
arrayRemoveIndex( self.available_chests, i );
|
||||
maps\_utility::array_remove_index( self.available_chests, i );
|
||||
i--;
|
||||
}
|
||||
}
|
||||
@ -83,7 +85,7 @@ bot_magicbox_purchase_on_postpone()
|
||||
bot_magicbox_purchase_priority()
|
||||
{
|
||||
priority = 0;
|
||||
const LOW_AMMO_THRESHOLD = 0.3;
|
||||
LOW_AMMO_THRESHOLD = 0.3;
|
||||
weapons = self getWeaponsListPrimaries();
|
||||
if ( weapons.size < 2 )
|
||||
{
|
||||
@ -540,7 +542,7 @@ bot_should_revive_player()
|
||||
continue;
|
||||
}
|
||||
|
||||
self.available_revives[ self.available_revives.size ] = downed_players[ obj_keys[ i ] ];
|
||||
self.available_revives[ self.available_revives.size ] = downed_players_objs[ obj_keys[ i ] ];
|
||||
}
|
||||
return self.available_revives.size > 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user