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(ent, EV_VEC_origin, Origin)
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, Origin, 0)
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()
__________________