Raised This Month: $ Target: $400
 0% 

[HELP] Beam Follow


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 01-16-2016 , 18:30   [HELP] Beam Follow
Reply With Quote #1

I have a message in a think function which is creating a trail when the player holds certain buttons, but the problem is sometimes there are drawn too many sprites at the same time, resulting in low fps

Is there any way I can limit the number of sprites drawn at once per player excluding reducing their life to 1? I want to create a flame like trail

PHP Code:
        entity_get_vector(entEV_VEC_originOrigin)
        
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYOrigin0)
        
write_byte(TE_BEAMFOLLOW)
        
write_short(id)
        
write_short(SprSmoke)
        
write_byte(1)
        
write_byte(7)
        
write_byte(128)
        
write_byte(32)
        
write_byte(8)
        
write_byte(192)
        
message_end() 
__________________

Last edited by Depresie; 01-16-2016 at 18:30.
Depresie 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 09:33.


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