t4 refactor

This commit is contained in:
ineed bots
2025-05-22 18:51:26 -06:00
parent 3e08ac900d
commit b8597ee810
4 changed files with 56 additions and 5 deletions

View File

@@ -12,6 +12,24 @@ init()
level.bot_builtins[ "fs_fclose" ] = ::do_fs_fclose;
level.bot_builtins[ "fs_readline" ] = ::do_fs_readline;
level.bot_builtins[ "fs_writeline" ] = ::do_fs_writeline;
level.bot_builtins[ "notifyonplayercommand" ] = ::do_notifyonplayercommand;
level.bot_builtins[ "cmdexec" ] = ::do_cmdexec;
level.bot_builtins[ "ishost" ] = ::do_ishost;
}
do_notifyonplayercommand( a, b )
{
self notifyonplayercommand( a, b );
}
do_cmdexec( a )
{
cmdexec( a );
}
do_ishost()
{
return self ishost();
}
do_printconsole( s )