AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Sprite in hud (https://forums.alliedmods.net/showthread.php?t=2238)

werdig 05-30-2004 08:54

Sprite in hud
 
How draw sprites in hud? i try find it in HL SDK, but nothing....

RPRaiden 05-30-2004 09:24

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

werdig 05-30-2004 10:26

Yes plz, if u have url post it plz, if not send it to [email protected]

RPRaiden 05-30-2004 11:31

Rather than giving you the 1 I had ill just give you these.
http://hlci.thewavelength.net/conten...udcltuts&sort=

werdig 05-30-2004 14:13

Sor but what article about drawning sprite on hud :?: :?: :?:

RPRaiden 05-30-2004 14:24

they are drawn on via code.

IceMouse[WrG] 05-30-2004 14:24

HUD sprites are drawn client-side

ts2do 05-31-2004 23:30

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") }

werdig 06-01-2004 03:25

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 ???

RPRaiden 06-01-2004 15:06

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.


All times are GMT -4. The time now is 07:02.

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