setup builtin

This commit is contained in:
ineed bots 2023-12-13 14:48:12 -06:00
parent 9d4517f67f
commit 5df8f4fcc6
2 changed files with 17 additions and 0 deletions

View File

@ -163,6 +163,17 @@ BotBuiltinClearAimOverride()
}
}
/*
Sets melee params
*/
BotBuiltinBotMeleeParams( yaw, dist )
{
if ( isDefined( level.bot_builtins ) && isDefined( level.bot_builtins["botmeleeparams"] ) )
{
self [[ level.bot_builtins["botmeleeparams" ]]]( yaw, dist );
}
}
/*
Returns an array of all the bots in the game.
*/

View File

@ -13,6 +13,7 @@ init()
level.bot_builtins["botclearbuttonoverrides"] = ::do_botclearbuttonoverrides;
level.bot_builtins["botaimoverride"] = ::do_botaimoverride;
level.bot_builtins["botclearaimoverride"] = ::do_botclearaimoverride;
level.bot_builtins["botmeleeparams"] = ::do_botmeleeparams;
}
do_printconsole( s )
@ -79,3 +80,8 @@ do_botclearaimoverride()
{
self botClearAimOverride();
}
do_botmeleeparams( yaw, dist )
{
// self botMeleeParams( yaw, dist );
}