Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ineed bots committed Mar 20, 2024
1 parent 748d261 commit a1651ba
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
*.log
*.stat
*.exe
*.gscbin
!ci/
out/
logs/
demos/
missingasset.csv
Expand Down
53 changes: 53 additions & 0 deletions scripts/mp/bots_adapter_piw5.gsc
Original file line number Diff line number Diff line change
@@ -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 );
}

0 comments on commit a1651ba

Please sign in to comment.