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

@ -23,15 +23,15 @@ bot_ctf_think() //checked changed to match cerberus output changed at own discre
node = random( nodes );
if ( cointoss() )
{
self maps/mp/bots/_bot_combat::bot_combat_throw_proximity( node.origin, flag_mine.curorigin );
self maps/mp/bots/_bot_combat::bot_combat_throw_proximity( node.origin );
}
if ( cointoss() )
{
self maps/mp/bots/_bot_combat::bot_combat_toss_frag( node.origin, flag_mine.curorigin );
self maps/mp/bots/_bot_combat::bot_combat_toss_frag( node.origin );
}
if ( cointoss() )
{
self maps/mp/bots/_bot_combat::bot_combat_toss_flash( node.origin, flag_mine.curorigin );
self maps/mp/bots/_bot_combat::bot_combat_toss_flash( node.origin );
}
}
}
@ -380,3 +380,4 @@ bot_ctf_random_visible_node( origin ) //checked changed to match cerberus output
return undefined;
}