Raised This Month: $ Target: $400
 0% 

Simple Solution for Sprite Trail


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
micapat
Veteran Member
Join Date: Feb 2010
Location: Nyuu, nyuu (France).
Old 01-04-2013 , 12:11   Re: Simple Solution for Sprite Trail
Reply With Quote #5

More like that:

PHP Code:
stock UTIL_BeamFollowiEntityiSpriteiLifeiWidthiColoriBrightness )
{
    
message_beginMSG_BROADCASTSVC_TEMPENTITY );
        
write_byteTE_BEAMFOLLOW );
        
write_shortiEntity );
        
write_shortiSprite );
        
write_byteiLife );
        
write_byteiWidth );
        
write_byte(( iColor >> 16 ) & 0xFF );
        
write_byte(( iColor >> 8) & 0xFF );
        
write_byteiColor 0xFF );
        
write_byteiBrightness );
    
message_end( );

Example :

PHP Code:
UTIL_BeamFollowplayermy_sprite15 /* = 1,5 seconds */100xFF0000 /* = RED */255 ); 
For colors, see for instance : http://www.javascripter.net/faq/rgbtohex.htm
__________________

Last edited by micapat; 01-04-2013 at 12:11.
micapat 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 13:42.


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