mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-06-26 22:31:49 +00:00
case sensitive, always curly braces, array index spacing,
This commit is contained in:
@ -1,17 +1,17 @@
|
||||
init()
|
||||
{
|
||||
level.bot_builtins["printconsole"] = ::do_printconsole;
|
||||
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["botmoveto"] = ::do_botmoveto;
|
||||
level.bot_builtins["botmeleeparams"] = ::do_botmeleeparams;
|
||||
level.bot_builtins["isbot"] = ::do_isbot;
|
||||
level.bot_builtins["fs_fopen"] = ::do_fs_fopen;
|
||||
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[ "printconsole" ] = ::do_printconsole;
|
||||
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[ "botmoveto" ] = ::do_botmoveto;
|
||||
level.bot_builtins[ "botmeleeparams" ] = ::do_botmeleeparams;
|
||||
level.bot_builtins[ "isbot" ] = ::do_isbot;
|
||||
level.bot_builtins[ "fs_fopen" ] = ::do_fs_fopen;
|
||||
level.bot_builtins[ "fs_fclose" ] = ::do_fs_fclose;
|
||||
level.bot_builtins[ "fs_readline" ] = ::do_fs_readline;
|
||||
level.bot_builtins[ "fs_writeline" ] = ::do_fs_writeline;
|
||||
}
|
||||
|
||||
do_printconsole( s )
|
||||
@ -22,17 +22,17 @@ do_printconsole( s )
|
||||
do_fileexists( file )
|
||||
{
|
||||
file = "scriptdata/" + file;
|
||||
return FS_TestFile( file );
|
||||
return fs_testfile( file );
|
||||
}
|
||||
|
||||
do_botaction( action )
|
||||
{
|
||||
self BotAction( action );
|
||||
self botaction( action );
|
||||
}
|
||||
|
||||
do_botstop()
|
||||
{
|
||||
self BotStop();
|
||||
self botstop();
|
||||
}
|
||||
|
||||
do_botmovement( forward, right )
|
||||
@ -41,7 +41,7 @@ do_botmovement( forward, right )
|
||||
|
||||
do_botmoveto( where )
|
||||
{
|
||||
self BotMoveTo( where );
|
||||
self botmoveto( where );
|
||||
}
|
||||
|
||||
do_botmeleeparams( yaw, dist )
|
||||
@ -57,20 +57,20 @@ do_isbot()
|
||||
do_fs_fopen( file, mode )
|
||||
{
|
||||
file = "scriptdata/" + file;
|
||||
return FS_FOpen( file, mode );
|
||||
return fs_fopen( file, mode );
|
||||
}
|
||||
|
||||
do_fs_fclose( fh )
|
||||
{
|
||||
FS_FClose( fh );
|
||||
fs_fclose( fh );
|
||||
}
|
||||
|
||||
do_fs_readline( fh )
|
||||
{
|
||||
return FS_ReadLine( fh );
|
||||
return fs_readline( fh );
|
||||
}
|
||||
|
||||
do_fs_writeline( fh, contents )
|
||||
{
|
||||
FS_WriteLine( fh, contents );
|
||||
fs_writeline( fh, contents );
|
||||
}
|
||||
|
Reference in New Issue
Block a user