PDA

View Full Version : FlashMessage



P47R!CK
07-26-2005, 01:33 PM
void __stdcall Hooked_ViewDrawFade( byte *color, IMaterial *pMaterial )
{
if ( pMaterial && gCvars.vis_flash.bGetValue() )
{
if( strcmp( pMaterial->GetName(), "effects/flashbang_white" ) == 0 ) // effects/flashbang_white 1 0.619608
{
int iPercentage = (int) (pMaterial->GetAlphaModulation() * 100.0f);
}
pMaterial->SetMaterialVarFlag( MATERIAL_VAR_NO_DRAW, true );
}
return gWorldRenderFuncs.ViewDrawFade( color, pMaterial );
}


iPercentage tells you the amount in percent.
Credits Siodine PizzaPan and Tetsuo.

Azorbix
07-26-2005, 03:06 PM
thats cool, you should make a drugs shader that makes it look like your high when flashbanged, and that it fades in and out :evolved:

P47R!CK
07-26-2005, 04:04 PM
thats cool, you should make a drugs shader that makes it look like your high when flashbanged, and that it fades in and out :evolved:
heh nice idea :P
so people would save money too and live longer :D

Organner
07-26-2005, 04:13 PM
But then you would have to take every drug, to check the effect :P. I could help you :knocked:

Absolution
07-26-2005, 06:44 PM
o.O ;)

n0n3
11-21-2007, 02:29 AM
edit: nvm, gj

fliptox
11-21-2007, 03:56 AM
edit: nvm, gj

a worthy bump of a 2+ year old thread. A worthy bump, indeed.

JAvEX
11-22-2007, 08:24 PM
^^
He's coding a CSS hack without knowing C++. ;)

lol@RH coding section