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

@@ -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