Skip to content

Commit

Permalink
add typewriter gun, copy universal sound
Browse files Browse the repository at this point in the history
  • Loading branch information
whatston3 committed Jan 13, 2025
1 parent ffea9fd commit f88c052
Show file tree
Hide file tree
Showing 18 changed files with 125 additions and 3 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
fireRate: 4 # Frontier: 3<4
availableModes:
- SemiAuto
soundGunshot:
path: /Audio/_DV/Weapons/Guns/Gunshots/universal.ogg
- type: ItemSlots
slots:
gun_magazine:
Expand Down Expand Up @@ -77,5 +79,5 @@
containers:
gun_magazine: !type:ContainerSlot
gun_chamber: !type:ContainerSlot
- type: StaticPrice
price: 500
# - type: StaticPrice # Frontier: use default value
# price: 500
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
- type: entity
name: Typewriter
parent: [BaseWeaponSubMachineGun, BaseGunWieldable, BaseC2Contraband] # Frontier: added BaseC2Contraband
id: WeaponSubMachineGunTypewriter
description: A modern take on the classic design used by mobsters throughout space and time. Types .35 auto ammo.
components:
- type: Sprite
sprite: _DV/Objects/Weapons/Guns/SMGs/typewriter.rsi
layers:
- state: base
map: ["enum.GunVisualLayers.Base"]
- state: mag-0
map: ["enum.GunVisualLayers.Mag"]
- type: Clothing
sprite: _DV/Objects/Weapons/Guns/SMGs/typewriter.rsi
- type: GunWieldBonus
minAngle: -20
maxAngle: -30
- type: Gun
minAngle: 21
maxAngle: 45
angleIncrease: 5
angleDecay: 20
fireRate: 8
soundGunshot:
path: /Audio/_DV/Weapons/Guns/Gunshots/typewriter.ogg
- type: ChamberMagazineAmmoProvider
- type: ItemSlots
slots:
gun_magazine:
name: Magazine
startingItem: MagazinePistolSubMachineGun
insertSound: /Audio/Weapons/Guns/MagIn/hpistol_magin.ogg
ejectSound: /Audio/Weapons/Guns/MagOut/sfrifle_magout.ogg
priority: 2
whitelist:
tags:
- MagazinePistolSubMachineGun
gun_chamber:
name: Chamber
startingItem: CartridgePistol
priority: 1
whitelist:
tags:
- CartridgePistol
- type: MagazineVisuals
magState: mag
steps: 1
zeroVisible: true
- type: Appearance
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,21 @@
- id: MagazineBoxPistol
amount: 2

- type: entity
parent: WeaponCaseLong
id: WeaponCaseLongTypewriterExpedition
suffix: Dungeon, Typewriter
categories: [ HideSpawnMenu ]
components:
- type: StorageFill
contents:
- id: WeaponSubMachineGunTypewriterExpedition
amount: 1
- id: MagazinePistolSubMachineGun
amount: 2
- id: MagazineBoxPistol
amount: 2

# Rifles
- type: entity
parent: WeaponCaseLong
Expand Down Expand Up @@ -375,7 +390,7 @@
components:
- type: StorageFill
contents:
- id: WeaponRifleAk
- id: WeaponRifleAkExpedition
amount: 1
- id: MagazineLightRifle
amount: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@
- WeaponCaseHeavyAsmgtExpeditions
- WeaponCaseLongXrayCannonExpedition
- WeaponCaseLongJackdaw
- WeaponCaseLongTypewriterExpedition
chance: 1.0
offset: 0.0

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@
categories: [ HideSpawnMenu ]
id: WeaponSubMachineGunDrozdExpedition

- type: entity
parent:
- BaseC3ExpeditionContraband
- WeaponSubMachineGunTypewriter
categories: [ HideSpawnMenu ]
id: WeaponSubMachineGunTypewriterExpedition

# Energy
- type: entity
parent:
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"version": 1,
"license": "CC0-1.0",
"copyright": "Original work by TJohnson.",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "base"
},
{
"name": "mag-0"
},
{
"name": "bolt-open"
},
{
"name": "inhand-left",
"directions": 4
},
{
"name": "inhand-right",
"directions": 4
},
{
"name": "equipped-BACKPACK",
"directions": 4
},
{
"name": "equipped-SUITSTORAGE",
"directions": 4
},
{
"name": "wielded-inhand-left",
"directions": 4
},
{
"name": "wielded-inhand-right",
"directions": 4
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f88c052

Please sign in to comment.