M1911 Pistol: Difference between revisions

From PZwiki
(Page contents largely auto-generated using ItemZed)
(Update distribution file)
 
(35 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<!-- This page has been auto-generated using ItemZed with a custom Lua script -->
{{Header|Project Zomboid|Items|Weapons|Firearms}}
{{Languages}}
{{Page version|41.78.16}}
{{Header|The Game World|Items|Weapons|Firearms|version=Version 41|incver=68}}
{{Infobox item
{{Infobox weapon
|name=M1911 Pistol
|display_name=M1911 Pistol
|model=Handgun02_Model.png
|image=Handgun02_Model.png
|icon=HandGun2.png
|image_width=200px
|icon_name=M1911 Pistol
|alternate_image=HandGun2.png
|alternate_name=M1911 Pistol
|alternate_link=
|alternate_image2=BerettaClip.png
|alternate_name2=.45 Auto Magazine
|alternate_link2=Magazine (firearm)
|alternate_image3=40calAmmoBox.png
|alternate_name3=.45 Auto Round
|alternate_link3=
<!--GENERAL-->
<!--GENERAL-->
|category=Weapon
|category=Weapon
Line 22: Line 13:
|attachment_type=Holster
|attachment_type=Holster
<!--CHARACTERISTICS-->
<!--CHARACTERISTICS-->
|ammo=Bullets45
|ammo=.45 Auto Round
|clip_size=7
|clip_size=7
|sound_radius=50
|sound_radius=50
Line 42: Line 33:
|knockdown=2
|knockdown=2
<!--TECHNICAL DETAILS-->
<!--TECHNICAL DETAILS-->
|ingredients=
|item_id=Base.Pistol2
|class_name=Base.Pistol2
}}
}}
A <b>M1911 pistol</b> is a firearm [[weapon]].
A '''M1911 pistol''' is a semi-automatic pistol-caliber handgun chambered in [[.45 Auto Round|.45 auto round]], fed by a 7 round [[Magazine (firearms)|magazine]]. The weapon can be attached to a [[holster]] or [[Double Holster|double holster]] for quick access and weight reduction.
 
==Usage==
==Usage==
===Weapon===
{{Pros-cons
The M1911 pistol is a firearm, utilising a 7 round [[Magazine (firearms)|magazine]].  
|pros1=Faster reload than a gun that does not use magazines.
|pros2=Higher capacity than revolvers.
|cons1=Can jam.
|cons2=Lower capacity compared to other semi-automatic pistols.
|cons3=Requires magazines.
}}
 
===Drive-by shooting===
All guns have the ability to shoot from vehicles. First press {{key|V}}, which opens the vehicle radial menu and open your window. Aim and fire. Drivers and passengers are all able to use this ability at the cost of reduced accuracy while the vehicle is moving. The driver cannot control the vehicle while aiming, it's recommended to cruise at a safe speed and make sure there are no obstacles that can cause a crash while you're driving and shooting.
 
===Attachments===
===Attachments===
*{{Img_item|RedDot}} [[Red Dot]]
*[[Iron Sight]] [[File:ScopeIronSight.png]]: Increases firing range by 3 tiles.
*{{Img_item|GunLight}} [[Gun Light]]
*[[Red Dot]] [[File:RedDot.png]]: Increases aiming speed.
*{{Img_item|IronSight}} [[Iron Sight]]
*[[Laser]] [[File:HandgunLaser.png|link=Laser|Laser]] Increases base hit chance by 5%.
*{{Img_item|Laser}} [[Laser]]
*[[Gun Light]]{{Sup|Future}}: ''Not yet functional or obtainable ([[Build 41#Build 41.78.16|Build 41.78.16]])''.


===Breaking doors===
===Breaking doors===
It can be used to bash down [[Door|doors]], dealing 5 damage per hit.  
It can be used to bash down [[door]]s, dealing 5 damage per hit.
 
==Condition==
==Condition==
Below is an example of the chance of losing durability at different levels of [[Skills|maintenance]] and [[Skills|firearm]] levels.
Below is an example of the chance of losing durability at different levels of [[Skills|maintenance]] and [[Skills|firearm]] levels.
{{Durability weapon|60}}
{{Durability weapon|60}}
===Repairing===
 
Materials that can be used to repair the M1911 pistol, based on first time repairing. Repairing the M1911 pistol makes following repairs less likely to succeed and can, if repaired numerous times, cause reduced durability instead of increased.
<!-- {{Fixing weapon
|item=M1911 Pistol
|woodglue=2
|woodgluerepairs=20
|woodgluechance=35
|woodwork=2
|ducttape=2
|ducttaperepairs=10
|ducttapechance=95
|glue=2
|gluerepairs=10
|gluechance=95
|scotchtape=4
|scotchtaperepairs=10
|scotchtapechance=95
}}
==Distribution==
==Distribution==
==Crafting==
The loot distributions can be found in the table(s) below.
<!-- ==Trivia== -->
 
==Gallery==
<!--BOT FLAG|Pistol2|41.78.16-->
<gallery>
{{Clear}}
File:HandGun2.png|Item icon
<div class="togglebox theme-red">
File:Handgun02_Model.png|Item model
    <div>Pistol2 distribution
</gallery>
        <span class="mw-customtoggle-togglebox-Pistol2" title="{{int:show}} / {{int:hide}}" style="float: right; padding-right: 30px; padding-top: 4px; font-size: 0.7em; font-weight: normal;">{{int:show}} / {{int:hide}}</span></div>
    <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-togglebox-Pistol2">
    Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the [[lucky]] and [[unlucky]] traits.    <div class="toggle-content">
<div class="pz-container">
<div id="containers" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Containers}}
    ! Building/Room
    ! Container
    ! Effective chance
    |-
    | Bag_WeaponBag
    | {{ll|Bag_WeaponBag}}
    | 7.86%
    |-
    | GunCache1
    | {{ll|Bag_DuffelBagTINT}}
    | 76.55%
    |-
    | GunCache1
    | {{ll|GunBox}}
    | 41.14%
    |-
    | GunCache1
    | {{ll|counter}}
    | 15.1%
    |-
    | GunCache2
    | {{ll|Bag_DuffelBagTINT}}
    | 51.57%
    |-
    | GunCache2
    | {{ll|GunBox}}
    | 76.55%
    |-
    | PistolCase2
    | {{ll|PistolCase2}}
    | 120.41%
    |-
    | SafehouseLoot
    | {{ll|counter}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|crate}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | SafehouseLoot
    | {{ll|wardrobe}}
    | 15.1%
    |-
    | SurvivorCache1
    | {{ll|counter}}
    | 15.1%
    |-
    | SurvivorCache2
    | {{ll|counter}}
    | 15.1%
    |-
    | all
    | {{ll|dresser}}
    | 1.65%
    |-
    | all
    | {{ll|locker}}
    | 3.51%
    |-
    | all
    | {{ll|militarycrate}}
    | 23.28%
    |-
    | all
    | {{ll|militarylocker}}
    | 23.28%
    |-
    | armystorage
    | {{ll|locker}}
    | 23.28%
    |-
    | armystorage
    | {{ll|metal_shelves}}
    | 23.28%
    |-
    | armysurplus
    | {{ll|displaycase}}
    | 15.1%
    |-
    | bedroom
    | {{ll|desk}}
    | 1.65%
    |-
    | bedroom
    | {{ll|dresser}}
    | 1.87%
    |-
    | bedroom
    | {{ll|locker}}
    | 3.51%
    |-
    | bedroom
    | {{ll|sidetable}}
    | 1.65%
    |-
    | druglab
    | {{ll|metal_shelves}}
    | 15.1%
    |-
    | garagestorage
    | {{ll|locker}}
    | 15.1%
    |-
    | gunstore
    | {{ll|displaycase}}
    | 15.1%
    |-
    | gunstorestorage
    | {{ll|crate}}
    | 15.1%
    |-
    | hunting
    | {{ll|displaycase}}
    | 15.1%
    |-
    | hunting
    | {{ll|locker}}
    | 15.1%
    |-
    | pawnshop
    | {{ll|displaycase}}
    | 15.1%
    |}
</div>
<div id="vehicles" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Vehicles}}
    ! Type
    ! Container
    ! Effective chance
        |-
        | Carpenter
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Construction Worker
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Distillery
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Electrician
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Farmer
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Fire
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Fisherman
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Fossoil
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | All
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Golf
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Heralds
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Hunter
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Mass Gen Fac
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | McCoy
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Metal Welder
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Painter
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Postal
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Radio
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Ranger
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Spiffo
        | {{ll|Glove Box}}
        | 0.77%
        |-
        | Survivalist
        | {{ll|Glovebox}}
        | 4.01%
        |-
        | Transit
        | {{ll|Glove Box}}
        | 0.77%
        |}
