{
if (MUTATOR_CALLHOOK(HUD_Draw_overlay))
{
- drawfill('0 0 0', vec2(vid_conwidth, vid_conheight), M_ARGV(0, vector), autocvar_hud_colorflash_alpha * M_ARGV(1, float), DRAWFLAG_ADDITIVE);
+ vector col = M_ARGV(0, vector);
+ float alpha_multipl = M_ARGV(1, float);
+ if (alpha_multipl > 0)
+ drawfill('0 0 0', vec2(vid_conwidth, vid_conheight), col, autocvar_hud_colorflash_alpha * alpha_multipl, DRAWFLAG_ADDITIVE);
}
else if(STAT(FROZEN))
{
if (!darkblink)
sound(csqcplayer, CH_PAIN, SND_BLIND, VOL_BASE, ATTEN_NORM);
darkblink = true;
- M_ARGV(0, vector) = NADE_TYPE_DARKNESS.m_color;
HUD_DarkBlinking();
+ M_ARGV(1, float) = 0; // alpha_multipl 0, don't draw normal overlay
return true;
}
- else
- darkblink = false;
+ darkblink = false;
return false;
}