Skip to content

Commit

Permalink
Battery Guns (#987)
Browse files Browse the repository at this point in the history
* LNT620 Spark

* IK-60 Battery ammo, Fix Emag Protolathe

* Add tech, lathe. Cargo

* LNT620 Spark in ERT Uplink, increased Impulse cost
  • Loading branch information
KaiserMaus authored Dec 31, 2024
1 parent b30c02b commit f5f7b30
Show file tree
Hide file tree
Showing 38 changed files with 273 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ent-CrateArmoryAKMS = AKMS crate
.desc = Contains two AKMS assault rifle with four mags. Requires Armory access to open.
ent-CrateArmoryMP5 = MP5 crate
.desc = Contains two MP5 submachine gun with four mags. Requires Armory access to open.
ent-CrateArmoryIK30 = IK-30 crate
.desc = Contains three IK-30 semi laser battery gun. Requires Armory access to open.
ent-CrateArmoryMagazineBoxLightRifleBig = MagazineBoxLightRifleBig crate
.desc = Contains two MagazineBoxLightRifleBig. Requires Armory access to open.
ent-CrateArmoryMagazineBoxRifleBig = MagazineBoxRifleBig crate
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ ent-WeaponEnergyGunMini = miniature energy gun
ent-WeaponEnergyGunPistol = PDW-9 Energy Pistol
.desc = A military grade sidearm, used by many militia forces throughout the local sector.
ent-WeaponGunLaserCarbineAutomatic = IK-60 laser carbine
.desc = A 20 round semi-automatic laser carbine.
.desc = A semi-automatic battery laser burst carbine.
ent-WeaponGunLaserCarbineSemi = IK-30 laser carbine
.desc = A semi-automatic battery laser carbine.
ent-WeaponEnergyGunPistolSecurity = Energy Pistol «Judge»
.desc = A Security grade sidearm, used by many security forces throughout the local sector. Prepare to Judgement.
ent-WeaponEnergyGunTactical = Tactical Energy Gun
Expand Down Expand Up @@ -35,3 +37,5 @@ ent-WeaponSyndieLaserPistol = SAM-300
.desc = The Syndicate's laser pistol, developed from the NT Captain's pistol.
ent-WeaponLaserMinigun = UVL-21 «Vivern»
.desc = A heavy weapon of mass destruction based on the minigun.
ent-WeaponLaserLNT620 = LNT620 «Spark»
.desc = { ent-BaseWeaponBattery.desc }
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ ent-CrateArmoryAKMS = ящик AKMS
.desc = Содержит две штурмовые винтовки AKMS и четыре магазина. Чтобы открыть необходим доступ уровня Оружейной.
ent-CrateArmoryMP5 = ящик MP5
.desc = Содержит два пистолета-пулемёта MP5 и четыре магазина. Чтобы открыть необходим доступ уровня Оружейной.
ent-CrateArmoryIK30 = ящик ИК-30
.desc = Содержит три батарейных лазера ИК-30. Чтобы открыть необходим доступ уровня Оружейной.
ent-CrateArmoryMagazineBoxLightRifleBig = ящик патронов .30 винтовочные
.desc = Содержит три ящика патрон калибра .30, в сумме 600 патрон. Чтобы открыть необходим доступ уровня Оружейной.
ent-CrateArmoryMagazineBoxRifleBig = ящик патронов .20 винтовочные
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ ent-WeaponEnergyGunMini = миниатюрная энергетическая п
ent-WeaponEnergyGunPistol = энергетический пистолет PDW-9
.desc = Военное оружие, используемое многими ополченцами в местном секторе.
ent-WeaponGunLaserCarbineAutomatic = лазерный карабин ИК-60
.desc = Лазерный полуавтоматический карабин на 20 патронов.
.desc = Лазерный карабин ведущий огонь очередями и используемый батарейки как источник питания.
ent-WeaponGunLaserCarbineSemi = лазерный карабин ИК-30
.desc = Лазерный полуавтоматический карабин используемый батарейки как источник питания.
ent-WeaponEnergyGunPistolSecurity = энергетический пистолет «Судья»
.desc = Энерго пистолет Службы Безопасности, используемое многими правоохранительными ораганами в местном секторе. Тебя ждет Суд!.
ent-WeaponEnergyGunTactical = тактическая энергетическая пушка
Expand All @@ -34,3 +36,5 @@ ent-WeaponLaserMinigun = UVL-21 «Виверна»
.desc = Тяжёлое оружие массового поражения разработанное на основе минигана.
ent-WeaponSyndieLaserGun = S-13 «Чёрная мамба»
.desc = Модернизированный «Лектер», переделаный под плазменый энергомодуль.
ent-WeaponLaserLNT620 = LNT620 «Искра»
.desc = Автоматический батарейный лазер NanoTrasen LNT620 "Искра"
3 changes: 3 additions & 0 deletions Resources/Prototypes/Entities/Structures/Machines/lathe.yml
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@
- MagazineBoxMagnumRubber
- MagazineBoxRifleRubber
- MagazineBoxLightRifleRubber
- WeaponGunLaserCarbineSemi
- WeaponGunLaserCarbineAutomatic # Sunrise - IK-60 Laser Carbine
# Sunrise-End
- BoxBeanbag
- BoxShotgunIncendiary
Expand Down Expand Up @@ -901,6 +903,7 @@
- TimerTrigger
- Truncheon
- VoiceTrigger
- WeaponGunLaserCarbineSemi
- WeaponAdvancedLaser
- WeaponDisabler
- WeaponDisablerSMG
Expand Down
9 changes: 9 additions & 0 deletions Resources/Prototypes/Recipes/Lathes/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,15 @@
Steel: 2000
Gold: 200 #sunrise-Edit

- type: latheRecipe
parent: BaseWeaponRecipeLong
id: WeaponGunLaserCarbineSemi
result: WeaponGunLaserCarbineSemi
materials:
Steel: 1800
Plastic: 50
Gold: 300 #sunrise-Edit

- type: latheRecipe
parent: BaseWeaponRecipeLong
id: WeaponXrayCannon
Expand Down
1 change: 1 addition & 0 deletions Resources/Prototypes/Research/arsenal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
cost: 8000
recipeUnlocks:
- WeaponLaserSvalinn
- WeaponGunLaserCarbineSemi #Sunrise-Edit

- type: technology
id: WaveParticleHarnessing
Expand Down
16 changes: 13 additions & 3 deletions Resources/Prototypes/_Sunrise/Catalog/Cargo/cargo_armory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
sprite: _Sunrise/Objects/Weapons/Guns/Rifles/m16a4/big.rsi
state: icon
product: CrateArmoryM16A4
cost: 30000
cost: 17500
category: cargoproduct-category-name-armory
group: market

Expand All @@ -14,7 +14,7 @@
sprite: _Sunrise/Objects/Weapons/Guns/Rifles/akms/big.rsi
state: icon
product: CrateArmoryAKMS
cost: 35000
cost: 19800
category: cargoproduct-category-name-armory
group: market

Expand All @@ -24,7 +24,17 @@
sprite: _Sunrise/Objects/Weapons/Guns/SMGs/mp5/big.rsi
state: icon
product: CrateArmoryMP5
cost: 15000
cost: 12500
category: cargoproduct-category-name-armory
group: market

- type: cargoProduct
id: ArmoryLaserik30
icon:
sprite: _Sunrise/Objects/Weapons/Guns/Battery/batterylaser_carbine.rsi
state: icon
product: CrateArmoryIK30
cost: 6500
category: cargoproduct-category-name-armory
group: market

Expand Down
11 changes: 11 additions & 0 deletions Resources/Prototypes/_Sunrise/Catalog/Fills/Crates/armory.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@
- id: MagazineMP5
amount: 4

- type: entity
id: CrateArmoryIK30
parent: [ CrateWeaponSecure, BaseRestrictedContraband ]
name: IK-30 crate
description: Contains three IK-30 semi laser battery gun. Requires Armory access to open.
components:
- type: StorageFill
contents:
- id: WeaponGunLaserCarbineSemi
amount: 3

- type: entity
id: CrateArmoryMagazineBoxLightRifleBig
parent: [ CrateWeaponSecure, BaseRestrictedContraband ]
Expand Down
24 changes: 18 additions & 6 deletions Resources/Prototypes/_Sunrise/Catalog/ert_uplink_catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
productEntity: WeaponSniperPulseCarbine
icon: { sprite: _Sunrise/Interface/Misc/nt_icons.rsi, state: pulse-sc }
cost:
Bluecrystal: 15
Bluecrystal: 18
categories:
- NTLasers
conditions:
Expand All @@ -197,13 +197,25 @@
productEntity: WeaponPulseCarbine
icon: { sprite: _Sunrise/Interface/Misc/nt_icons.rsi, state: pulse-c }
cost:
Bluecrystal: 10
Bluecrystal: 12
categories:
- NTLasers
conditions:
- !type:ListingLimitedStockCondition
stock: 4

- type: listing
id: NTUplinkSunriseWeaponLaserLNT620
productEntity: WeaponLaserLNT620
icon: { sprite: _Sunrise/Interface/Misc/nt_icons.rsi, state: lnt620 }
cost:
Bluecrystal: 8
categories:
- NTLasers
conditions:
- !type:ListingLimitedStockCondition
stock: 6

- type: listing
id: NTUplinkSunriseWeaponEnergyGunTactical
productEntity: WeaponEnergyGunTactical
Expand All @@ -214,7 +226,7 @@
- NTLasers
conditions:
- !type:ListingLimitedStockCondition
stock: 4
stock: 6

- type: listing
id: NTUplinkSunriseWeaponWeaponEnergyGun
Expand Down Expand Up @@ -937,11 +949,11 @@
stock: 4

- type: listing
id: NTUplinkSunrisePowerCellHigh
productEntity: PowerCellHigh
id: NTUplinkSunrisePowerCellHyper
productEntity: PowerCellHyper
icon: { sprite: _Sunrise/Interface/Misc/nt_icons.rsi, state: power_cell_high }
cost:
Crystallite: 1
Crystallite: 2
categories:
- NTEngineering
conditions:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,90 @@
- type: entity
id: BaseWeaponAutoPowerCell
parent: BaseWeaponPowerCell
abstract: true
components:
- type: Clothing
sprite: Objects/Weapons/Guns/Battery/laser_retro.rsi
quickEquip: false
slots:
- Back
- suitStorage
- type: Gun
fireRate: 4
selectedMode: FullAuto
availableModes:
- FullAuto
soundGunshot:
path: /Audio/_Sunrise/Weapons/Guns/Laser/EG_R.ogg
- type: ItemSlots
slots:
gun_magazine:
name: Magazine
startingItem: PowerCellMedium
insertSound: /Audio/Weapons/Guns/MagIn/batrifle_magin.ogg
ejectSound: /Audio/Weapons/Guns/MagOut/batrifle_magout.ogg
whitelist:
tags:
- PowerCell
- PowerCellMedium

- type: entity
name: LNT620 "Spark"
parent: [ BaseWeaponAutoPowerCell, BaseRestrictedContraband ]
id: WeaponLaserLNT620
description: "Automatic Laser NanoTrasen LNT620."
components:
- type: Sprite
sprite: _Sunrise/Objects/Weapons/Guns/Battery/smg_laser.rsi
layers:
- state: base
map: ["enum.GunVisualLayers.Base"]
- state: mag-unshaded-4
map: ["enum.GunVisualLayers.MagUnshaded"]
shader: unshaded
- type: Gun
fireRate: 4.5
minAngle: 5
maxAngle: 15
- type: Clothing
sprite: _Sunrise/Objects/Weapons/Guns/Battery/smg_laser.rsi
- type: Item
size: Large
sprite: _Sunrise/Objects/Weapons/Guns/Battery/smg_laser.rsi
- type: MagazineVisuals
magState: mag
steps: 5
zeroVisible: true

- type: entity
name: IK-30 laser carbine
parent: [ BaseWeaponAutoPowerCell, BaseRestrictedContraband ]
id: WeaponGunLaserCarbineSemi
description: "A semi-automatic battery laser carbine."
components:
- type: Sprite
sprite: _Sunrise/Objects/Weapons/Guns/Battery/batterylaser_carbine.rsi
layers:
- state: base
map: ["enum.GunVisualLayers.Base"]
- state: mag-unshaded-4
map: ["enum.GunVisualLayers.MagUnshaded"]
shader: unshaded
- type: Gun
selectedMode: SemiAuto
fireRate: 3
availableModes:
- SemiAuto
- type: Clothing
sprite: _Sunrise/Objects/Weapons/Guns/Battery/batterylaser_carbine.rsi
- type: Item
size: Large
sprite: _Sunrise/Objects/Weapons/Guns/Battery/batterylaser_carbine.rsi
- type: MagazineVisuals
magState: mag
steps: 5
zeroVisible: true

- type: entity
name: energy gun
parent: BaseWeaponBattery
Expand Down Expand Up @@ -225,9 +312,9 @@

- type: entity
name: IK-60 laser carbine
parent: BaseWeaponBattery
parent: [ BaseWeaponAutoPowerCell, BaseRestrictedContraband ]
id: WeaponGunLaserCarbineAutomatic
description: "A 20 round semi-automatic laser carbine."
description: "A burst automatic battery laser carbine."
components:
- type: Sprite
sprite: _Sunrise/Objects/Weapons/Guns/Battery/energygun_carbine.rsi
Expand All @@ -237,29 +324,26 @@
- state: mag-unshaded-4
map: ["enum.GunVisualLayers.MagUnshaded"]
shader: unshaded
- type: Clothing
sprite: _Sunrise/Objects/Weapons/Guns/Battery/energygun_carbine.rsi
- type: Gun
soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/laser.ogg
soundEmpty:
path: /Audio/Weapons/Guns/Empty/empty.ogg
selectedMode: SemiAuto
fireRate: 3
minAngle: 2
maxAngle: 12
angleIncrease: 1.5
angleDecay: 8
selectedMode: Burst
shotsPerBurst: 4
burstCooldown: 0.3
burstFireRate: 5
availableModes:
- SemiAuto
- FullAuto
- type: Battery
maxCharge: 2000
startingCharge: 2000
- type: HitscanBatteryAmmoProvider
proto: BulletEnergyGunLaser
fireCost: 100
- Burst
- type: Item
size: Large
sprite: _Sunrise/Objects/Weapons/Guns/Battery/energygun_carbine.rsi
- type: Clothing
sprite: _Sunrise/Objects/Weapons/Guns/Battery/energygun_carbine.rsi
- type: MagazineVisuals
magState: mag
steps: 5
zeroVisible: true
- type: Appearance

- type: entity
name: Energy Pistol «Judge»
Expand Down
2 changes: 2 additions & 0 deletions Resources/Prototypes/_Sunrise/Research/arsenal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,5 @@
recipeUnlocks:
- WeaponGunLaserCarbineAutomatic
- WeaponEnergyGunPistol
technologyPrerequisites:
- ExperimentalBatteryAmmo
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
Expand Up @@ -241,6 +241,9 @@
{
"name": "stunbaton"
},
{
"name": "lnt620"
},
{
"name": "box_flashbangs"
},
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.
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

0 comments on commit f5f7b30

Please sign in to comment.