Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. //=================================================
  2. void C_MyWeaponInfo::GetWeaponInfo(C_MyEntity *localPlayer, C_MyWeapon *weapon)
  3. {
  4. DWORD infotable = GetCSWpnData(weapon);
  5.  
  6. m_current.m_owner = localPlayer;
  7. m_current.m_weapon = weapon;
  8.  
  9. m_current.m_penetration = *(float*)(infotable + 0x814);
  10. m_current.m_damage = *(int*)(infotable + 0x818);
  11. m_current.m_maxRange = *(float*)(infotable + 0x81C);
  12. m_current.m_rangeModifier = *(float*)(infotable + 0x820);
  13. m_current.m_bulletsPerShot = *(int*)(infotable + 0x824);
  14. m_current.m_cycleTime = *(float*)(infotable + 0x828);
  15. m_current.m_bulletType = *(int*)(infotable + 0x6C0);
  16. m_current.m_weaponArmorRatio = *(float*)(infotable + 0x800);
  17.  
  18.  
  19. m_current.m_id = weapon->GetID();
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement