-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Grandpa toys collection and flamethrower try (#181)
* guns and flamethrower try --------- Co-authored-by: Peptide90 <[email protected]>
- Loading branch information
Showing
92 changed files
with
1,005 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
55 changes: 55 additions & 0 deletions
55
Resources/Prototypes/Nuclear14/Entities/Objects/Weapons/Guns/Ammunition/Magazines/308.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
108 changes: 108 additions & 0 deletions
108
Resources/Prototypes/Nuclear14/Entities/Objects/Weapons/Guns/Ammunition/Projectiles/fire.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
71 changes: 71 additions & 0 deletions
71
Resources/Prototypes/Nuclear14/Entities/Objects/Weapons/Guns/Flamers/Flamers.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.