Raised This Month: $ Target: $400
 0% 

[SOLVED][NPC] Is it possible to add aura on it?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
lazarev
Veteran Member
Join Date: Sep 2008
Old 03-05-2010 , 06:00   Re: [NPC] Is it possible to add aura on it?
Reply With Quote #5

240 radius is uber big you will get low fps & lags, 40 is fine =)
PHP Code:
public fwdThinkiEntity 
{
    if( !
pev_validiEntity ) ) return FMRES_IGNORED;
    static 
szClassname32 ];
    
peviEntitypev_classnameszClassname31 );
    
    if( 
equalszClassnamegszClassName ) )
    {
        new 
Float:vOrigin];
        
peviEntitypev_originvOrigin );
        
        
message_begin(MSG_BROADCASTSVC_TEMPENTITY);
        
write_byte(TE_DLIGHT);
        
engfunc(EngFunc_WriteCoordvOrigin[0]);
        
engfunc(EngFunc_WriteCoordvOrigin[1]);
        
engfunc(EngFunc_WriteCoordvOrigin[2]);
        
write_byte(20);        // radius in 10's
        
write_byte(255);        // R
        
write_byte(255);        // G
        
write_byte(255);        // B
        
write_byte(3);      // life
        
write_byte(10);        // decay rate
        
message_end();

        
set_peviEntitypev_nextthinkget_gametime() + 0.1 );
    }
    return 
FMRES_IGNORED;


Last edited by lazarev; 03-05-2010 at 06:03.
lazarev is offline
 



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 08:47.


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