Raised This Month: $ Target: $400
 0% 

Problem with Ham_Item_Deploy and _cl_autowepswitch 1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fr33m@n
Veteran Member
Join Date: May 2008
Location: France Marne
Old 11-18-2014 , 12:32   Re: Problem with Ham_Item_Deploy and _cl_autowepswitch 1
Reply With Quote #1

Quote:
Originally Posted by Aydeev View Post
What a stupid mistake to make... I was only looking at the get_pdata_cbase offset and completely forgot the other one
you should use const for your offset, it avoid this kind of common error.
like
const XO_WEAPON = 4
const XO_PLAYER = 5

or more talkative

const EXTRA_OFFSET_WEAPON = 4
const EXTRA_OFFSET_PLAYER = 5

Even for offset. what the hell is 46. no one know...
Fr33m@n is offline
Aydeev
Junior Member
Join Date: Oct 2014
Old 11-17-2014 , 12:21   Re: Problem with Ham_Item_Deploy and _cl_autowepswitch 1
Reply With Quote #2

Ok I'm afraid I have to bother you guys once again:

Code from #8 (with corrected offset) works for all weapons but for the scout and the awp.

I guess it has something to do with them being the only one shot snipers and somehow m_flNextPrimaryAttack has no effect on them or is being updated automatically.

Can someone think of a solution for that?

Thank you!
Aydeev 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 17:44.


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