</div>
<div id="zombies" style="flex-basis:30%">
    {| class="wikitable theme-red" style="margin-right: 15px; width: 95%;"
    |+ {{ll|Zombies}}
    ! Outfit
    ! Days survived
    ! Chance
    |-
    | Police<br>PoliceState<br>PoliceRiot<br>PrisonGuard<br>PrivateMilitia
    | 0
    | 50%
    |}
</div>
    </div><div style="clear: both;"></div>
    </div></div><div class="toggle large mw-customtoggle-togglebox-Pistol2" title="{{int:show}}/{{int:hide}}"></div></div>
<!--END BOT FLAG|Pistol2|41.78.16-->
 
==Code==
==Code==
<b><i>From items_weapons.txt (Project Zomboid directory/media/scripts/)</i></b>
{{CodeBox
{{Retrieved|version=41|incver=68}}
| {{CodeSnip
<pre>item Pistol2
  | lang = java
  | line = true
  | start = 5682
  | source = items_weapons.txt
  | retrieved = true
  | version = 41.78.16
  | code =
item Pistol2
     {
     {
         DisplayCategory = Weapon,
         DisplayCategory = Weapon,
Line 121: Line 359:
         SwingTime = 0.5,
         SwingTime = 0.5,
         MultipleHitConditionAffected = FALSE,
         MultipleHitConditionAffected = FALSE,
BringToBearSound = M1911BringToBear,
BringToBearSound = M1911BringToBear,
         SwingSound = M1911Shoot,
         SwingSound = M1911Shoot,
         HitSound = BulletHitBody,
         HitSound = BulletHitBody,
ClickSound = M1911Jam,
ClickSound = M1911Jam,
         SoundRadius = 50,
         SoundRadius = 50,
         MinDamage = 1,
         MinDamage = 1,
Line 149: Line 387:
         AmmoBox = Bullets45Box,
         AmmoBox = Bullets45Box,
         MaxAmmo = 7,
         MaxAmmo = 7,
EquipSound = M1911Equip,
EquipSound = M1911Equip,
UnequipSound = M1911UnEquip,
UnequipSound = M1911UnEquip,
         InsertAmmoSound = M1911InsertAmmo,
         InsertAmmoSound = M1911InsertAmmo,
         EjectAmmoSound = M1911EjectAmmo,
         EjectAmmoSound = M1911EjectAmmo,
InsertAmmoStartSound = M1911InsertAmmoStart,
InsertAmmoStartSound = M1911InsertAmmoStart,
InsertAmmoStopSound = M1911InsertAmmoStop,
InsertAmmoStopSound = M1911InsertAmmoStop,
EjectAmmoStartSound = M1911EjectAmmoStart,
EjectAmmoStartSound = M1911EjectAmmoStart,
EjectAmmoStopSound = M1911EjectAmmoStop,
EjectAmmoStopSound = M1911EjectAmmoStop,
         ShellFallSound = M1911CartridgeFall,
         ShellFallSound = M1911CartridgeFall,
         RackSound = M1911Rack,
         RackSound = M1911Rack,
Line 169: Line 407:
         ModelWeaponPart = Laser Laser laser laser,
         ModelWeaponPart = Laser Laser laser laser,
         StopPower = 7,
         StopPower = 7,
     }</pre>
     }
}}
}}
 
