CS:GO Glock Right-Click Hook?
Hello, I am wondering if there is a way to hook the alternate firing of a glock (where it switches from auto to burst). Would weapon_zoom or weapon_zoom_rifle work?
|
Re: CS:GO Glock Right-Click Hook?
OnplayerRunCmd IN_ATTACK2 within the Buttons would be when a player holds the right mouse button.
|
Re: CS:GO Glock Right-Click Hook?
Quote:
|
Re: CS:GO Glock Right-Click Hook?
Quote:
|
Re: CS:GO Glock Right-Click Hook?
You first have to make sure the weapon entity is valid and then use GetEntityClassname to get the weapon's name to compare to.
|
Re: CS:GO Glock Right-Click Hook?
Using m_iItemDefinition is a bit quicker as you dont need to compare strings
|
Re: CS:GO Glock Right-Click Hook?
You could try hooking the sound. I think it's more efficient than checking in OnPlayerRunCmd().
|
| All times are GMT -4. The time now is 01:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.