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

[Disassembly] Cannot find offset of function that exists


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
th7nder
Senior Member
Join Date: Oct 2014
Old 08-01-2015 , 08:51   [Disassembly] Cannot find offset of function that exists
Reply With Quote #1

Hi guys! I want to make no-recoil, i've already handled client-side, it's perfect but i want to make server-side quite accurate to client, so i looked up some source code of cs go, and all i need to do is block function from class CBaseEntity -> ViewPunch, but i cannot find it's offset on newest linux binary of cs go. Function exists but when i dumped vtables of CBaseEntity and CBasePlayer offset was not there.



I'll be very grateful for help,
Best Regards,
th7nder
Attached Files
File Type: txt cbaseentity.txt (9.2 KB, 237 views)
File Type: txt cbaseplayer.txt (25.6 KB, 303 views)

Last edited by th7nder; 08-01-2015 at 08:51.
th7nder is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 08-01-2015 , 09:05   Re: [Disassembly] Cannot find offset of function that exists
Reply With Quote #2

it's non-virtual hun

edit: i'm guessing there are already easy methods to do no recoil so idk what point is anyway

Last edited by Miu; 08-01-2015 at 09:11.
Miu is offline
th7nder
Senior Member
Join Date: Oct 2014
Old 08-01-2015 , 09:16   Re: [Disassembly] Cannot find offset of function that exists
Reply With Quote #3

I haven't found that easy methods yet, believe me i tried some, if you know about them, i am more than willing to find out about them (;

// edit, also found these but dunno how to hook them


Last edited by th7nder; 08-01-2015 at 09:35.
th7nder is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 08-01-2015 , 16:39   Re: [Disassembly] Cannot find offset of function that exists
Reply With Quote #4

you hook non-virtual methods by getting the first bytes in a function and constructing a signature
Miu is offline
th7nder
Senior Member
Join Date: Oct 2014
Old 08-01-2015 , 17:15   Re: [Disassembly] Cannot find offset of function that exists
Reply With Quote #5

Could u gave any example of this? I found csgo_movement_unlocker which uses signatures, but it only patches bytes on 'em not hook and supercede.
th7nder is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 08-01-2015 , 17:26   Re: [Disassembly] Cannot find offset of function that exists
Reply With Quote #6

you look at the numerical instructions at the start of the function (i think ida has like byte view if you're using that), and write like, 10-20 bytes down
Miu is offline
th7nder
Senior Member
Join Date: Oct 2014
Old 08-01-2015 , 20:13   Re: [Disassembly] Cannot find offset of function that exists
Reply With Quote #7

Yeah it's possible, but i want to do it for player individually, not for whole server
th7nder is offline
Miu
Veteran Member
Join Date: Nov 2013
Old 08-01-2015 , 20:57   Re: [Disassembly] Cannot find offset of function that exists
Reply With Quote #8

so while it's possible to construct a new hooked vtable for a specific player or however you intended that to work, you can't do that for non-virtual methods since they're statically called. you need to just hook it normally and check if the CBaseEntity (the this pointer) in the hook is your player.
Miu is offline
psychonic

BAFFLED
Join Date: May 2008
Old 08-01-2015 , 21:03   Re: [Disassembly] Cannot find offset of function that exists
Reply With Quote #9

Use the SendProxy extension to hook changes to m_viewPunchAngle and reset it in the cases that you want.
psychonic is offline
th7nder
Senior Member
Join Date: Oct 2014
Old 08-01-2015 , 21:43   Re: [Disassembly] Cannot find offset of function that exists
Reply With Quote #10

Ok I figured out no-recoil while standing, but when moving it totally doesn't work cause m_viewPunchAngle's csgo version doesn't make a difference while moving, so i think need to hook CCSWeaponInfo::GetInaccuracyMove, but i don't think that it contains m_hOwnerEntity in itself, cause InaccuracyMove is taken from weapon scripts


@Miu, you're very helpful (;

Last edited by th7nder; 08-01-2015 at 21:44.
th7nder is offline
Reply



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 00:08.


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