Raised This Month: $ Target: $400
 0% 

glow Smoke Grenade


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Mr.Waffle
Senior Member
Join Date: Dec 2011
Old 04-29-2012 , 14:07   glow Smoke Grenade
Reply With Quote #1

hello,
code
PHP Code:
public Forward_EntityThink_PreiEnt )  {         
    new 
id peviEntpev_owner );    
        
    new 
sModel32 ];
    
    
peviEntpev_modelsModelcharsmaxsModel ) );
    
    if( 
equalsModel"models/w_smokegrenade.mdl" ) ) { 
        
set_peviEntpev_renderfxkRenderFxGlowShell );
        
set_peviEntpev_renderamt125.0 );
        
set_peviEntpev_rendermodekRenderTransAlpha );
        
        if(
cs_get_user_team(iEnt) == CS_TEAM_CT)
        {
            
pev(iEntpev_rendercolor0.00.0255.0
        }
        if(
cs_get_user_team(iEnt) == CS_TEAM_T)    
        {
            
pev(iEntpev_rendercolor255.00.00.0
        }        
        return 
FMRES_SUPERCEDE;
    }    
    return 
FMRES_IGNORED;

so why its not working ?
i just trying to do if a player throw a smoke grenade , the smoke grenade will be in glow .
teror = red glow
ct = blue glow .
can somone fix it ?
thx .

Last edited by Mr.Waffle; 04-29-2012 at 14:36.
Mr.Waffle is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode