Add Black nuke flash

This commit is contained in:
katniny 2025-03-03 06:52:37 -07:00
parent d7e3298038
commit a77e3b963e
3 changed files with 7 additions and 4 deletions

View file

@ -100,7 +100,7 @@ void() Menu_Accessibility =
Menu_CvarSlider(2, [0, 1, 20], "cl_textopacity", false, false);
// Nuke flash color
Menu_Button(3, "ac_nukefla", "NUKE FLASH COLOR", "Adjust the color of the nuke flash for better visibility.") ? Menu_Accessibility_UpdateNukeFlash() : 0;
Menu_Button(3, "ac_nukefla", "NUKE FLASH COLOR", "Choose the color of the nuke flash.") ? Menu_Accessibility_UpdateNukeFlash() : 0;
string nukeflash_string = "";
switch(current_nukeflash) {
case 0: nukeflash_string = "WHITE"; break;

View file

@ -1,10 +1,9 @@
string menu_ctrl_buttons[8] = {"cm_adsm", "cm_sens", "cm_invs", "cm_togsp", "cm_gpad", "cm_bind", "cm_apply", "cm_back"};
string menu_ctrl_buttons[8] = {"cm_adsm", "cm_sens", "cm_invs", "cm_gpad", "cm_bind", "cm_apply", "cm_back"};
float menu_ctrl_init;
float current_adsmode;
float current_invert;
float current_sprintoggle;
void() Menu_Control_StoreCurrentSettings =
{

View file

@ -336,7 +336,11 @@ void() PU_NukeKill =
void() PU_Nuke =
{
// Flash the screen white
nzp_screenflash(world, SCREENFLASH_COLOR_WHITE, 1, SCREENFLASH_FADE_INANDOUT);
if (cvar("cl_nukeflashcolor") == 0) {
nzp_screenflash(world, SCREENFLASH_COLOR_WHITE, 1, SCREENFLASH_FADE_INANDOUT);
} else if (cvar("cl_nukeflashcolor") == 1) {
nzp_screenflash(world, SCREENFLASH_COLOR_BLACK, 1, SCREENFLASH_FADE_INANDOUT);
}
// if there's already one active, just increment the point multiplier
if (nuke_powerup_active == true) {