==See also==
==See also==
*[[M9 Pistol]]
*[[M9 Pistol]]
*[[D-E Pistol]]
*[[D-E Pistol]]


{{Navbox weapons}}
{{Navbox items|firearms}}
{{clear}}

Latest revision as of 13:12, 30 April 2024

Project ZomboidItemsWeaponsFirearmsM1911 Pistol
UI Tick.png
This page has been revised for the current stable version (41.78.16).
Help by adding any missing content. [edit]
M1911 Pistol
Handgun02 Model.png
General
Category
Weapon
Encumbrance
Moodle Icon HeavyLoad.png
1.5
Equipped
One-handed
Slot attached
Holster
Skill
Ammunition
Magazine size
7
Properties
Max condition
10
Performance
Damage
1–1.4
Door damage
5
Range
0.61–8
Accuracy
40
Recoil
25
Noise radius
50
Knockback
0.3
Knockdown
2
Aiming time
20
Reload time
30
Crit chance
20%
Technical
Item ID
Base.Pistol2

A M1911 pistol is a semi-automatic pistol-caliber handgun chambered in .45 auto round, fed by a 7 round magazine. The weapon can be attached to a holster or double holster for quick access and weight reduction.

Usage

Pros Cons
  • Faster reload than a gun that does not use magazines.
  • Higher capacity than revolvers.
  • Can jam.
  • Lower capacity compared to other semi-automatic pistols.
  • Requires magazines.

