[SNIPPET] CS:S On-Player Weapons Hide/Show
This has come up a couple times before and once again recently in irc. I don't recall there ever being an answer posted, so, this is how you can hide/show the on-player weapons/nades in CS:S
There is a netprop, m_iAddonBits, that controls which items to show on a player. It seems that entities are then created for them clientside and attached, which is why people always had trouble finding them serverside. m_iAddonBits gets reset on every PostThink so the PostThinkPost hook in SDK Hooks is needed. Code:
Code used to test: Code:
Edit: As blodia has pointed out in his post linked below, you can manually set values for the primary and secondary weapon addons with the following: Code:
Here are a full list of CS:S weapon ids: Code:
|
Re: [SNIPPET] CS:S On-Player Weapons Hide/Show
i posted similar info here http://forums.alliedmods.net/showpos...9&postcount=14.
i couldn't be bothered to code a snippet so good job lol. |
Re: [SNIPPET] CS:S On-Player Weapons Hide/Show
It's Only Support SDKHooks??
I have tried I used Hooks in Sourcemod1.1, And it was no effect. :cry: |
Re: [SNIPPET] CS:S On-Player Weapons Hide/Show
Quote:
|
Re: [SNIPPET] CS:S On-Player Weapons Hide/Show
PHP Code:
|
Re: [SNIPPET] CS:S On-Player Weapons Hide/Show
Quote:
|
Re: [SNIPPET] CS:S On-Player Weapons Hide/Show
it looks like it WORKS! iv tried so many times before....
will be integrated in to war3source invis system video http://www.youtube.com/watch?v=7aFZT...el_video_title |
Re: [SNIPPET] CS:S On-Player Weapons Hide/Show
How do to a player with the flag B saw the gun opponents?
|
All times are GMT -4. The time now is 05:08. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.