View Single Post
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 10-28-2014 , 18:24   Re: Hooking BaseEntity Functions in CSGO
Reply With Quote #12

Quote:
Originally Posted by spidershift View Post
Finally, do you think perhaps any of these issues we're running into are because of CSWeaponID and WeaponSound_t? I had to manually copy their definitions into my headers because I could not find public definitions anywhere, but they are just enums, so shouldn't they technically be no different than (and could even be replaced by) an int instead? Or could they be the arguments contributing to these crashes?
Yup they'll be replaced by int's(most-likely).
I just spotted a mistake in my snippet(I moved iPlayerId to a wrong register, esi instead of ecx) - I updated my post. Please try it again.
Anyway, if that doesn't work I'll setup a CS:GO server because this made me curious

Last edited by donrevan; 10-28-2014 at 18:24.
donrevan is offline