Skip to content

Commit

Permalink
Explosion package
Browse files Browse the repository at this point in the history
  • Loading branch information
Tenteratus committed Aug 28, 2023
1 parent c5fce9e commit c3307c0
Show file tree
Hide file tree
Showing 6 changed files with 92 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ent-C4 = composition C-4
.desc = Used to put holes in specific areas without too much extra hole. A saboteur's favorite.
.suffix = { "" }
ent-ExplosionPackage = Explosion package
.desc = A special explosive device for storming premises.
.suffix = { "" }
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ent-C4 = взрывчатка C-4
.desc = Используется для проделывания аккуратных, не слишком больших, брешей в местах закладки. Любимое средство диверсантов.
.suffix = { "" }
ent-ExplosionPackage = Взрывпакет
.desc = Специальное взрывное устройство для штурма помещений.
.suffix = { "" }
63 changes: 63 additions & 0 deletions Resources/Prototypes/Entities/Objects/Weapons/Bombs/plastic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,66 @@
base:
Primed: { state: primed }
Unprimed: { state: complete }

- type: entity
name: explosion package
description: A special explosive device for storming premises.
parent: BaseItem
id: ExplosionPackage
components:
- type: Sprite
sprite: Objects/Weapons/Bombs/explosion_package.rsi
state: icon
layers:
- state: icon
map: ["base"]
- type: Item
sprite: Objects/Weapons/Bombs/explosion_package.rsi
size: 5
- type: OnUseTimerTrigger
delay: 5
delayOptions: [5, 10, 15, 20, 30]
initialBeepDelay: 0
beepSound: /Audio/Machines/Nuke/general_beep.ogg
startOnStick: true
canToggleStartOnStick: true
- type: TriggerOnSignal
- type: DeviceLinkSink
ports:
- Trigger
- type: Sticky
stickDelay: 1
unstickDelay: 1
stickPopupStart: comp-sticky-start-stick-bomb
stickPopupSuccess: comp-sticky-success-stick-bomb
unstickPopupStart: comp-sticky-start-unstick-bomb
unstickPopupSuccess: comp-sticky-success-unstick-bomb
blacklist: # can't stick it to other items
components:
- Item
- type: Explosive # Powerful explosion in a very small radius. Doesn't break underplating.
explosionType: DemolitionCharge
totalIntensity: 15
intensitySlope: 20
maxIntensity: 20
canCreateVacuum: false
- type: ExplodeOnTrigger
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:ExplodeBehavior
- type: StickyVisualizer
- type: Appearance
- type: GenericVisualizer
visuals:
enum.Trigger.TriggerVisuals.VisualState:
base:
Primed: { state: primed }
Unprimed: { state: complete }
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
@@ -0,0 +1,23 @@
{
"version": 1,
"license": "CC-BY-SA-3.0",
"copyright": "Taken from tgstation at https://github.com/tgstation/tgstation/commit/b13d244d761a07e200a9a41730bd446e776020d5",
"size": {
"x": 32,
"y": 32
},
"states": [
{
"name": "icon"
},
{
"name": "primed",
"delays": [
[
0.1,
0.1
]
]
}
]
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c3307c0

Please sign in to comment.