Raised This Month: $51 Target: $400
 12% 

Solved [TF2] Medigun healing enemy players help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Naydef
Senior Member
Join Date: Dec 2015
Location: Doom Town, Nevada
Old 10-21-2018 , 10:47   [TF2] Medigun healing enemy players help
Reply With Quote #1

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.
__________________
My plugins:
*None for now*


Steam:
naydef

Last edited by Naydef; 10-22-2018 at 14:03.
Naydef is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:43.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode