Hello everyone,
I'm trying to make mediguns in my server heal enemy players, too. So far i inspected the Source 2007 code and found out that
CWeaponMedigun::AllowedToHealTarget and
CMedigunFilter::ShouldHitEntity check team numbers. So far i found the
CWeaponMedigun::AllowedToHealTarget function in both the Windows and Linux binary and tested with making
CWeaponMedigun::AllowedToHealTarget always return true(with debugger), but healing enemies not working. Then I tried to find
CMedigunFilter::ShouldHitEntity function, but i can only find the function inside the Linux binary, but not in Windows.
So the questions is: How to find
CMedigunFilter::ShouldHitEntity function inside the Windows binary
and how to properly hook it? It's virtual function, but how to find the object(or not possible, since it's object on stack?)?
Also please, explain how you find the function in the Windows binary
Thanks.
__________________