From 80faefbaf6fa32066e02ff51662c2e6b4b4a26db Mon Sep 17 00:00:00 2001 From: Jonaeru Date: Sun, 17 Mar 2024 15:12:26 +0900 Subject: [PATCH] port: give Night Vision at respawn in Perfect Darkness Combat --- src/game/player.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/game/player.c b/src/game/player.c index bb26bd28e..36c10511b 100644 --- a/src/game/player.c +++ b/src/game/player.c @@ -1100,6 +1100,10 @@ void playerSpawn(void) } } else { #ifndef PLATFORM_N64 + if (cheatIsActive(CHEAT_PERFECTDARKNESS)) { + invGiveSingleWeapon(WEAPON_NIGHTVISION); + } + if ((g_MpSetup.options & MPOPTION_SPAWNWITHWEAPON) && g_MpSetup.weapons[0] != MPWEAPON_NONE && g_MpSetup.weapons[0] != MPWEAPON_DISABLED) {