Merge pull request #406 from jonaeru/port-perfectdarkness

Give Night Vision at respawn in Perfect Darkness Combat
This commit is contained in:
fgsfds authored and GitHub committed 2024-03-17 13:38:42 +01:00
commit b4f7f467c0
1 file changed
+4
+4
View File
@@ -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) {