Raised This Month: $12 Target: $400
 3% 

[TUT] Custom Weapon Hud Sprites + Slot Redirection


Post New Thread Reply   
 
Thread Tools Display Modes
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 01-14-2012 , 02:28   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #31

Can you make it possible to replace the "deathmsg" event on the upper-right side of the screen? where it shows whom you killed and who are killed, by changing its "weapon spr"?

ex:

jc980 WEAPON_SPRITE bot01
__________________
jc980 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-14-2012 , 04:16   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #32

Quote:
Originally Posted by dias View Post
Does it work on client-side ?
Not sure to understand your question. Hud is client-side.

Quote:
Originally Posted by jc980 View Post
Can you make it possible to replace the "deathmsg" event on the upper-right side of the screen? where it shows whom you killed and who are killed, by changing its "weapon spr"?

ex:

jc980 WEAPON_SPRITE bot01
If it was possible, I would have wrote it in my tutorial. Such sprites has to be defined in hud.txt. But there is no easy way like for the weapon hud. You can consider as impossible.
__________________
Arkshine is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 01-27-2012 , 08:34   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #33

Hi. Can anybody to explain what's line to change to use for example 'Law Grenade' or 'Gas mask' ?

Last edited by dFF; 01-27-2012 at 08:34.
dFF is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-27-2012 , 08:55   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #34

If you have read the tutorial, you should have seen the height of each weapon in this sprite is 45. So, all you have to do is to change shift x.

0 - Flare
45 - CS Grenade
90 - Melee
135 - Law Grenade
190 - Gaz mask
__________________
Arkshine is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 01-30-2012 , 02:36   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #35

Thanks for reply.

Edit :: Problem solved! The crash is caused by another part of my code.
For now everything is ok with You're tutorial. After some tests I will see what will be happen.

Last edited by dFF; 02-09-2012 at 10:48.
dFF is offline
DeviLzRO
Junior Member
Join Date: Feb 2012
Location: Romania
Old 02-03-2012 , 15:54   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #36

Good job man, very helpful !
DeviLzRO is offline
Send a message via Yahoo to DeviLzRO Send a message via Skype™ to DeviLzRO
t3hNox
Senior Member
Join Date: Oct 2009
Old 02-06-2012 , 17:28   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #37

Very useful tutorial. Looking forward to seeing API
t3hNox is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 02-09-2012 , 11:20   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #38

Awesome!
And without Orphue, nice
__________________
Retired.
Xalus is offline
dias
BANNED
Join Date: Jul 2009
Location: South Vietnam
Old 03-06-2012 , 07:12   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #39

what about multi custom weapon hud ?
Example: In Slot 0 (Primary Weapon Slot) I have Mp5 and P90. So how to make custom hud for that two. I try, and fail
dias is offline
Send a message via Yahoo to dias Send a message via Skype™ to dias
Carlen20
Senior Member
Join Date: Jun 2011
Location: Sweden
Old 03-06-2012 , 08:47   Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
Reply With Quote #40

Gj!
__________________
Nothing are impossible if you just use your mind!

Quote:
Originally Posted by NiceGuyx View Post
P.S: i'm the best coder here

Carlen20 is offline
Reply


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 15:30.


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