Raised This Month: $ Target: $400
 0% 

Sprite in hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
werdig
Junior Member
Join Date: May 2004
Old 05-30-2004 , 08:54   Sprite in hud
Reply With Quote #1

How draw sprites in hud? i try find it in HL SDK, but nothing....
werdig is offline
Send a message via ICQ to werdig
RPRaiden
Member
Join Date: Apr 2004
Location: UK
Old 05-30-2004 , 09:24  
Reply With Quote #2

Hud sprites are drawn on like boxes. They are hard coded. I can give you a Hard Coded Hud Sprite Tutorial for your reference if you wish
__________________
RPRaiden is offline
Send a message via ICQ to RPRaiden Send a message via AIM to RPRaiden Send a message via MSN to RPRaiden Send a message via Yahoo to RPRaiden
werdig
Junior Member
Join Date: May 2004
Old 05-30-2004 , 10:26  
Reply With Quote #3

Yes plz, if u have url post it plz, if not send it to [email protected]
werdig is offline
Send a message via ICQ to werdig
RPRaiden
Member
Join Date: Apr 2004
Location: UK
Old 05-30-2004 , 11:31  
Reply With Quote #4

Rather than giving you the 1 I had ill just give you these.
http://hlci.thewavelength.net/conten...udcltuts&sort=
__________________
RPRaiden is offline
Send a message via ICQ to RPRaiden Send a message via AIM to RPRaiden Send a message via MSN to RPRaiden Send a message via Yahoo to RPRaiden
werdig
Junior Member
Join Date: May 2004
Old 05-30-2004 , 14:13  
Reply With Quote #5

Sor but what article about drawning sprite on hud
werdig is offline
Send a message via ICQ to werdig
RPRaiden
Member
Join Date: Apr 2004
Location: UK
Old 05-30-2004 , 14:24  
Reply With Quote #6

they are drawn on via code.
__________________
RPRaiden is offline
Send a message via ICQ to RPRaiden Send a message via AIM to RPRaiden Send a message via MSN to RPRaiden Send a message via Yahoo to RPRaiden
IceMouse[WrG]
Senior Member
Join Date: Mar 2004
Old 05-30-2004 , 14:24  
Reply With Quote #7

HUD sprites are drawn client-side
IceMouse[WrG] is offline
Send a message via AIM to IceMouse[WrG] Send a message via MSN to IceMouse[WrG] Send a message via Yahoo to IceMouse[WrG]
ts2do
Senior Member
Join Date: Mar 2004
Old 05-31-2004 , 23:30  
Reply With Quote #8

maybe u could do something like such
Code:
#include<amxmodx> new hudsprite public makehudsprite(id){     message_begin(MSG_ONE,SVC_TEMPENTITY,{0,0,0},id)     write_short(TE_PLAYERATTACHMENT)     write_entity(id)     write_coord(32)     write_short(hudsprite)     write_short(100)     message_end() } public plugin_precache(){     hudsprite=precache_model("sprites/SPRITENAME.spr") }
__________________
ts2do is offline
Send a message via AIM to ts2do
werdig
Junior Member
Join Date: May 2004
Old 06-01-2004 , 03:25  
Reply With Quote #9

I copy this from HL SDK:
Code:
#define TE_PLAYERATTACHMENT			124 // attaches a TENT to a player (this is a high-priority tent)
I think it need for create something like glow or image over player when he use radio, isn't it ???
werdig is offline
Send a message via ICQ to werdig
RPRaiden
Member
Join Date: Apr 2004
Location: UK
Old 06-01-2004 , 15:06  
Reply With Quote #10

Why bother using

Code:
#include<amxmodx> new hudsprite public makehudsprite(id){     message_begin(MSG_ONE,SVC_TEMPENTITY,{0,0,0},id)     write_short(TE_PLAYERATTACHMENT)     write_entity(id)     write_coord(32)     write_short(hudsprite)     write_short(100)     message_end() } public plugin_precache(){     hudsprite=precache_model("sprites/SPRITENAME.spr") }

If you cant even get a sprite to play longer than 1 second!!! I've had this problem for almost a week now.
__________________
RPRaiden is offline
Send a message via ICQ to RPRaiden Send a message via AIM to RPRaiden Send a message via MSN to RPRaiden Send a message via Yahoo to RPRaiden
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 07:02.


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