module MarzGuns
{
    item MASTERKEY_Weapon
    {
        MinDamage                   = 1.5,
        MaxDamage                   = 2.2,
        CriticalChance              = 70.0,
        AimingPerkCritModifier      = 10,
        CritDmgMultiplier           = 12.0,
        HitChance                   = 65,
        AimingPerkHitChanceModifier = 4,
        AimingMod                   = 2.0,
        Aimingtime                  = 40,
        RecoilDelay                 = 30,
        MaxRange                    = 12.0,
        MinSightRange               = 3,
        MaxSightRange               = 8.0,
        MinRange                    = 0.61,
        MinAngle                    = 0.9,
        JamGunChance                = 2,
        ConditionLowerChanceOneIn   = 200,
        ConditionMax                = 10,
        PushBackMod                 = 0.8,
        StopPower                   = 20.0,
        DoorDamage                  = 30,
        
        Projectilecount        = 9,
        ProjectileSpread       = 1.0,
        ProjectileWeightCenter = 1.0,
        MaxHitcount            = 9,
        PiercingBullets        = false,
        RangeFalloff           = true,
        AngleFalloff           = false,
        
        DisplayCategory           = Weapon,
        ItemType                  = base:weapon,
        SubCategory               = Firearm,
        AttachmentType            = Rifle,
        Tags                      = base:hasmetal;base:firearm,
        Weight                    = 4.0,
        MetalValue                = 45.0,
        FireMode                  = Single,
        IsAimedFirearm            = true,
        IsAimedHandWeapon         = true,
        Ranged                    = true,
        AmmoType                  = marzguns:shell_12g_buckshot,
        AmmoBox                   = MarzGuns.12Gauge_Box_Buckshot,
        MaxAmmo                   = 5,
        Reloadtime                = 25,
        WeaponReloadType          = shotgun,
        RackAfterShoot            = true,
        TwoHandWeapon             = true,
        RequiresEquippedBothHands = true,
        UseEndurance              = false,
        Swingtime                 = 2.0,
        
        Icon                 = MOSSBERG_590,
        RunAnim              = Run_Weapon2,
        WeaponSprite         = MarzGuns.MOSSBERG_590,
        AimReleaseSound      = JS2000ShotgunAimRelease,
        BreakSound           = JS2000ShotgunBreak,
        BringToBearSound     = JS2000ShotgunBringToBear,
        ClickSound           = JS2000ShotgunJam,
        DropSound            = JS2000ShotgunDrop,
        EjectAmmoStartSound  = JS2000ShotgunEjectAmmoStart,
        EjectAmmoSound       = JS2000ShotgunEjectAmmo,
        EjectAmmoStopSound   = JS2000ShotgunEjectAmmoStop,
        EquipSound           = JS2000ShotgunEquip,
        HitSound             = BulletImpact,
        ImpactSound          = null,
        InsertAmmoStartSound = JS2000ShotgunInsertAmmoStart,
        InsertAmmoSound      = JS2000ShotgunInsertAmmo,
        InsertAmmoStopSound  = JS2000ShotgunInsertAmmoStop,
        RackSound            = JS2000ShotgunRack,
        ShellFallSound       = JS2000ShotgunCartridgeFall,
        SwingSound           = JS2000ShotgunShoot,
        UnequipSound         = JS2000ShotgunUnEquip,
        SoundGain            = 2.0,
        SoundRadius          = 200,
        SoundVolume          = 200,
        MuzzleFlashModelKey  = muzzle_flash_shotgun,
        SplatBloodOnNoDeath  = true,
        SplatNumber          = 5,
        
        OnCreate        = MarzGuns_OnCreate.AttachParts,
        ModelWeaponPart = MarzGuns.Pump_Lock MarzGuns.MOSSBERG_590_PUMP pump_lock pump_lock,
        ModelWeaponPart = MarzGuns.Pump_Fired MarzGuns.MOSSBERG_590_PUMP pump_fired pump_fired,
        
        KnockBackOnNoDeath           = true,
        KnockdownMod                 = 8.0,
        MultipleHitConditionAffected = false,
    }
    
    item MASTERKEY
    {
        DisplayCategory  = WeaponPart,
        ItemType         = base:weaponpart,
        Icon             = Scope2x,
        Weight           = 0.5,
        WeightModifier   = 0.5,
        MountOn          = MarzGuns.M16A2,
        PartType         = Underbarrel,
        Tooltip          = Tooltip_Rail,
        MetalValue       = 22.0,
        WorldStaticModel = MarzGuns.Picatinny_Rail,
        CanAttach        = ItemCodeOnTest.hasScrewdriver,
        CanDetach        = ItemCodeOnTest.hasScrewdriver,
    }
}
