mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-06-26 22:31:51 +00:00
curly braces, spacing, formatting, casing
This commit is contained in:
@ -1,31 +1,31 @@
|
||||
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;
|
||||
level.bot_builtins["isbot"] = ::do_isbot;
|
||||
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;
|
||||
level.bot_builtins[ "isbot" ] = ::do_isbot;
|
||||
}
|
||||
|
||||
do_printconsole( s )
|
||||
{
|
||||
PrintConsole( s );
|
||||
printconsole( s );
|
||||
}
|
||||
|
||||
do_filewrite( file, contents, mode )
|
||||
{
|
||||
file = "scriptdata/" + file;
|
||||
FileWrite( file, contents, mode );
|
||||
filewrite( file, contents, mode );
|
||||
}
|
||||
|
||||
do_fileread( file )
|
||||
{
|
||||
file = "scriptdata/" + file;
|
||||
return FileRead( file );
|
||||
return fileread( file );
|
||||
}
|
||||
|
||||
do_fileexists( file )
|
||||
@ -36,25 +36,25 @@ do_fileexists( file )
|
||||
|
||||
do_botaction( action )
|
||||
{
|
||||
self BotAction( action );
|
||||
self botaction( action );
|
||||
}
|
||||
|
||||
do_botstop()
|
||||
{
|
||||
self BotStop();
|
||||
self botstop();
|
||||
}
|
||||
|
||||
do_botmovement( forward, right )
|
||||
{
|
||||
self BotMovement( forward, right );
|
||||
self botmovement( forward, right );
|
||||
}
|
||||
|
||||
do_botmeleeparams( yaw, dist )
|
||||
{
|
||||
// self BotMeleeParams( yaw, dist );
|
||||
// self botmeleeparams( yaw, dist );
|
||||
}
|
||||
|
||||
do_isbot()
|
||||
{
|
||||
return self isBot();
|
||||
return self isbot();
|
||||
}
|
||||
|
Reference in New Issue
Block a user