mirror of
https://github.com/JezuzLizard/t4sp_bot_warfare.git
synced 2025-10-29 08:56:56 +00:00
fixes
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user