mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-04-19 08:32:52 +00:00
use wrapper
This commit is contained in:
parent
d19be1dd2d
commit
93b82d7720
@ -49,6 +49,16 @@ BotBuiltinPrintConsole( s )
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
*/
|
||||
BotBuiltinDisableDetourOnce( s )
|
||||
{
|
||||
if ( isdefined( level.bot_builtins ) && isdefined( level.bot_builtins[ "disabledetouronce" ] ) )
|
||||
{
|
||||
[[ level.bot_builtins[ "disabledetouronce" ] ]]( s );
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
*/
|
||||
BotBuiltinReplaceFunc( s, b )
|
||||
|
@ -70,7 +70,7 @@ destroyElemFixed()
|
||||
}
|
||||
|
||||
func = BotBuiltinGetFunction( "maps/mp/gametypes/_hud_util", "destroyelem" );
|
||||
disableDetourOnce( func );
|
||||
BotBuiltinDisableDetourOnce( func );
|
||||
self [[ func ]]();
|
||||
}
|
||||
|
||||
|
@ -10,6 +10,7 @@ main()
|
||||
level.bot_builtins[ "botmeleeparamsoverride" ] = ::do_botmeleeparamsoverride;
|
||||
level.bot_builtins[ "replacefunc" ] = ::do_replacefunc;
|
||||
level.bot_builtins[ "getfunction" ] = ::do_getfunction;
|
||||
level.bot_builtins[ "disabledetouronce" ] = ::do_disabledetouronce;
|
||||
maps\mp\gametypes\_bot::main();
|
||||
}
|
||||
|
||||
@ -28,6 +29,11 @@ do_printconsole( s )
|
||||
printf( s );
|
||||
}
|
||||
|
||||
do_disabledetouronce( s )
|
||||
{
|
||||
disabledetouronce( s );
|
||||
}
|
||||
|
||||
do_botmovementoverride( a, b )
|
||||
{
|
||||
self botmovementoverride( a, b );
|
||||
|
Loading…
x
Reference in New Issue
Block a user