This commit is contained in:
ineed bots
2023-12-11 17:11:08 -06:00
parent f95e0ac9fb
commit 7458491ac1
3 changed files with 13 additions and 31 deletions

View File

@@ -159,7 +159,7 @@ BotBuiltinGetGuid()
/*
*/
BotBuiltinsSetAllowedTraversals( bot_allowed_negotiation_links )
BotBuiltinSetAllowedTraversals( bot_allowed_negotiation_links )
{
if ( isDefined( level.bot_builtins ) && isDefined( level.bot_builtins["setallowedtraversals"] ) )
{
@@ -169,7 +169,7 @@ BotBuiltinsSetAllowedTraversals( bot_allowed_negotiation_links )
/*
*/
BotBuiltinsSetIgnoredLinks( bot_ignore_links )
BotBuiltinSetIgnoredLinks( bot_ignore_links )
{
if ( isDefined( level.bot_builtins ) && isDefined( level.bot_builtins["setignoredlinks"] ) )
{
@@ -712,24 +712,6 @@ WeaponIsFullAuto( weap )
return isDefined( weaptoks[0] ) && isString( weaptoks[0] ) && isdefined( level.bots_fullautoguns[weaptoks[0]] );
}
/*
Returns what our eye height is.
*/
GetEyeHeight()
{
myEye = self GetEyePos();
return myEye[2] - self.origin[2];
}
/*
Returns (iw4) eye pos.
*/
GetEyePos()
{
return self getTagOrigin( "tag_eye" );
}
/*
helper
*/
@@ -1159,8 +1141,8 @@ load_waypoints()
}
// arrays are passed by value in gsc... hope this isnt gunna run out of vars
BotBuiltinsSetAllowedTraversals( bot_allowed_negotiation_links );
BotBuiltinsSetIgnoredLinks( bot_ignore_links );
BotBuiltinSetAllowedTraversals( bot_allowed_negotiation_links );
BotBuiltinSetIgnoredLinks( bot_ignore_links );
level.bot_ignore_links = bot_ignore_links;
level.waypoints = GetAllNodes();