mirror of
https://github.com/ineedbots/iw3_bot_warfare.git
synced 2025-06-26 22:31:49 +00:00
move scripts to mp folder
This commit is contained in:
4
scripts/mp/bots.gsc
Normal file
4
scripts/mp/bots.gsc
Normal file
@ -0,0 +1,4 @@
|
||||
init()
|
||||
{
|
||||
level thread maps\mp\bots\_bot::init();
|
||||
}
|
76
scripts/mp/bots_adapter_cod4x.gsc
Normal file
76
scripts/mp/bots_adapter_cod4x.gsc
Normal file
@ -0,0 +1,76 @@
|
||||
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;
|
||||
}
|
||||
|
||||
do_printconsole( s )
|
||||
{
|
||||
println( s );
|
||||
}
|
||||
|
||||
do_fileexists( file )
|
||||
{
|
||||
file = "scriptdata/" + file;
|
||||
return fs_testfile( file );
|
||||
}
|
||||
|
||||
do_botaction( action )
|
||||
{
|
||||
self botaction( action );
|
||||
}
|
||||
|
||||
do_botstop()
|
||||
{
|
||||
self botstop();
|
||||
}
|
||||
|
||||
do_botmovement( forward, right )
|
||||
{
|
||||
}
|
||||
|
||||
do_botmoveto( where )
|
||||
{
|
||||
self botmoveto( where );
|
||||
}
|
||||
|
||||
do_botmeleeparams( yaw, dist )
|
||||
{
|
||||
// cod4x removed lunging due to movement exploits
|
||||
}
|
||||
|
||||
do_isbot()
|
||||
{
|
||||
return self.isbot;
|
||||
}
|
||||
|
||||
do_fs_fopen( file, mode )
|
||||
{
|
||||
file = "scriptdata/" + file;
|
||||
return fs_fopen( file, mode );
|
||||
}
|
||||
|
||||
do_fs_fclose( fh )
|
||||
{
|
||||
fs_fclose( fh );
|
||||
}
|
||||
|
||||
do_fs_readline( fh )
|
||||
{
|
||||
return fs_readline( fh );
|
||||
}
|
||||
|
||||
do_fs_writeline( fh, contents )
|
||||
{
|
||||
fs_writeline( fh, contents );
|
||||
}
|
4
scripts/mp/bots_chat.gsc
Normal file
4
scripts/mp/bots_chat.gsc
Normal file
@ -0,0 +1,4 @@
|
||||
init()
|
||||
{
|
||||
level thread maps\mp\bots\_bot_chat::init();
|
||||
}
|
4
scripts/mp/bots_menu.gsc
Normal file
4
scripts/mp/bots_menu.gsc
Normal file
@ -0,0 +1,4 @@
|
||||
init()
|
||||
{
|
||||
level thread maps\mp\bots\_menu::init();
|
||||
}
|
4
scripts/mp/bots_wp_editor.gsc
Normal file
4
scripts/mp/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