Set equiped weapon glow
Hello.
I saw a server that have glow in player's equiped weapons, you can view other players with glow only in the weapon (not entire body). How can I do that? As I know set_user_rendering is only for players.... |
Re: Set equiped weapon glow
Quote:
|
Re: Set equiped weapon glow
Quote:
|
Re: Set equiped weapon glow
its very easy. register clcmd and in function get players weapon (first check if is alive), to get players' weapon you need privatedata offset of active item (i think its 373) and get it
Code:
#define m_pActiveItem 373[PS: I dont think if this will work lul] [Cause weapon has not its model and you see players weaponmodel which is players variable and that means you must set rendering on player] |
Re: Set equiped weapon glow
Quote:
|
Re: Set equiped weapon glow
Quote:
But anyway i think amxx automatically sets pdata for linux/windows. |
Re: Set equiped weapon glow
No, you can't set glow via modules in player weapon view model. You will need to add a glowed sub-model in v_model of the weapon and after do some trick with SVC_WEAPONANIM.
m_pActiveItem is 373 and the diff for linux is 5, so basically Code:
|
Re: Set equiped weapon glow
Quote:
|
Re: Set equiped weapon glow
Quote:
|
Re: Set equiped weapon glow
Any way?
|
| All times are GMT -4. The time now is 12:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.