AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   [TUT] Custom Weapon Hud Sprites + Slot Redirection (https://forums.alliedmods.net/showthread.php?t=175632)

kiki33hun 01-07-2012 05:03

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Good job

pacheco 01-07-2012 10:24

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Awesome! Nice Arkshine! Thanks

liinuus 01-07-2012 12:42

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Great Job, will be very usefull :D

nikhilgupta345 01-07-2012 13:35

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Nice. Didn't think this was possible.

m0skVi4a 01-07-2012 15:18

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Quote:

Originally Posted by nikhilgupta345 (Post 1627474)
Nice. Didn't think this was possible.

I also :shock:
Thanks

hleV 01-07-2012 17:25

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Nice, but are you completely sure that you can only replace the already made weapons and not create new ones? In ESF (which is a mod and possibly uses some different weapon system) you can actually create new weapons by registering a command (like "weapon_new") to hook when the weapon is selected (or force the player to select it), writing certain messages and setting weapon's new ID (if the last ID for ESF is like 34, then for the new weapon it would be 35) in certain messages and of course setting up the weapon_new.txt file.

Destro- 01-07-2012 17:55

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Today: -1
within 2 month:+10
;(

pd:the truth +10 :|.

mabaclu 01-07-2012 17:58

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Can this be used to place a sprite in the player's screen? That way we could show an image without editing hud.txt

NiHiLaNTh 01-07-2012 18:15

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Arkshine, I think that knife can be placed in first slot. I passed SlotID as 0 and NumberInSlot 1 and it worked, while setting both to 0 didnt drawed sprite in HUD.

Edit. Is it possible to change crosshair ?
I mean I passed it in .txt file and precached the sprite.But the original CS crosshair appeared. I was trying to hide crosshair with HideWeapon event but I failed.

Edit2. Maybe you explain what each parameter does? Especially, someone maybe confused with flags parameter(since you can add some flags to the weapon).

bboygrun 01-07-2012 20:03

Re: [TUT] Custom Weapon Hud Sprites + Slot Redirection
 
Quote:

Originally Posted by NiHiLaNTh (Post 1627635)
Edit. Is it possible to change crosshair ?
I mean I passed it in .txt file and precached the sprite.But the original CS crosshair appeared. I was trying to hide crosshair with HideWeapon event but I failed.

I saw that the crosshair can be changed when you zoom with a weapon ( Awp, scout ... ) but it doesn't work like you if i don't zoom or if i have a weapon without a zoom.


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

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