Drive-by shooting

All guns have the ability to shoot from vehicles. First press V, which opens the vehicle radial menu and open your window. Aim and fire. Drivers and passengers are all able to use this ability at the cost of reduced accuracy while the vehicle is moving. The driver cannot control the vehicle while aiming, it's recommended to cruise at a safe speed and make sure there are no obstacles that can cause a crash while you're driving and shooting.

Attachments

Breaking doors

It can be used to bash down doors, dealing 5 damage per hit.

Condition

Below is an example of the chance of losing durability at different levels of maintenance and firearm levels.

For how this is calculated, see: Condition
Maintenance skill Weapon skill Durability lower chance
0 0 1/60 (2%)
0 4 1/62 (2%)
0 8 1/64 (2%)
4 0 1/64 (2%)
8 0 1/68 (1%)
4 4 1/66 (2%)
4 8 1/68 (1%)
8 8 1/72 (1%)
10 10 1/74 (1%)

Distribution

The loot distributions can be found in the table(s) below.

Pistol2 distribution Show / Hide
Effective chance calculations are based off of default loot settings, and median zombie density. The higher the density of zombies in an area, the higher the effective chance of an item spawning. Chance is also influenced by the lucky and unlucky traits.
Containers
Building/Room Container Effective chance
Bag_WeaponBag Bag_WeaponBag 7.86%
GunCache1 Bag_DuffelBagTINT 76.55%
GunCache1 GunBox 41.14%
GunCache1 counter 15.1%
GunCache2 Bag_DuffelBagTINT 51.57%
GunCache2 GunBox 76.55%
PistolCase2 PistolCase2 120.41%
SafehouseLoot counter 15.1%
SafehouseLoot crate 15.1%
SafehouseLoot metal_shelves 15.1%
SafehouseLoot wardrobe 15.1%
SurvivorCache1 counter 15.1%
SurvivorCache2 counter 15.1%
all dresser 1.65%
all locker 3.51%
all militarycrate 23.28%
all militarylocker 23.28%
armystorage locker 23.28%
armystorage metal_shelves 23.28%
armysurplus displaycase 15.1%
bedroom desk 1.65%
bedroom dresser 1.87%
bedroom locker 3.51%
bedroom sidetable 1.65%
druglab metal_shelves 15.1%
garagestorage locker 15.1%
gunstore displaycase 15.1%
gunstorestorage crate 15.1%
hunting displaycase 15.1%
hunting locker 15.1%
pawnshop displaycase 15.1%
Vehicles
Type Container Effective chance
Carpenter Glove Box 0.77%
Construction Worker Glove Box 0.77%
Distillery Glove Box 0.77%
Electrician Glove Box 0.77%
Farmer Glove Box 0.77%
Fire Glove Box 0.77%
Fisherman Glove Box 0.77%
Fossoil Glove Box 0.77%
All Glove Box 0.77%
Golf Glove Box 0.77%
Heralds Glove Box 0.77%
Hunter Glove Box 0.77%
Mass Gen Fac Glove Box 0.77%
McCoy Glove Box 0.77%
Metal Welder Glove Box 0.77%
Painter Glove Box 0.77%
Postal Glove Box 0.77%
Radio Glove Box 0.77%
Ranger Glove Box 0.77%
Spiffo Glove Box 0.77%
Survivalist Glove Box 4.01%
Transit Glove Box 0.77%
Zombie
Outfit Days survived Chance
Police
PoliceState
PoliceRiot
PrisonGuard
PrivateMilitia
0 50%

