Skip to content

Commit

Permalink
Merge pull request fgsfdsfgs#406 from jonaeru/port-perfectdarkness
Browse files Browse the repository at this point in the history
Give Night Vision at respawn in Perfect Darkness Combat
  • Loading branch information
fgsfdsfgs authored Mar 17, 2024
2 parents 894ccfa + 80faefb commit b4f7f46
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/game/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit b4f7f46

Please sign in to comment.