This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ECHO OFF | |
REM Save this file in the same directory as you phar-file. | |
REM For composer.phar, save this file as composer.bat | |
REM For phpunit.phar, save this file as phpunit.bat | |
REM | |
REM Read how the filename is created: | |
REM https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true | |
REM | |
REM php "%~dp0composer.phar" %* | |
php "%~dp0%~n0.phar" %* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The gist of this script is: we have three states. Bullet selected, explosive selected, and fire selected. | |
//When bullet is selected, we make the 'go to bullet' button do nothing, whereas the other two advance one, and update their current state. | |
//This way, you can continually hit a key, which will advance state, until you hit your current desired state, and it will stop advancing. | |
//We always start on spawn with bullet, so we set bullet blank, as to not change resist type | |
alias +go_to_bullet; | |
alias -go_to_bullet "-reload"; | |
//Since we start on bullet, going to explosive is one use | |
alias +go_to_explosive "bullet_to_explosive"; |