Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //=================================================
- void C_MyWeaponInfo::GetWeaponInfo(C_MyEntity *localPlayer, C_MyWeapon *weapon)
- {
- DWORD infotable = GetCSWpnData(weapon);
- m_current.m_owner = localPlayer;
- m_current.m_weapon = weapon;
- m_current.m_penetration = *(float*)(infotable + 0x814);
- m_current.m_damage = *(int*)(infotable + 0x818);
- m_current.m_maxRange = *(float*)(infotable + 0x81C);
- m_current.m_rangeModifier = *(float*)(infotable + 0x820);
- m_current.m_bulletsPerShot = *(int*)(infotable + 0x824);
- m_current.m_cycleTime = *(float*)(infotable + 0x828);
- m_current.m_bulletType = *(int*)(infotable + 0x6C0);
- m_current.m_weaponArmorRatio = *(float*)(infotable + 0x800);
- m_current.m_id = weapon->GetID();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement