Raised This Month: $51 Target: $400
 12% 

How to switch client weapon?


Post New Thread Reply   
 
Thread Tools Display Modes
raydan
Senior Member
Join Date: Aug 2006
Old 05-23-2009 , 06:15   Re: How to switch client weapon?
Reply With Quote #11

220 CCSPlayer::Weapon_Switch(CBaseCombatWeapon*, int)
raydan is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 05-23-2009 , 06:18   Re: How to switch client weapon?
Reply With Quote #12

What is the differences between all of this solutions?
altex is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 05-24-2009 , 17:43   Re: How to switch client weapon?
Reply With Quote #13

They're all different methods. The one I posted is the best in my opinion, because it doesn't rely on SDKCalls or assuming the player has quick-switch enabled.

In the example I provided, Prop_Send is the data type of the offset. See this page for the documentation on SetEntPropEnt.
bl4nk is offline
altex
Veteran Member
Join Date: May 2009
Location: Russia
Old 05-25-2009 , 03:00   Re: How to switch client weapon?
Reply With Quote #14

Quote:
Originally Posted by bl4nk View Post
They're all different methods. The one I posted is the best in my opinion, because it doesn't rely on SDKCalls or assuming the player has quick-switch enabled.

In the example I provided, Prop_Send is the data type of the offset. See this page for the documentation on SetEntPropEnt.
Thanks!
altex is offline
Greyscale
SourceMod Plugin Approver
Join Date: Dec 2007
Location: strYoMommasHouse[you];
Old 12-26-2009 , 03:04   Re: How to switch client weapon?
Reply With Quote #15

Does anyone know if the client is "smart" enough to not send "use <weapon> if the weapon is already deployed?


Would be cool if the client sent "use m4a1" even if the m4a1 is already out. This way we can hook "use" and do something like multiple primary weapons.

EDIT: Doesn't work.
__________________

Last edited by Greyscale; 12-28-2009 at 22:35.
Greyscale is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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