Raised This Month: $ Target: $400
 0% 

[SOLVED] Sprites


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 10-27-2011 , 14:41   [SOLVED] Sprites
Reply With Quote #1

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
__________________

Last edited by mabaclu; 10-29-2011 at 10:00. Reason: Solved
mabaclu 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 14:27.


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