Last active
September 15, 2022 22:09
-
-
Save tulpenkiste/3a6108911fd59e74dd4143450c44de0a to your computer and use it in GitHub Desktop.
STA Mod - setpow
This file contains hidden or 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
/* | |
Convenience mod for single level speedrunners. | |
Set the weapon you want and the subitem before launching or set the variables in game via the "terminal". | |
Changelog: | |
0.2: | |
Allow mod to set game.canres (doll) | |
0.1: | |
Initial version | |
*/ | |
print("Preparing setpow...") | |
// If you need this for powerupless, set BOTH to 0 | |
::spGvSetWeapon <- 2 | |
::spGvSetSubItem <- 8 | |
::spGvSetDoll <- false | |
::spSetValues <- true | |
::startPlayOld <- startPlay | |
::startPlay <- function(level, newLevel = true, skipIntro = false) { | |
startPlayOld(level, newLevel, skipIntro) | |
if (!spSetValues) return | |
game.weapon = spGvSetWeapon | |
game.subitem = spGvSetSubItem | |
game.canres = spGvSetDoll | |
} | |
print("Setpow prepared.") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment