Skip to content

Commit

Permalink
Add some aliases for the script engine
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioSMB committed Jul 11, 2017
1 parent 9e77400 commit 3f555da
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mod/common/commands/script.qc
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,10 @@ void GenericCommand_script(float request, float argc, string command)
}

GENERIC_COMMAND(script, "Script interpreter") { GenericCommand_script(request, arguments, command); }

STATIC_INIT_LATE(script_command)
{
localcmd(strcat("\nalias script \"", GetProgramCommandPrefix(), " script ${* ?}\"\n"));

localcmd("\nalias runscript \"script file plugins/${* ?}.qs\"\n");
}

0 comments on commit 3f555da

Please sign in to comment.