AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Changing the ammotype icon in HUD (https://forums.alliedmods.net/showthread.php?t=64194)

Sputnik53 12-10-2007 11:28

Changing the ammotype icon in HUD
 
1 Attachment(s)
Picture attached (sorry for low quality)
See the down right corner? Is there a way I can change the icon to something else? I don't mean anything custom I mean for example, some other ammotype icon or something?

purple_pixie 12-10-2007 11:43

Re: Changing the ammotype icon in HUD
 
Pretty sure it's impossible.

I say this only because WeaponMod seems to always show the 556 round.
And if you can change anything about a weapon, WeaponMod would do it ;-)

Sputnik53 12-10-2007 12:44

Re: Changing the ammotype icon in HUD
 
Quote:

Originally Posted by purple_pixie (Post 561829)
Pretty sure it's impossible.

I say this only because WeaponMod seems to always show the 556 round.
And if you can change anything about a weapon, WeaponMod would do it ;-)

If you say so.

Well can anyone tell me how to change the damagetype icon then? (hazardous, freeze, burn etc. icon)

Sputnik53 12-11-2007 23:54

Re: Changing the ammotype icon in HUD
 
Anyone has any ideas? I've seen it done in some of the WC3 mods (for the ultimate, it showed a skull and a lightning). :/

Emp` 12-12-2007 00:19

Re: Changing the ammotype icon in HUD
 
The first request is possible. The one weapon mod that was unapproved did it (sorry, the reason it was unapproved was no source code, so we can't tell you how they managed it)


for the status icons on the left side of the screen:
Code:

        message_begin(MSG_ONE, get_user_msgid("StatusIcon"), _, id)
        write_byte(status) //status
        write_string("rescue") //sprite name
        write_byte(0) //red
        write_byte(160) //green
        write_byte(0) //blue
        message_end()


Sputnik53 12-12-2007 08:58

Re: Changing the ammotype icon in HUD
 
Ok how do I set it back to what it was (off?)?

ConnorMcLeod 12-12-2007 09:18

Re: Changing the ammotype icon in HUD
 
write_byte(status) //status

0 = off (then color parameters are optional)

http://wiki.amxmodx.org/index.php/Ha...nts#StatusIcon

Wilson [29th ID] 12-12-2007 09:28

Re: Changing the ammotype icon in HUD
 
Question #1:
Send a CurWeapon message with the current ammunition and a different weapon. This will alter your hud accordingly (ammo, crosshair, etc)

Question #2:
Moooo

Sputnik53 12-12-2007 11:05

Re: Changing the ammotype icon in HUD
 
Quote:

Originally Posted by Wilson [29th ID] (Post 562553)
Send a CurWeapon message with the current ammunition and a different weapon. This will alter your hud accordingly (ammo, crosshair, etc)

I actually don't want to set another weapons icon there I wanna set for example, dmg shock there.

purple_pixie 12-12-2007 11:09

Re: Changing the ammotype icon in HUD
 
I'm fairly sure that is impossible.

But hey, I said that about the last thing :-D


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

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