private void SetCharacterWeapons() { if (_characterWeapon.EquipedWeapon == 0) { _characterWeapon.CurrentWeapon = (int)_Weapon1.GunVal; _characterWeapon.SecondWeapon = (int)_Weapon2.GunVal; _characterWeapon.CmdSyncWeaponStates((int)_Weapon1.GunVal, (int)_Weapon2.GunVal); _characterWeapon.SightNumberCurrentWeapon = (int)_Weapon1.ScopeVal; _characterWeapon.SightNumberSecondWeapon = (int)_Weapon2.ScopeVal; _characterWeapon.WeaponCurrentMagSize = GunStats.MAG_SIZE[(int)_Weapon1.GunVal]; _characterWeapon.WeaponSecondMagSize = GunStats.MAG_SIZE[(int)_Weapon2.GunVal]; } else { _characterWeapon.CurrentWeapon = (int)_Weapon2.GunVal; _characterWeapon.SecondWeapon = (int)_Weapon1.GunVal; _characterWeapon.CmdSyncWeaponStates((int)_Weapon2.GunVal, (int)_Weapon1.GunVal); _characterWeapon.SightNumberCurrentWeapon = (int)_Weapon2.ScopeVal; _characterWeapon.SightNumberSecondWeapon = (int)_Weapon1.ScopeVal; _characterWeapon.WeaponCurrentMagSize = GunStats.MAG_SIZE[(int)_Weapon2.GunVal]; _characterWeapon.WeaponSecondMagSize = GunStats.MAG_SIZE[(int)_Weapon1.GunVal]; } _characterWeapon.WeaponCurrentBullets = _characterWeapon.WeaponCurrentMagSize; _characterWeapon.WeaponSecondBullets = _characterWeapon.WeaponSecondMagSize; _characterWeapon.SetWeapon(); }