Merge pull request #448 from blaiz/cloaking-respawn

Give Cloaking Device at respawn if cheat is active
This commit is contained in:
fgsfds authored and GitHub committed 2024-08-04 10:56:30 +02:00
commit b43c2ec617
1 file changed
+9
+9
View File
@@ -1100,6 +1100,15 @@ void playerSpawn(void)
}
} else {
#ifndef PLATFORM_N64
if (cheatIsActive(CHEAT_CLOAKINGDEVICE)) {
invGiveSingleWeapon(WEAPON_CLOAKINGDEVICE);
#if VERSION >= VERSION_PAL_FINAL
bgunSetAmmoQuantity(AMMOTYPE_CLOAK, TICKS(7200));
#else
bgunSetAmmoQuantity(AMMOTYPE_CLOAK, 7200);
#endif
}
if (cheatIsActive(CHEAT_PERFECTDARKNESS)) {
invGiveSingleWeapon(WEAPON_NIGHTVISION);
}