CBasePlayerItem help
Working on a Metamod plugin, I am hooking AddPlayerItem in the same way Hamsandwich does.
The function takes three arguments as below Code:
BOOL __fastcall HookAddPlayerItem(void *pthis, int i, CBasePlayerItem *pItem) I have attempted to include HLTypeConversion.h and use cbase_to_int but the returned integer does not make sense, while cbase_to_edict returns the edict pointer but I am unable to retrieve any PvPrivateData, server crashes :crab:. Any help is appreciated. |
Re: CBasePlayerItem help
pItem it's a class and you should understand it's hierarchy.
Check hlsdk how it work. Here's how it's related to parent classes. Quote:
https://forums.alliedmods.net/showthread.php?t=173964 |
All times are GMT -4. The time now is 13:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.