CS 1.6 Scripting Hacks and Programming

Click here to edit subtitle

Forums

Post Reply
Forum Home > HL1 Programming > [c++] NoFlash

TreMBle^
Member
Posts: 27

cvar:

cvar_t *noflash;

 

regcmd:

noflash = g_Engine.pfnRegisterVariable("Prefix_noflash","1",0);

 

hud_redraw:

if(noflash->value)

{

static screenfade_t sf = { 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0 };

g_Engine.pfnSetScreenFade( &sf );

}

September 23, 2013 at 4:38 PM Flag Quote & Reply

You must login to post.