Skip to content

Commit 6703fa2

Browse files
Merge pull request #869 from PubliclyExecutedPig/energy
Adds a new gun to replace the Eshotgun
2 parents 2926560 + 1f24c03 commit 6703fa2

26 files changed

Lines changed: 268 additions & 6 deletions

File tree

Resources/Prototypes/Catalog/Fills/Lockers/heads.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@
351351
table: !type:AllSelector
352352
children:
353353
- id: ClothingNeckCloakHosElite
354-
- id: WeaponEnergyShotgun
354+
- id: WeaponEnergySMG
355355
- id: BookSpaceLaw
356356
- id: BoxEncryptionKeySecurity
357357
- id: CigarGoldCase

Resources/Prototypes/Catalog/Fills/Lockers/security.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
- type: StorageFill
77
contents:
88
- id: FlashlightSeclite
9+
- id: WeaponEnergyShotgun
910
- id: WeaponDisabler
1011
- id: ClothingBeltSecurityFilled
1112
- id: Flash
@@ -35,6 +36,7 @@
3536
- type: StorageFill
3637
contents:
3738
- id: FlashlightSeclite
39+
- id: WeaponEnergyShotgun
3840
- id: WeaponDisabler
3941
- id: ClothingBeltSecurityFilled
4042
- id: Flash

Resources/Prototypes/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -786,12 +786,12 @@
786786
soundGunshot:
787787
path: /Audio/Weapons/Guns/Gunshots/laser_cannon.ogg
788788
- type: ProjectileBatteryAmmoProvider
789-
proto: BulletLaserSpread
789+
proto: BulletLaserSpreadNarrow
790790
fireCost: 150
791791
- type: BatteryWeaponFireModes
792792
fireModes:
793-
- proto: BulletLaserSpread
794-
fireCost: 150
793+
#- proto: BulletLaserSpread
794+
#fireCost: 150
795795
- proto: BulletLaserSpreadNarrow
796796
fireCost: 200
797797
- proto: BulletDisablerSmgSpread

Resources/Prototypes/_StarLight/Catalog/Fills/Lockers/security.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@
122122
contents:
123123
- id: FlashlightSeclite
124124
amount: 2
125+
- id: WeaponEnergyShotgun
125126
- id: WeaponDisabler
126127
amount: 2
127128
- id: ClothingBeltSecurityFilled

Resources/Prototypes/_StarLight/Entities/Objects/Weapons/Guns/Battery/battery_guns.yml

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,4 +760,64 @@
760760
magState: mag
761761
steps: 5
762762
zeroVisible: true
763-
- type: Appearance
763+
- type: Appearance
764+
765+
- type: entity
766+
name: proto-5x energy gun
767+
parent: [BaseWeaponBattery, BaseGrandTheftContraband]
768+
id: WeaponEnergySMG
769+
description: A one-of-a-kind prototype energy sub-machine gun. It offers high energy firepower and a powerful self recharge.
770+
components:
771+
- type: Sprite
772+
sprite: _Starlight/Objects/Weapons/Guns/Battery/energy_smg.rsi
773+
layers:
774+
- state: base
775+
map: ["enum.GunVisualLayers.Base"]
776+
- state: mag-unshaded-4
777+
map: ["enum.GunVisualLayers.MagUnshaded"]
778+
shader: unshaded
779+
- type: MagazineVisuals
780+
magState: mag
781+
steps: 6
782+
zeroVisible: false
783+
- type: Appearance
784+
- type: Clothing
785+
sprite: _Starlight/Objects/Weapons/Guns/Battery/energy_smg.rsi
786+
- type: Gun
787+
fireRate: 4.5
788+
selectedMode: FullAuto
789+
availableModes:
790+
- FullAuto
791+
soundGunshot:
792+
path: /Audio/Weapons/Guns/Gunshots/laser_cannon.ogg
793+
params:
794+
volume: -2
795+
- type: ProjectileBatteryAmmoProvider
796+
proto: BulletEnergySMGLaser
797+
fireCost: 50
798+
- type: BatteryWeaponFireModes
799+
fireModes:
800+
- proto: BulletEnergySMGLaser
801+
fireCost: 50
802+
- proto: BulletEnergySMGDisabler
803+
fireCost: 25
804+
- type: Item
805+
size: Large
806+
shape:
807+
- 0,0,3,1
808+
#sprite: _Starlight/Objects/Weapons/Guns/Battery/energy_smg.rsi
809+
#heldPrefix: energy
810+
- type: Tag
811+
tags:
812+
- HighRiskItem
813+
#- type: StealTarget
814+
#stealGroup: WeaponEnergyShotgun
815+
#- type: GunRequiresWield #remove when inaccuracy on spreads is fixed
816+
- type: Battery
817+
maxCharge: 1500
818+
startingCharge: 1500
819+
- type: BatterySelfRecharger
820+
autoRecharge: true
821+
autoRechargeRate: 100
822+
autoRechargePause: true
823+
autoRechargePauseTime: 10

Resources/Prototypes/_StarLight/Entities/Objects/Weapons/Guns/Projectiles/projectiles.yml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,47 @@
145145
- type: Projectile
146146
damage:
147147
types:
148-
Poison: 10
148+
Poison: 10
149+
150+
- type: entity
151+
name : laser bolt
152+
id: BulletEnergySMGLaser
153+
parent: BulletEnergyTurretBase
154+
categories: [ HideSpawnMenu ]
155+
components:
156+
- type: Ammo
157+
muzzleFlash: MuzzleFlashEffectHeavyLaser
158+
- type: Sprite
159+
sprite: Objects/Weapons/Guns/Projectiles/projectiles_tg.rsi
160+
layers:
161+
- state: heavylaser
162+
shader: unshaded
163+
- type: Projectile
164+
impactEffect: BulletImpactEffectOrangeDisabler
165+
damage:
166+
types:
167+
Heat: 16
168+
169+
- type: entity
170+
name : disabler bolt
171+
id: BulletEnergySMGDisabler
172+
parent: BulletEnergyTurretBase
173+
categories: [ HideSpawnMenu ]
174+
components:
175+
- type: Ammo
176+
muzzleFlash: MuzzleFlashEffectOmnilaser
177+
- type: Sprite
178+
sprite: Objects/Weapons/Guns/Projectiles/projectiles_tg.rsi
179+
layers:
180+
- state: omnilaser
181+
shader: unshaded
182+
- type: StaminaDamageOnCollide
183+
damage: 20
184+
- type: Projectile
185+
impactEffect: BulletImpactEffectDisabler
186+
damage:
187+
types:
188+
Heat: 0
189+
soundHit:
190+
collection: WeakHit
191+
forceSound: true
4.03 KB
Loading
1.13 KB
Loading
833 Bytes
Loading
833 Bytes
Loading

0 commit comments

Comments
 (0)