View Single Post
donrevan
AlliedModders Donor
Join Date: Jul 2010
Old 03-13-2016 , 07:32   Re: Correct way to handle Vectors
Reply With Quote #3

You can try calling it via a typedef to see if it is working.
Code:
typedef Vector (__thiscall *tGetShootPos)(CBasePlayer*);
tGetShootPos shootPos = (tGetShootPos)addr;
Vector vec = shootPos(pPlayer);
Isn't Weapon_ShootPosition virtual? You don't need a signature scan to call it. Maybe you're accidently calling the wrong function(wrong signature?)

Last edited by donrevan; 03-13-2016 at 07:40.
donrevan is offline