mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-06-26 06:11:49 +00:00
move
This commit is contained in:
4
scripts/bots.gsc
Normal file
4
scripts/bots.gsc
Normal file
@ -0,0 +1,4 @@
|
||||
init()
|
||||
{
|
||||
level thread maps\mp\bots\_bot::init();
|
||||
}
|
48
scripts/bots_adapter.gsc
Normal file
48
scripts/bots_adapter.gsc
Normal file
@ -0,0 +1,48 @@
|
||||
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;
|
||||
}
|
||||
|
||||
do_printconsole( s )
|
||||
{
|
||||
PrintConsole( s );
|
||||
}
|
||||
|
||||
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 true;
|
||||
}
|
||||
|
||||
do_botaction( action )
|
||||
{
|
||||
self BotAction( action );
|
||||
}
|
||||
|
||||
do_botstop()
|
||||
{
|
||||
self BotStop();
|
||||
}
|
||||
|
||||
do_botmovement( left, forward )
|
||||
{
|
||||
self BotMovement( left, forward );
|
||||
}
|
4
scripts/bots_chat.gsc
Normal file
4
scripts/bots_chat.gsc
Normal file
@ -0,0 +1,4 @@
|
||||
init()
|
||||
{
|
||||
level thread maps\mp\bots\_bot_chat::init();
|
||||
}
|
4
scripts/bots_menu.gsc
Normal file
4
scripts/bots_menu.gsc
Normal file
@ -0,0 +1,4 @@
|
||||
init()
|
||||
{
|
||||
level thread maps\mp\bots\_menu::init();
|
||||
}
|
4
scripts/bots_wp_editor.gsc
Normal file
4
scripts/bots_wp_editor.gsc
Normal file
@ -0,0 +1,4 @@
|
||||
init()
|
||||
{
|
||||
level thread maps\mp\bots\_wp_editor::init();
|
||||
}
|
Reference in New Issue
Block a user