Raised This Month: $ Target: $400
 0% 

Help With Sprites And Origin stuff!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
watch
Senior Member
Join Date: Sep 2005
Old 12-24-2005 , 05:49  
Reply With Quote #5

aha your trying to make the sprite stay above the player, heres some example code from my speedrun plugin, i made it so a little clock with the hand that moves round appears abover their heads
Code:
new SpeedSprite //global << public plugin_precache()     SpeedSprite = precache_model("sprites/fm/speedrunclock.spr") // then to attach the sprite to a player message_begin(MSG_ALL,SVC_TEMPENTITY) write_byte(124) write_byte(id) // attach to player write_coord(65) // offset on the Z axis write_short(SpeedSprite) //sprite write_short(32767) // time, i believe this is the max time you can use message_end() // and if you want to remove it message_begin(MSG_ALL,SVC_TEMPENTITY) write_byte(125) write_byte(id) message_end()

with this you cant render sprites additivly aka the black bits will show. If you want to create transparency you have to create a sprite and render it alphatest, where the last colour in the pallete is the transparency colour. usually pure blue
__________________
Code:
#include <amusing_small_signiture>
watch is offline
 



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 16:12.


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