From c3307c03190486ac7256069c0f6c12b5bfbbe5fe Mon Sep 17 00:00:00 2001 From: Tenteratus <143085120+Tenteratus@users.noreply.github.com> Date: Mon, 28 Aug 2023 11:50:02 +0300 Subject: [PATCH] Explosion package --- .../objects/weapons/bombs/plastic.ftl | 3 + .../objects/weapons/bombs/plastic.ftl | 3 + .../Objects/Weapons/Bombs/plastic.yml | 63 ++++++++++++++++++ .../Bombs/explosion_package.rsi/icon.png | Bin 0 -> 461 bytes .../Bombs/explosion_package.rsi/meta.json | 23 +++++++ .../Bombs/explosion_package.rsi/primed.png | Bin 0 -> 518 bytes 6 files changed, 92 insertions(+) create mode 100644 Resources/Textures/Objects/Weapons/Bombs/explosion_package.rsi/icon.png create mode 100644 Resources/Textures/Objects/Weapons/Bombs/explosion_package.rsi/meta.json create mode 100644 Resources/Textures/Objects/Weapons/Bombs/explosion_package.rsi/primed.png diff --git a/Resources/Locale/en-US/ss14-ru/prototypes/entities/objects/weapons/bombs/plastic.ftl b/Resources/Locale/en-US/ss14-ru/prototypes/entities/objects/weapons/bombs/plastic.ftl index 7a9e5212944835..40a1fdc05f122b 100644 --- a/Resources/Locale/en-US/ss14-ru/prototypes/entities/objects/weapons/bombs/plastic.ftl +++ b/Resources/Locale/en-US/ss14-ru/prototypes/entities/objects/weapons/bombs/plastic.ftl @@ -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 = { "" } diff --git a/Resources/Locale/ru-RU/ss14-ru/prototypes/entities/objects/weapons/bombs/plastic.ftl b/Resources/Locale/ru-RU/ss14-ru/prototypes/entities/objects/weapons/bombs/plastic.ftl index 3b92704e8ef1a8..25a0208681a0bb 100644 --- a/Resources/Locale/ru-RU/ss14-ru/prototypes/entities/objects/weapons/bombs/plastic.ftl +++ b/Resources/Locale/ru-RU/ss14-ru/prototypes/entities/objects/weapons/bombs/plastic.ftl @@ -1,3 +1,6 @@ ent-C4 = взрывчатка C-4 .desc = Используется для проделывания аккуратных, не слишком больших, брешей в местах закладки. Любимое средство диверсантов. .suffix = { "" } +ent-ExplosionPackage = Взрывпакет + .desc = Специальное взрывное устройство для штурма помещений. + .suffix = { "" } diff --git a/Resources/Prototypes/Entities/Objects/Weapons/Bombs/plastic.yml b/Resources/Prototypes/Entities/Objects/Weapons/Bombs/plastic.yml index 4d9fed1f914db1..0b73c0bdf3ad3c 100644 --- a/Resources/Prototypes/Entities/Objects/Weapons/Bombs/plastic.yml +++ b/Resources/Prototypes/Entities/Objects/Weapons/Bombs/plastic.yml @@ -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 } diff --git a/Resources/Textures/Objects/Weapons/Bombs/explosion_package.rsi/icon.png b/Resources/Textures/Objects/Weapons/Bombs/explosion_package.rsi/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..21bba7e2f875fefed3ca8eb3c9dbe434434abfc7 GIT binary patch literal 461 zcmV;;0W$uHP)uq(~HqA_OElIxav%?;I;->YOOK>EHv%o{5= z3n9D&*g4D{#~~SE9L8fFDj|{(06XHHTb4z6o==YTJnvK~%v%NETrh`8(=-?77*6Is zQ3iluE^{yZ8Nk}QU4SqQPv4Uyxh??AqqlGRs!Dpc`^WP&q%=*h2LQpmuIusWNp%@D zfT85?zn7pGkC#4vS^y03vfI(eeos1527vkJ;h+tn3;@$jE5H!CS`2`9{?zX(ujoYp zXhc)p5av^jN(+EnEBE=i#|`G38)T~?1VB$m!jVlx5Fo0m(gPS{lu{;yIbvL&2}wB< zG6aGpvK=ZRlWoG|jbhnE)9@(Y4(;bF&cA zTY!ECYxPUSh# z27q9$@+>?IU~O#|AW4$j`#jH|3jp(v_an7!Gpu!=4sQt+Me#fU2e z%0It;--4yf&j>)6Vxz&1XCk9jU}|m*u!gn=fIWZedz~$M5daRNsnZbVQwNn1fH+#k zIX}1DU@qzg)!C2&V5y4r)6w=eA_iapD*&7ia6Z8KfDq>ckI;4j?B@f{k=o&j_l9M6NNnT- z&0Rj=+Q