Skip to content

Commit

Permalink
Grandpa toys collection and flamethrower try (#181)
Browse files Browse the repository at this point in the history
* guns and flamethrower try

---------

Co-authored-by: Peptide90 <[email protected]>
  • Loading branch information
PatoGrone and Peptide90 authored May 4, 2024
1 parent aa21575 commit 4a10334
Show file tree
Hide file tree
Showing 92 changed files with 1,005 additions and 5 deletions.
Binary file not shown.
Binary file modified Resources/Audio/Weapons/Guns/EmptyAlarm/smg_empty_alarm.ogg
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
- type: entity
id: BaseMagazine308Rifle
name: "magazine (308.)"
parent: BaseItem
abstract: true
components:
- type: Tag
tags:
- N14Magazine308Rifle
- type: BallisticAmmoProvider
mayTransfer: true
whitelist:
tags:
- N14Cartridge308Rifle
proto: N14Cartridge308Rifle
capacity: 21
- type: ContainerContainer
containers:
ballistic-ammo: !type:Container
- type: Sprite
netsync: false
sprite: Nuclear14/Objects/Weapons/Guns/Ammunition/Magazines/308/mag.rsi
layers:
- state: base
map: ["enum.GunVisualLayers.Base"]
- state: mag-1
map: ["enum.GunVisualLayers.Mag"]
- type: MagazineVisuals
magState: mag
steps: 2
zeroVisible: false
- type: Appearance

- type: entity
id: Magazine308Rifle
name: "magazine (308.)"
parent: BaseMagazine308Rifle
components:
- type: BallisticAmmoProvider
proto: N14Cartridge308Rifle

- type: entity
id: ClipMagazine308Rifle
name: "clip (308.)"
parent: BaseMagazine308Rifle
components:
- type: Tag
tags:
- N14Clip308Rifle
- type: BallisticAmmoProvider
proto: N14Cartridge308Rifle
capacity: 8
- type: Sprite
netsync: false
sprite: Nuclear14/Objects/Weapons/Guns/Ammunition/Magazines/308/mag2.rsi
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@
proto: N14CartridgePistol45

- type: entity
id: BaseMagazine45SubMachineGun
id: Magazine45SubMachineGun
name: SMG magazine (45. auto)
parent: BaseItem
abstract: true
components:
- type: Tag
tags:
Expand All @@ -53,6 +52,7 @@
tags:
- N14CartridgePistol45
capacity: 25
proto: N14CartridgePistol45
- type: ContainerContainer
containers:
ballistic-ammo: !type:Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,18 @@
- type: Sprite
netsync: false
sprite: Nuclear14/Objects/Weapons/Guns/Ammunition/Magazines/5.56/mag2.rsi

- type: entity
id: LMGMagazine5.56Rifle
name: "LMG magazine (5.56mm)"
parent: BaseMagazine5.56Rifle
components:
- type: Tag
tags:
- N14LMGMagazine5.56Rifle
- type: BallisticAmmoProvider
proto: N14Cartridge5.56Rifle
capacity: 55
- type: Sprite
netsync: false
sprite: Nuclear14/Objects/Weapons/Guns/Ammunition/Magazines/5.56/maglmg.rsi
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,20 @@
- type: BallisticAmmoProvider
proto: N14CartridgePistol9


- type: entity
id: N14MagazineSMG9mm
name: SMG magazine (9mm)
parent: N14BaseMagazine9mmPistol
components:
- type: Sprite
sprite: Nuclear14/Objects/Weapons/Guns/Ammunition/Magazines/9mm/smgmag.rsi
- type: BallisticAmmoProvider
whitelist:
tags:
- N14CartridgePistol9
capacity: 31
proto: N14CartridgePistol9
- type: MagazineVisuals
magState: mag
steps: 2
zeroVisible: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
- type: entity
id: BaseFire
name: BaseFire
description: This is fine.
abstract: true
components:
- type: Reflective
- type: FlyBySound
- type: Clickable
- type: Sprite
noRot: false
sprite: Nuclear14/Objects/Weapons/Guns/Ammunition/Projectiles/Flames.rsi
layers:
- state: flames
shader: unshaded
- type: Physics
bodyType: Dynamic
linearDamping: 0
angularDamping: 0
- type: Fixtures
fixtures:
projectile:
shape:
!type:PhysShapeAabb
bounds: "-0.1,-0.1,0.1,0.1"
hard: false
mask:
- Impassable
- BulletImpassable
fly-by: &flybyfixture
shape: !type:PhysShapeCircle
radius: 1.5
layer:
- Impassable
- MidImpassable
- HighImpassable
- LowImpassable
hard: False
- type: Projectile
impactEffect: BulletImpactEffect
damage:
types:
Burn: 5
soundHit:
path: /Audio/Weapons/Guns/Hits/energy_meat1.ogg
- type: PointLight
enabled: true
color: "#ff4300"
radius: 2.0
energy: 7.0
- type: IgniteOnCollide
fireStacks: 0.30
- type: TimedDespawn
lifetime: 10

- type: entity
id: FireProjectile
name: fire
parent: BaseFire
noSpawn: true
components:
- type: IgniteOnCollide
fireStacks: 0.40
- type: TimedDespawn
lifetime: 0.2

- type: entity
id: BaseFireExplosiveProjectile
name: fire
parent: BaseBulletTrigger
noSpawn: true
components:
- type: Projectile
damage:
types:
Burn: 1
- type: PointLight
enabled: true
color: "#ff4300"
radius: 2.0
energy: 7.0
- type: IgniteOnCollide
fireStacks: 1
- type: ExplodeOnTrigger
- type: Explosive
explosionType: Default
maxIntensity: 2 # max 30 per tile
intensitySlope: 1
totalIntensity: 1 # 60 total damage to distribute over tiles
maxTileBreak: 1

- type: entity
id: FireExplosive
name: fire
parent: BaseFireExplosiveProjectile
noSpawn: true
components:
- type: Projectile
damage:
types:
Burn: 1
- type: PointLight
enabled: true
color: "#ff4300"
radius: 2.0
energy: 7.0
- type: IgniteOnCollide
fireStacks: 0.15
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
- type: entity
id: WeaponFireGunBase
abstract: true
parent: BaseItem
components:
- type: Sprite
sprite: Objects/Weapons/Guns/Pistols/water_pistol.rsi
- type: Item
sprite: Objects/Weapons/Guns/Pistols/water_pistol.rsi
size: Huge
- type: Gun
cameraRecoilScalar: 0 #no recoil
fireRate: 10
selectedMode: FullAuto
availableModes:
- FullAuto
soundGunshot:
path: /Audio/Nuclear14/Weapons/Flames/flamer.ogg
- type: SolutionContainerManager
solutions:
chamber:
maxVol: 500
reagents:
- ReagentId: WeldingFuel
Quantity: 500
- type: SolutionAmmoProvider
solutionId: chamber
proto: FireProjectile
- type: SolutionTransfer
transferAmount: 5
maxTransferAmount: 50
minTransferAmount: 5
canChangeTransferAmount: true
- type: UserInterface
interfaces:
- key: enum.TransferAmountUiKey.Key
type: TransferAmountBoundUserInterface
- type: DrawableSolution
solution: chamber
- type: RefillableSolution
solution: chamber
- type: DrainableSolution
solution: chamber
- type: ExaminableSolution
solution: chamber
- type: StaticPrice
price: 100

- type: entity
id: WeaponFlamer
parent: WeaponFireGunBase
name: Flamer
description: A light flamethrower designed for close quarters combat, it also works to heat a excellent BBQ.
components:
- type: Gun
cameraRecoilScalar: 0 #no recoil
fireRate: 20
selectedMode: FullAuto
availableModes:
- FullAuto
- type: Sprite
sprite: Objects/Weapons/Guns/Pistols/soaker.rsi
layers:
- state: detail1
- state: detail2
map: ["enum.PowerDeviceVisualLayers.Powered"]
- state: icon
map: [ "enum.DamageStateVisualLayers.Base" ]
- type: Item
sprite: Objects/Weapons/Guns/Pistols/soaker.rsi
size: Normal
Loading

0 comments on commit 4a10334

Please sign in to comment.