Add the N1984 pistol (#23775)

This commit is contained in:
IProduceWidgets
2024-01-09 05:17:40 -05:00
committed by GitHub
parent 74a0f47074
commit f39fbd4800
13 changed files with 165 additions and 3 deletions

View File

@@ -252,7 +252,7 @@
- id: RegenerativeMesh
- id: BoxZiptie
- id: CrowbarRed
- id: MagazinePistol
- id: MagazineMagnum
- type: entity
noSpawn: true

View File

@@ -1,3 +1,19 @@
- type: entity
id: BaseMagazineMagnum
name: pistol magazine (.45 magnum)
parent: BaseMagazinePistol
abstract: true
components:
- type: Tag
tags:
- MagazineMagnum
- type: BallisticAmmoProvider
mayTransfer: true
whitelist:
tags:
- CartridgeMagnum
capacity: 7
- type: entity
id: BaseMagazineMagnumSubMachineGun
name: "Vector magazine (.45 magnum)"
@@ -31,6 +47,48 @@
zeroVisible: false
- type: Appearance
- type: entity
id: MagazineMagnum
name: pistol magazine (.45 magnum)
parent: BaseMagazineMagnum
components:
- type: BallisticAmmoProvider
proto: CartridgeMagnum
- type: Sprite
layers:
- state: red
map: ["enum.GunVisualLayers.Base"]
- state: mag-1
map: ["enum.GunVisualLayers.Mag"]
- type: entity
id: MagazineMagnumPractice
name: pistol magazine (.45 magnum practice)
parent: BaseMagazineMagnum
components:
- type: BallisticAmmoProvider
proto: CartridgeMagnum
- type: Sprite
layers:
- state: practice
map: ["enum.GunVisualLayers.Base"]
- state: mag-1
map: ["enum.GunVisualLayers.Mag"]
- type: entity
id: MagazineMagnumRubber
name: pistol magazine (.45 magnum rubber)
parent: BaseMagazineMagnum
components:
- type: BallisticAmmoProvider
proto: CartridgeMagnum
- type: Sprite
layers:
- state: rubber
map: ["enum.GunVisualLayers.Base"]
- state: mag-1
map: ["enum.GunVisualLayers.Mag"]
- type: entity
id: MagazineMagnumSubMachineGun
name: "Vector magazine (.45 magnum)"

View File

@@ -194,3 +194,71 @@
whitelist:
tags:
- CartridgePistol
- type: entity
name: N1984
parent: BaseWeaponPistol
id: WeaponPistolN1984 # the spaces in description are for formatting.
description: The sidearm of any self respecting officer. Comes in .45 magnum, the lord's caliber.
components:
- type: Sprite
sprite: Objects/Weapons/Guns/Pistols/N1984.rsi
layers:
- state: base
map: ["enum.GunVisualLayers.Base"]
- state: mag-0
map: ["enum.GunVisualLayers.Mag"]
- type: Clothing
sprite: Objects/Weapons/Guns/Pistols/N1984.rsi
- type: Gun
minAngle: 1
maxAngle: 20
angleIncrease: 8
angleDecay: 4
fireRate: 4
availableModes:
- SemiAuto
soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/mk58.ogg
- type: ItemSlots
slots:
gun_magazine:
name: Magazine
startingItem: MagazineMagnum
insertSound: /Audio/Weapons/Guns/MagIn/pistol_magin.ogg
ejectSound: /Audio/Weapons/Guns/MagOut/pistol_magout.ogg
priority: 2
whitelist:
tags:
- MagazineMagnum
gun_chamber:
name: Chamber
startingItem: CartridgeMagnum
priority: 1
whitelist:
tags:
- CartridgeMagnum
- type: entity
name: N1984
parent: WeaponPistolN1984
id: WeaponPistolN1984Nonlethal
components:
- type: ItemSlots
slots:
gun_magazine:
name: Magazine
startingItem: MagazineMagnumRubber
insertSound: /Audio/Weapons/Guns/MagIn/pistol_magin.ogg
ejectSound: /Audio/Weapons/Guns/MagOut/pistol_magout.ogg
priority: 2
whitelist:
tags:
- MagazineMagnum
gun_chamber:
name: Chamber
startingItem: CartridgeMagnumRubber
priority: 1
whitelist:
tags:
- CartridgeMagnum

View File

@@ -24,5 +24,6 @@
outerClothing: ClothingOuterArmorBasic
id: CentcomPDA
ears: ClothingHeadsetAltCentCom
belt: WeaponPistolN1984
pocket1: BoxFolderBlack
pocket2: PenCentcom

View File

@@ -27,7 +27,7 @@
id: ERTLeaderPDA
ears: ClothingHeadsetAltCentCom
belt: ClothingBeltSecurityFilled
pocket1: WeaponPistolMk58Nonlethal
pocket1: WeaponPistolN1984Nonlethal
pocket2: FlashlightSeclite
- type: startingGear
@@ -44,7 +44,7 @@
id: ERTLeaderPDA
ears: ClothingHeadsetAltCentCom
belt: ClothingBeltSecurityFilled
pocket1: WeaponPistolMk58Nonlethal
pocket1: WeaponPistolN1984Nonlethal
pocket2: FlashlightSeclite
- type: startingGear

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 587 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 153 B

View File

@@ -0,0 +1,35 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Created by IProduceWidgets (github) to make the style of desertrose at https://github.com/DesertRose2/desertrose/commit/120961e254d7f83a6e00a02c76e734f9e5019345, https://github.com/DesertRose2/desertrose/blob/master/icons/obj/guns/projectile.dmi",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "base"
},
{
"name": "bolt-open"
},
{
"name": "mag-0"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "equipped-BELT",
"directions": 4
}
]
}