I need to make some sprites appear as checkpoints in my map. I have created a small green sprite file and I wrote the following code:
Code:
public checkpoint_sprite(Float:fOrigin[3])
{
new origin[3]
origin[0] = floatround(fOrigin[0])
origin[1] = floatround(fOrigin[1])
origin[2] = floatround(fOrigin[2])
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_GLOWSPRITE)
write_coord(origin[0])
write_coord(origin[1])
write_coord(origin[2])
write_short(exploSpr)
write_byte(99999999999999999999)
write_byte(30)
write_byte(100)
message_end()
}
The problem is that the sprite is always facing the player and sometimes it disappears. Also, if possible, I'd like some transparency gradient (less transparent at the bottom, totally transparent at the top).
Thanks
__________________