K so here's what I've thrown down a couple of months ago for my basic thingy.
Does anyone have an up to date list of offsets and addresses? OllyDBG is trolling me.
I'm trying to get m_gravity.
Code:
class ProjectileEntityData
: public GamePhysicsEntityData // 0x00
{
public:
PAD(0xC); // 0x64
INT m_hitReactionWeaponType; // 0x70
FLOAT m_initialSpeed; // 0x74
FLOAT m_timeToLive; // 0x78
FLOAT m_initMeshHideTime; // 0x7C
FLOAT m_visualConvergeDistance; // 0x80
FLOAT m_unknown; // 0x84
MaterialContainerPair* m_materialPair; // 0x88
DataContainer* m_explosion; // 0x8C
WeaponSuppressionData* m_suppressionData; // 0x90
String m_ammunitionType; // 0x94
CHAR m_serverProjectileDisabled; // 0x98
CHAR m_detonateOnTimeout; // 0x99
PAD(0x32); // 0x9A
FLOAT m_gravity;
}; // 0x9C
And yes I made it positive.
Code:
float m_grav = pWepFire->m_data->m_primaryFire->m_shot.m_projectileData->m_gravity;
m_grav = m_grav * -1.f;
But it doesn't seem to work.
And is 0x2343A80 the current offset for input? Maybe that's the problem.