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
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-06-2014 , 15:15   Re: Problem with Ham_Item_Deploy and _cl_autowepswitch 1
Reply With Quote #1

You need to know that pev_owner is filled with the owner id when AttachToPlayer is called, by using the offset it's faster cause it's filled when AddToPlayer get called, which happen earlier than AttachToPlayer
__________________
HamletEagle is offline
Aydeev
Junior Member
Join Date: Oct 2014
Old 11-06-2014 , 20:21   Re: Problem with Ham_Item_Deploy and _cl_autowepswitch 1
Reply With Quote #2

Quote:
Originally Posted by HamletEagle View Post
You need to know that pev_owner is filled with the owner id when AttachToPlayer is called, by using the offset it's faster cause it's filled when AddToPlayer get called, which happen earlier than AttachToPlayer
My mistake was only looking at CBasePlayerWeapon, if I had realized CBasePlayerItem was worth checking out too I might have found m_pPlayer myself

Thanks
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