Raised This Month: $ Target: $400
 0% 

Sprite Draw Above Player.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TaRgEt*TuRkEy
Member
Join Date: Oct 2004
Old 01-18-2005 , 02:13   Sprite Draw Above Player.
Reply With Quote #1

I am wanting to know how to draw a sprite over a specfied user's head, but I am not sure how to start. I know how to precache, but lost everywhere else. If somebody could show me a plugin that works with drawing sprites around users, please point me to the plugin, or if you have some short code to help me, post that too. Thanks.

BTW - You'll be helping my next plugin .
__________________
TaRgEt*TuRkEy is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 01-18-2005 , 07:04  
Reply With Quote #2

Maybe you could use the TE_PLAYERATTACHMENT message.. More info on it is in HLSdk somewhere in const.h. Or just search the forum
__________________
hello, i am pm
PM is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 01-18-2005 , 18:20  
Reply With Quote #3

I have a released plugin that does this Download rip our the parts of the source you want
__________________
Github archive for plugins, the repos for the other c++ projects are there to.
EKS is offline
TaRgEt*TuRkEy
Member
Join Date: Oct 2004
Old 01-18-2005 , 19:37  
Reply With Quote #4

Alright, I think I figured it out, but for some reason it only sometimes works, and when it does, sometimes it is a vest model over the players head, or sometimes a tire model but shooting way out, really werid stuff. I got something like this. Both the player ids work (PlayerNum...) because I have them doing other things too, so that can't be the problem.

Code:
message_begin(MSG_ALL,SVC_TEMPENTITY)         write_byte(124)         write_byte(PlayerNum1_Random)         write_coord(65)         write_short(sprite)         write_short(600)         message_end() message_begin(MSG_ALL,SVC_TEMPENTITY)         write_byte(124)         write_byte(PlayerNum2_Random)         write_coord(65)         write_short(sprite)         write_short(600)         message_end()

I also precache the sprite.

Code:
public plugin_precache(){     sprite = precache_model("sprites/dead_fire.spr") }
__________________
TaRgEt*TuRkEy is offline
TaRgEt*TuRkEy
Member
Join Date: Oct 2004
Old 01-21-2005 , 01:30  
Reply With Quote #5

So nobody has had the problem with this thing displaying like dead corpses, gun models, armor vests above players heads? This is weird shit lol.
__________________
TaRgEt*TuRkEy is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 01-21-2005 , 15:57  
Reply With Quote #6

What mod is this?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TaRgEt*TuRkEy
Member
Join Date: Oct 2004
Old 01-21-2005 , 17:44  
Reply With Quote #7

Counterstrike. Sometimes it displays my sprite now though, but other times, it may show nothing, but like I said, sometimes crazy models from all over counterstrike. It's weird.
__________________
TaRgEt*TuRkEy is offline
Reply



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:57.


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