Raised This Month: $ Target: $400
 0% 

How insert 3 sprites in a TE_FIREFIELD plugin?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
z0mbiland
Senior Member
Join Date: Jan 2013
Old 01-24-2014 , 19:55   How insert 3 sprites in a TE_FIREFIELD plugin?
Reply With Quote #1

I have 3 sprites. How can insert all to appear in the same origin?
I must create 3 TE_FIREFIELD for each sprite? Exist another way? Need an example!

PHP Code:
stock Create_TE_FIREFIELDorigin[3], radiusiSpritecountflagsduration )
{
    
message_beginMSG_BROADCAST,SVC_TEMPENTITY)
    
write_byte(TE_FIREFIELD)
    
write_coord(origin[0])
    
write_coord(origin[1])
    
write_coord(origin[2])
    
write_short(radius)
    
write_short(iSprite)
    
write_byte(count)
    
write_byte(flags)
    
write_byte(duration)
    
message_end()

// Flags
//#define TEFIRE_FLAG_ALLFLOAT        1        // All sprites will drift upwards as they animate
//#define TEFIRE_FLAG_SOMEFLOAT       2        // Some of the sprites will drift upwards. (50% chance)
//#define TEFIRE_FLAG_LOOP            4        // If set, sprite plays at 15 fps, otherwise plays at whatever rate stretches the animation over the sprite's duration.
//#define TEFIRE_FLAG_ALPHA           8        // If set, sprite is rendered alpha blended at 50% else, opaque
//#define TEFIRE_FLAG_PLANAR          16       // If set, all fire sprites have same initial Z instead of randomly filling a cube. 


Last edited by z0mbiland; 01-24-2014 at 19:56.
z0mbiland is offline
Reply


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 10:11.


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