This commit is contained in:
Alex Evgrashin
2022-04-15 01:00:50 +03:00
committed by GitHub
parent e769ad2725
commit fe4dbfd2f6
18 changed files with 556 additions and 10 deletions

View File

@@ -169,6 +169,17 @@
- id: PlushieNuke
- id: PlushieLizard
- type: entity
parent: ClothingBackpackDuffelSyndicate
id: ClothingBackpackDuffelSyndicateC4tBundle
name: syndicate C-4 bundle
description: "Contains a lot of C-4 charges."
components:
- type: StorageFill
contents:
- id: C4
amount: 8
- type: entity
parent: ClothingBackpackDuffelSyndicate
id: ClothingBackpackDuffelSyndicateHardsuitBundle

View File

@@ -90,17 +90,21 @@
itemId: MobGrenadePenguin
price: 6
#- type: uplinkListing
# id: UplinkExplosiveC4
# category: Weapons
# itemId: ExplosiveC4
# price: 5
- type: uplinkListing
id: UplinkC4
category: Explosives
itemId: C4
price: 2
description: >
C-4 is plastic explosive of the common variety Composition C. You can use it to breach walls, airlocks or sabotage equipment.
It can be attached to almost all objects and has a modifiable timer with a minimum setting of 10 seconds.
#- type: uplinkListing
# id: UplinkDuffelExplosiveC4
# category: Weapons
# itemId: DuffelExplosiveC4
# price: 15
- type: uplinkListing
id: UplinkC4Bundle
category: Explosives
itemId: ClothingBackpackDuffelSyndicateC4tBundle
price: 12 # 25% off
description: Because sometimes quantity is quality. Contains 8 C-4 plastic explosives.
# Ammo

View File

@@ -0,0 +1,50 @@
- type: entity
name: composition C-4
description: Used to put holes in specific areas without too much extra hole. A saboteur's favorite.
parent: BaseItem
id: C4
components:
- type: Sprite
sprite: Objects/Weapons/Bombs/c4.rsi
state: icon
- type: Item
sprite: Objects/Weapons/Bombs/c4.rsi
size: 10
- type: OnUseTimerTrigger
delay: 10
delayOptions: [10, 30, 60, 120, 300]
initialBeepDelay: 0
beepSound: /Audio/Machines/Nuke/general_beep.ogg
startOnStick: true
- type: Sticky
stickDelay: 5
unstickDelay: 5
stickPopupStart: comp-sticky-start-stick-bomb
stickPopupSuccess: comp-sticky-success-stick-bomb
unstickPopupStart: comp-sticky-start-unstick-bomb
unstickPopupSuccess: comp-sticky-success-unstick-bomb
- type: Explosive # Powerful explosion in a very small radius. Doesn't break underplating.
explosionType: Default
maxIntensity: 300
intensitySlope: 100
totalIntensity: 300
canCreateVacuum: false
- type: ExplodeOnTrigger
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 10
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- type: StickyVisualizer
- type: Appearance
visuals:
- type: GenericEnumVisualizer
key: enum.Trigger.TriggerVisuals.VisualState
states:
enum.Trigger.TriggerVisualState.Primed: primed
enum.Trigger.TriggerVisualState.Unprimed: complete