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 **)(int, int))(*(_DWORD *)(victim + 1136) + 260))(victim, concEnt);
I mainly want to figure out how to find the function/variable that belongs to an offset.