mirror of
https://github.com/ineedbots/iw4_bot_warfare.git
synced 2025-04-22 13:55:43 +00:00
55 lines
1.0 KiB
Plaintext
55 lines
1.0 KiB
Plaintext
init()
|
|
{
|
|
level.bot_builtins[ "printconsole" ] = ::do_printconsole;
|
|
level.bot_builtins[ "filewrite" ] = ::do_filewrite;
|
|
level.bot_builtins[ "fileread" ] = ::do_fileread;
|
|
level.bot_builtins[ "fileexists" ] = ::do_fileexists;
|
|
level.bot_builtins[ "botaction" ] = ::do_botaction;
|
|
level.bot_builtins[ "botstop" ] = ::do_botstop;
|
|
level.bot_builtins[ "botmovement" ] = ::do_botmovement;
|
|
level.bot_builtins[ "botmeleeparams" ] = ::do_botmeleeparams;
|
|
}
|
|
|
|
do_printconsole( s )
|
|
{
|
|
PrintConsole( s + "\n" );
|
|
}
|
|
|
|
do_filewrite( file, contents, mode )
|
|
{
|
|
file = "scriptdata/" + file;
|
|
FileWrite( file, contents, mode );
|
|
}
|
|
|
|
do_fileread( file )
|
|
{
|
|
file = "scriptdata/" + file;
|
|
return FileRead( file );
|
|
}
|
|
|
|
do_fileexists( file )
|
|
{
|
|
file = "scriptdata/" + file;
|
|
return FileExists( file );
|
|
}
|
|
|
|
do_botaction( action )
|
|
{
|
|
self BotAction( action );
|
|
}
|
|
|
|
do_botstop()
|
|
{
|
|
self BotStop();
|
|
}
|
|
|
|
do_botmovement( forward, right )
|
|
{
|
|
self BotMovement( forward, right );
|
|
}
|
|
|
|
do_botmeleeparams( yaw, dist )
|
|
{
|
|
self BotMeleeParams( yaw, dist );
|
|
}
|