Sawed-off Double Barrel Shotgun

From PZwiki
Revision as of 04:23, 11 January 2022 by TTastic (talk | contribs) (added code for 41.65 and added a "see also" at the bottom to expand the page a little in the style of similar firearms)
WhiskeyHalf.png
This article or section does not conform to the standards of the wiki. The pages either don't have the layout that is expected of a page like this, or the page does not provide enough information on its item. The page should be updated to have the standard that's expected, or risk having the page deleted.

A sawed off version of the Double Barrel Shotgun, Has less range Requires a saw to make

Code

From items_weapons.txt (Project Zomboid directory/media/scripts/) Retrieved: Build 41.65

	item DoubleBarrelShotgunSawnoff
    {
        DisplayCategory                 =       Weapon,
        ImpactSound	                =	null,
        MaxRange	                =	8,
        RangeFalloff	                =	TRUE,
        WeaponSprite	                =	ShotgunDoubleBarrelSawn,
        SoundVolume	                =	200,
        MinAngle	                =	0.657,
        Type	                        =	Weapon,
        KnockBackOnNoDeath	        =	TRUE,
        Ranged	                        =	TRUE,
        ProjectileCount	                =	5,
        ConditionLowerChanceOneIn	=	60,
        Weight	                        =	4,
        SplatNumber	                =	5,
        PushBackMod	                =	0.8,
        SubCategory	                =	Firearm,
        AimingMod	                =	2,
        ConditionMax	                =	10,
        ShareDamage	                =	FALSE,
        MaxHitCount	                =	4,
        IsAimedHandWeapon	        =	TRUE,
        IsAimedFirearm	                =	TRUE,
        DoorDamage	                =	30,
        UseEndurance	                =	FALSE,
        DisplayName	                =	Sawn Off Double Barrel Shotgun,
        MinRange	                =	0.67,
        SwingTime	                =	2,
        AngleFalloff	                =	TRUE,
        MultipleHitConditionAffected	=	FALSE,
        SwingSound	                =	SawnOffDoubleBarrelShotgunShoot,
	ClickSound                      = SawnOffDoubleBarrelShotgunJam,
        SoundRadius	                =	100,
        MinDamage	                =	2,
        MaxDamage	                =	2.7,
        KnockdownMod	                =	8,
        SplatBloodOnNoDeath	        =	TRUE,
        Icon	                        =	ShotgunDoublebarrel,
        RunAnim	                        =	Run_Weapon2,
        CriticalChance                  = 80,
        CritDmgMultiplier               = 2,
        AimingPerkCritModifier          = 4,
        HitChance                       = 80,
        AimingPerkHitChanceModifier     = 5,
        RecoilDelay                     = 50,
        SoundGain                       = 2,
        ReloadTime                      = 25,
        AimingTime                      = 20,
        RequiresEquippedBothHands       = TRUE,
        BreakSound                      =   SawnOffDoubleBarrelShotgunBreak,
        MetalValue                      = 45,
        TwoHandWeapon                   = TRUE,
        AmmoBox                         = ShotgunShellsBox,
        MaxAmmo                         = 2,
	EquipSound                      = SawnOffDoubleBarrelShotgunEquip,
	UnequipSound                    = SawnOffDoubleBarrelShotgunUnEquip,
        InsertAmmoSound                 = SawnOffDoubleBarrelShotgunInsertAmmo,
        EjectAmmoSound                  = SawnOffDoubleBarrelShotgunEjectAmmo,
	InsertAmmoStartSound            = SawnOffDoubleBarrelShotgunInsertAmmoStart,
	InsertAmmoStopSound             = SawnOffDoubleBarrelShotgunInsertAmmoStop,
	EjectAmmoStartSound             = SawnOffDoubleBarrelShotgunEjectAmmoStart,
	EjectAmmoStopSound              = SawnOffDoubleBarrelShotgunEjectAmmoStop,
        ShellFallSound                  = SawnOffDoubleBarrelShotgunCartridgeFall,
        AmmoType                        = Base.ShotgunShells,
        WeaponReloadType                = doublebarrelshotgunsawn,
        JamGunChance                    = 0,
        AttachmentType                  = Rifle,
        InsertAllBulletsReload          = TRUE,
        RackAfterShoot                  = FALSE,
        haveChamber                     = FALSE,
        StopPower                       = 40,
    }

See also