-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RG_CBasePlayer_GiveNamedItem cannot be hooked #271
Comments
Because game often uses "CBasePlayer::GiveNamedItemEx" instead. Resulting original "GiveNamedItem" not called as much as you expected. But it is still called in some buy events. |
I expected to work with rg_give_item native call. Should not work with that? |
This native uses "GiveNamedItemEx" too, that's why, and yes, it is annoying. |
Since we don't know what they want to do in the future. Maybe implementing a RG_CBasePlayer_GiveNamedItemEx hook should be the best option to keep it separated from the original. What do you think @StevenKal ? Can we make it and put in into a merge request? For my own purpose I will definitely code it (if possibble). I just want to know your opinion... Should we tag someone from the active developers to make the decision? |
Sorry I do not work for that "AMXX" thing, or except for money at worst. I know this reapi here is for it, I just take a ride to it sometimes because I follow it, but not more. |
cuz rehlds/ReGameDLL_CS#470 ? |
As I can see none of this events (pre or post) can be hooked. Anyone else experienced this?
I mean won't be tiggered on GiveNamedItem calls.
The text was updated successfully, but these errors were encountered: