mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-04-25 23:29:12 +00:00
fix
This commit is contained in:
parent
748d261c02
commit
a1651baa5a
3
.gitignore
vendored
3
.gitignore
vendored
@ -2,6 +2,9 @@
|
|||||||
*.log
|
*.log
|
||||||
*.stat
|
*.stat
|
||||||
*.exe
|
*.exe
|
||||||
|
*.gscbin
|
||||||
|
!ci/
|
||||||
|
out/
|
||||||
logs/
|
logs/
|
||||||
demos/
|
demos/
|
||||||
missingasset.csv
|
missingasset.csv
|
||||||
|
53
scripts/mp/bots_adapter_piw5.gsc
Normal file
53
scripts/mp/bots_adapter_piw5.gsc
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
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 )
|
||||||
|
{
|
||||||
|
println( s );
|
||||||
|
}
|
||||||
|
|
||||||
|
do_filewrite( file, contents, mode )
|
||||||
|
{
|
||||||
|
file = "scriptdata/" + file;
|
||||||
|
}
|
||||||
|
|
||||||
|
do_fileread( file )
|
||||||
|
{
|
||||||
|
file = "scriptdata/" + file;
|
||||||
|
return undefined;
|
||||||
|
}
|
||||||
|
|
||||||
|
do_fileexists( file )
|
||||||
|
{
|
||||||
|
file = "scriptdata/" + file;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
do_botaction( action )
|
||||||
|
{
|
||||||
|
self botaction( action );
|
||||||
|
}
|
||||||
|
|
||||||
|
do_botstop()
|
||||||
|
{
|
||||||
|
self botstop();
|
||||||
|
}
|
||||||
|
|
||||||
|
do_botmovement( forward, right )
|
||||||
|
{
|
||||||
|
self botmovement( forward, right );
|
||||||
|
}
|
||||||
|
|
||||||
|
do_botmeleeparams( entNum, dist )
|
||||||
|
{
|
||||||
|
self botmeleeparams( entNum, dist );
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user