mirror of
https://github.com/ineedbots/t5_bot_warfare.git
synced 2025-06-26 06:11:53 +00:00
use wrapper
This commit is contained in:
@ -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 ]]();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user