Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WeaponInfo_t C_BaseWeapon::GetWeaponInfo ()
- {
- typedef DWORD_PTR (__thiscall* GetWeaponDataFn)( void* );
- DWORD_PTR WeaponData = GetMethod<GetWeaponDataFn> ( this, 430 )( this );
- WeaponInfo_t Slot;
- Slot.m_flArmorRatio = *(float*)( WeaponData + 0x994 );
- Slot.m_flMaxRange = *(float*)( WeaponData + 0x9B0 );
- Slot.m_flPenetrationPower = *(float*)( WeaponData + 0x9A8 );
- Slot.m_flRangeModifier = *(float*)( WeaponData + 0x9B4 );
- Slot.m_iDamage = *(int*)( WeaponData + 0x9AC );
- Slot.m_iWeaponID = GetWeaponID ();
- return Slot;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement