-
Автор темы
- #1
Все работает вместе 1 пт выстреливает 10,20,30,40,50,60,70 -- но урон не проходит по ботам / игрокам. Что это может быть? в чем проблемка)
Код:
//switch (Fun.damagex10) {
//case 0: Weapons->m_pWeaponSpecific()->m_pWeaponExtraOne()->Damage(1); break;
//case 1: Weapons->m_pWeaponSpecific()->m_pWeaponExtraOne()->Damage(10); break;
//case 2: Weapons->m_pWeaponSpecific()->m_pWeaponExtraOne()->Damage(20); break;
//case 3: Weapons->m_pWeaponSpecific()->m_pWeaponExtraOne()->Damage(30); break;
//case 4: Weapons->m_pWeaponSpecific()->m_pWeaponExtraOne()->Damage(40); break;
//case 5: Weapons->m_pWeaponSpecific()->m_pWeaponExtraOne()->Damage(50); break;
//case 6: Weapons->m_pWeaponSpecific()->m_pWeaponExtraOne()->Damage(60); break;
//case 7: Weapons->m_pWeaponSpecific()->m_pWeaponExtraOne()->Damage(70); break;
//}
Код:
class IWeaponSpecific
{
public:
auto m_pWeaponExtraOne() { return *(IWeaponExtraOne * *)((DWORD)this + 0x24); }
auto m_pWeaponExtraTwo() { return *(IWeaponExtraTwo * *)((DWORD)this + 0x30); }
auto m_pWeaponExtraThree() { return *(IWeaponExtraThree * *)((DWORD)this + 0x34); }
void Damage(int iValue) { *(__int32*)((DWORD)this + 0x8) = iValue; }
VOID SetRecoilMult(INT8 iValue) { *(INT8*)((DWORD)this + V_SetRecoilMult) = iValue; }
VOID Shutter(INT8 iValue) { *(INT8*)((DWORD)this + V_Shutter) = iValue; }
};
Код:
class IWeaponExtraOne
{
public:
void Damage(int iValue) { *(__int32*)((DWORD)this + 0x8) = iValue; }
};