mirror of
https://github.com/perfect-dark-pc-port/perfect_dark.git
synced 2026-10-24 00:02:43 +02:00
Merge pull request #448 from blaiz/cloaking-respawn
Give Cloaking Device at respawn if cheat is active
This commit is contained in:
1 file changed
+9
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user