Explosions and Grenades, Triggers, OnDestroy, OnExAct, Fueltanks and destructible tables (#247)

* initial explosiveComponent

* remove garbagee

* assets

* tile mass deletion baby

* grenades

* tweaks

* Update Content.Server/GameObjects/Components/Explosion/ExplosiveComponent.cs

Co-Authored-By: Pieter-Jan Briers <pieterjan.briers@gmail.com>

* Ex_act based on damage, fixes and tweaks

* One finishing touch

Done the most cringe way

* ex_act explosions, tables are destructible now

also adds fuel tanks

* adds ex_act to mobs
This commit is contained in:
Injazz
2019-06-07 16:15:20 +05:00
committed by Pieter-Jan Briers
parent f1aeaaa640
commit 10801af2f7
42 changed files with 756 additions and 18 deletions

View File

@@ -18,6 +18,43 @@
- type: Collidable
- type: Storage
Capacity: 60
- type: Damageable
- type: Destructible
thresholdvalue: 100
placement:
snap:
- Wall
- type: entity
id: weldtank
name: Fueltank
description: A storage tank containing welding fuel.
components:
- type: Sprite
texture: Buildings/weldtank.png
- type: Icon
texture: Buildings/weldtank.png
- type: Clickable
- type: BoundingBox
aabb: "-0.5,-0.25,0.5,0.25"
- type: Collidable
mask: 3
IsScrapingFloor: true
- type: Physics
mass: 15
Anchored: false
- type: Damageable
- type: Destructible
thresholdvalue: 10
- type: Explosive
devastationRange: 1
heavyImpactRange: 2
lightImpactRange: 4
flashRange: 5
placement:
snap:

View File

@@ -0,0 +1,74 @@
- type: entity
name: Explosive Grenade
description: Grenade that creates small devastating explosion
parent: BaseItem
id: ExGrenade
components:
- type: Sprite
sprite: Objects/grenade.rsi
layers:
- state: icon
map: ["enum.TriggerVisualLayers.Base"]
- type: Icon
sprite: Objects/grenade.rsi
state: icon
- type: Item
Size: 5
- type: OnUseTimerTrigger
delay: 5
- type: Explosive
devastationRange: 1
heavyImpactRange: 3
lightImpactRange: 5
flashRange: 7
- type: Damageable
- type: Destructible
thresholdvalue: 10
- type: Appearance
visuals:
- type: TimerTriggerVisualizer2D
countdown_sound: /Audio/effects/countdown.ogg
- type: entity
name: Syndicate Minibomb
description: A syndicate manufactured explosive used to sow destruction and chaos.
parent: BaseItem
id: SyndieMiniBomb
components:
- type: Sprite
sprite: Objects/syndgrenade.rsi
layers:
- state: icon
map: ["enum.TriggerVisualLayers.Base"]
- type: Icon
sprite: Objects/syndgrenade.rsi
state: icon
- type: Item
Size: 5
- type: OnUseTimerTrigger
delay: 5
- type: Explosive
devastationRange: 3
heavyImpactRange: 5
lightImpactRange: 7
flashRange: 10
- type: Damageable
- type: Destructible
thresholdvalue: 10
- type: Appearance
visuals:
- type: TimerTriggerVisualizer2D
countdown_sound: /Audio/effects/countdown.ogg

View File

@@ -136,3 +136,21 @@
- type: Sound
- type: EmitSoundOnUse
sound: /Audio/items/bikehorn.ogg
- type: entity
name: Table Parts
parent: BaseItem
id: TableParts
description: Parts of a table.
components:
- type: Sprite
sprite: Objects/table_parts.rsi
state: icon
- type: Icon
sprite: Objects/table_parts.rsi
state: icon
- type: Item
Size: 25
sprite: Objects/table_parts.rsi

View File

@@ -25,6 +25,9 @@
Anchored: false
- type: EntityStorage
- type: PlaceableSurface
- type: Damageable
- type: Destructible
thresholdvalue: 100
- type: Appearance
visuals:
- type: StorageVisualizer2D

View File

@@ -21,3 +21,8 @@
- type: IconSmooth
key: tables
base: solid_
- type: Damageable
- type: Destructible
thresholdvalue: 50
spawnondestroy: TableParts