fixed crashes related to 3 bot scripts

Added a missing include to _bot. Changed vectortoangle() to vectortoangles() in _bot_combat. Removed an extra input from 3 functions since those functions only take in 1 input in _bot_ctf.
This commit is contained in:
JezuzLizard
2020-05-10 16:39:10 -07:00
parent d15d80d1f9
commit 786d5cd109
3 changed files with 17 additions and 12 deletions

View File

@ -515,7 +515,7 @@ bot_get_aim_error() //checked changed at own discretion
bot_update_lookat( origin, frac ) //checked matches cerberus output
{
angles = vectorToAngle( origin - self.origin );
angles = vectorToAngles( origin - self.origin );
right = anglesToRight( angles );
error = bot_get_aim_error() * ( 1 - frac );
if ( cointoss() )
@ -1867,3 +1867,4 @@ bot_riotshield_dangerous_think( enemy, goal ) //checked partially changed to mat