forked from Ports/perfect_dark
Merge pull request #406 from jonaeru/port-perfectdarkness
Give Night Vision at respawn in Perfect Darkness Combat
This commit is contained in:
1 file changed
+4
@@ -1100,6 +1100,10 @@ void playerSpawn(void)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
#ifndef PLATFORM_N64
|
#ifndef PLATFORM_N64
|
||||||
|
if (cheatIsActive(CHEAT_PERFECTDARKNESS)) {
|
||||||
|
invGiveSingleWeapon(WEAPON_NIGHTVISION);
|
||||||
|
}
|
||||||
|
|
||||||
if ((g_MpSetup.options & MPOPTION_SPAWNWITHWEAPON)
|
if ((g_MpSetup.options & MPOPTION_SPAWNWITHWEAPON)
|
||||||
&& g_MpSetup.weapons[0] != MPWEAPON_NONE
|
&& g_MpSetup.weapons[0] != MPWEAPON_NONE
|
||||||
&& g_MpSetup.weapons[0] != MPWEAPON_DISABLED) {
|
&& g_MpSetup.weapons[0] != MPWEAPON_DISABLED) {
|
||||||
|
|||||||
Reference in new issue
Block a user