Code

Code icon.png Code snippet! This section contains source code from Project ZomboidShow / Hide

Source: ProjectZomboid\media\scripts\items_weapons.txt

Retrieved: Build 41.78.16
item Pistol2
    {
        DisplayCategory = Weapon,
        ImpactSound	=	null,
        MaxRange	=	8,
        WeaponSprite	=	Handgun02,
        SoundVolume	=	50,
        MinAngle	=	0.95,
        Type	=	Weapon,
        MinimumSwingTime	=	0.5,
        ToHitModifier	=	1.5,
        NPCSoundBoost	=	1.5,
        KnockBackOnNoDeath	=	TRUE,
        Ranged	=	TRUE,
        SwingAmountBeforeImpact	=	0,
        ProjectileCount	=	1,
        ConditionLowerChanceOneIn	=	60,
        Weight	=	1.5,
        SplatNumber	=	3,
        PushBackMod	=	0.3,
        SubCategory	=	Firearm,
        ConditionMax	=	10,
        ShareDamage	=	FALSE,
        MaxHitCount	=	1,
        IsAimedFirearm	=	TRUE,
        DoorDamage	=	5,
        UseEndurance	=	FALSE,
        SwingAnim	=	Handgun,
        DisplayName	=	M1911 Pistol,
        MinRange	=	0.61,
        SwingTime	=	0.5,
        MultipleHitConditionAffected	=	FALSE,
		BringToBearSound = M1911BringToBear,
        SwingSound	=	M1911Shoot,
        HitSound = BulletHitBody,
		ClickSound = M1911Jam,
        SoundRadius	=	50,
        MinDamage	=	1,
        MaxDamage	=	1.4,
        SplatSize	=	3,
        KnockdownMod	=	2,
        SplatBloodOnNoDeath	=	TRUE,
        Icon	=	HandGun2,
        RunAnim	=	Run_Weapon2,
        CriticalChance	=	20,
        CritDmgMultiplier = 4,
        AimingPerkCritModifier = 10,
        AimingPerkRangeModifier = 1.5,
        HitChance = 40,
        AimingPerkHitChanceModifier = 10,
        AimingPerkMinAngleModifier = 0.05,
        RecoilDelay = 25,
        SoundGain = 1.5,
        ClipSize = 15,
        ReloadTime = 30,
        AimingTime = 20,
        BreakSound = M1911Break,
        MetalValue = 30,
        AmmoBox = Bullets45Box,
        MaxAmmo = 7,
		EquipSound = M1911Equip,
		UnequipSound = M1911UnEquip,
        InsertAmmoSound = M1911InsertAmmo,
        EjectAmmoSound = M1911EjectAmmo,
		InsertAmmoStartSound = M1911InsertAmmoStart,
		InsertAmmoStopSound = M1911InsertAmmoStop,
		EjectAmmoStartSound = M1911EjectAmmoStart,
		EjectAmmoStopSound = M1911EjectAmmoStop,
        ShellFallSound = M1911CartridgeFall,
        RackSound = M1911Rack,
        MagazineType = Base.45Clip,
        AmmoType = Base.Bullets45,
        WeaponReloadType = handgun,
        JamGunChance = 2,
        AttachmentType = Holster,
        ModelWeaponPart = RedDot RedDot reddot reddot,
        ModelWeaponPart = GunLight GunLight gunlight gunlight,
        ModelWeaponPart = IronSight IronSight scope scope,
        ModelWeaponPart = Laser Laser laser laser,
        StopPower = 7,
    }

See also