Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explosion package #233

Merged
merged 8 commits into from
Sep 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }
AruMoon marked this conversation as resolved.
Show resolved Hide resolved
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.
Loading