View Single Post
hlstriker
Green Gaben
Join Date: Mar 2006
Location: OH-IO!
Old 04-07-2011 , 21:14   Re: Orpheu: Searching for functions in libraries
Reply With Quote #29

I decompiled the .so for TFC and I'm trying to understand a function.

In the code below how would I know that victim + 32 is the players X velocity? I'm guessing 32 is an offset but where would I look to figure out what this offset belongs to?
PHP Code:
velocity1 = *(float *)(*(_DWORD *)victim 32) * 0.3300000131130219;
velocity2 = *(float *)(*(_DWORD *)victim 36) * 0.3300000131130219;
velocity3 0.3300000131130219 * *(float *)(*(_DWORD *)victim 40); 
In this part of the code I'm guessing it's a function being called but I'm not sure what's going on. Can someone explain to me?
PHP Code:
(*(void (__cdecl **)(intint))(*(_DWORD *)(victim 1136) + 260))(victimconcEnt); 
I mainly want to figure out how to find the function/variable that belongs to an offset.
hlstriker is offline