Hey everone,
So i'm working with sprites and i need a bit of help. Up until now i've been using the TE_SPRAY message to send a bunch of sprites flying around.
PHP Code:
write_byte(TE_SPRAY)
write_coord(position.x)
write_coord(position.y)
write_coord(position.z)
write_coord(direction.x)
write_coord(direction.y)
write_coord(direction.z)
write_short(modelindex)
write_byte(count)
write_byte(speed)
write_byte(noise)
write_byte(rendermode)
I love the way these sprites bounce around, but i dont have any control over their duration and they dont register touch. I want to create a custom sprite entity that i can hook touch to, but i would like to send it flying like the TE_SPRAY message does. Anyone have an idea how i can achieve that bounce effect?
I've tried a bunch of different movetypes but they all pretty much got stuck to the wall, except for the movetype_bounce which sent it flying chaotically, bouncing all over the place...
Any ideas?