Hardbombs & Defusables (#15380)
Co-authored-by: Kara <lunarautomaton6@gmail.com> Co-authored-by: Just-a-Unity-Dev <just-a-unity-dev@users.noreply.github.com> Co-authored-by: LankLTE <twlowe06@gmail.com> Co-authored-by: LankLTE <135308300+LankLTE@users.noreply.github.com>
This commit is contained in:
@@ -239,6 +239,16 @@
|
||||
categories:
|
||||
- UplinkExplosives
|
||||
|
||||
- type: listing
|
||||
id: UplinkSyndicateBomb
|
||||
name: uplink-syndicate-bomb-name
|
||||
description: uplink-syndicate-bomb-desc
|
||||
productEntity: SyndicateBomb
|
||||
cost:
|
||||
Telecrystal: 11
|
||||
categories:
|
||||
- UplinkExplosives
|
||||
|
||||
# Ammo
|
||||
|
||||
- type: listing
|
||||
|
||||
156
Resources/Prototypes/Entities/Structures/Machines/bombs.yml
Normal file
156
Resources/Prototypes/Entities/Structures/Machines/bombs.yml
Normal file
@@ -0,0 +1,156 @@
|
||||
- type: entity
|
||||
abstract: true
|
||||
parent: BaseStructure
|
||||
id: BaseHardBomb
|
||||
description: Just keep talking and nobody will explode.
|
||||
name: hardbomb
|
||||
components:
|
||||
- type: Appearance
|
||||
- type: WiresVisuals
|
||||
- type: InteractionOutline
|
||||
- type: UserInterface
|
||||
interfaces:
|
||||
- key: enum.WiresUiKey.Key
|
||||
type: WiresBoundUserInterface
|
||||
- type: Wires
|
||||
LayoutId: Defusable
|
||||
alwaysRandomize: true
|
||||
- type: Defusable
|
||||
- type: Explosive
|
||||
explosionType: Default
|
||||
totalIntensity: 20.0
|
||||
intensitySlope: 5
|
||||
maxIntensity: 4
|
||||
- type: ExplodeOnTrigger
|
||||
- type: OnUseTimerTrigger
|
||||
delay: 90
|
||||
delayOptions: [90, 120, 150, 180, 210, 240, 270, 300]
|
||||
initialBeepDelay: 0
|
||||
beepSound: /Audio/Machines/Nuke/general_beep.ogg
|
||||
- type: Anchorable
|
||||
delay: 5
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
- type: Transform
|
||||
noRot: true
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
fix1:
|
||||
shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.45,-0.45,0.45,0.45"
|
||||
density: 190
|
||||
mask:
|
||||
- MachineMask
|
||||
layer:
|
||||
- MachineLayer
|
||||
- type: WiresPanel
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
damageModifierSet: Metallic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 100
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- !type:ExplodeBehavior
|
||||
- !type:PlaySoundBehavior
|
||||
sound:
|
||||
path: /Audio/Effects/metalbreak.ogg
|
||||
- type: GuideHelp
|
||||
openOnActivation: true
|
||||
guides:
|
||||
- Defusal
|
||||
|
||||
- type: entity
|
||||
parent: BaseHardBomb
|
||||
id: TrainingBomb
|
||||
name: training bomb
|
||||
description: A bomb for dummies, manual not included.
|
||||
components:
|
||||
- type: Wires
|
||||
LayoutId: TrainingDefusable
|
||||
alwaysRandomize: true
|
||||
- type: Sprite
|
||||
sprite: Structures/Machines/bomb.rsi
|
||||
layers:
|
||||
- state: training-bomb
|
||||
- state: training-bomb-active
|
||||
visible: false
|
||||
map: [ "primed" ]
|
||||
- state: training-bomb-wires
|
||||
visible: false
|
||||
map: [ "enum.WiresVisualLayers.MaintenancePanel" ]
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DefusableVisuals.Active:
|
||||
primed:
|
||||
True: { visible: true }
|
||||
False: { visible: false }
|
||||
enum.WiresVisualLayers.MaintenancePanel:
|
||||
enum.WiresVisualLayers.MaintenancePanel:
|
||||
True: { visible: true }
|
||||
False: { visible: false }
|
||||
- type: PointLight
|
||||
color: "#0063C7"
|
||||
radius: 1.1
|
||||
softness: 1
|
||||
- type: Explosive
|
||||
explosionType: Default
|
||||
totalIntensity: 5.0
|
||||
intensitySlope: 5
|
||||
maxIntensity: 4
|
||||
- type: Defusable
|
||||
disposable: false
|
||||
|
||||
- type: entity
|
||||
parent: BaseHardBomb
|
||||
id: SyndicateBomb
|
||||
name: syndicate bomb
|
||||
description: A bomb for Syndicate operatives and agents alike. The real deal, no more training, get to it!
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Structures/Machines/bomb.rsi
|
||||
layers:
|
||||
- state: syndicate-bomb
|
||||
- state: syndicate-bomb-active
|
||||
visible: false
|
||||
map: [ "primed" ]
|
||||
- state: syndicate-bomb-wires
|
||||
visible: false
|
||||
map: [ "enum.WiresVisualLayers.MaintenancePanel" ]
|
||||
- type: GenericVisualizer
|
||||
visuals:
|
||||
enum.DefusableVisuals.Active:
|
||||
primed:
|
||||
True: { visible: true }
|
||||
False: { visible: false }
|
||||
enum.WiresVisualLayers.MaintenancePanel:
|
||||
enum.WiresVisualLayers.MaintenancePanel:
|
||||
True: { visible: true }
|
||||
False: { visible: false }
|
||||
- type: PointLight
|
||||
color: "#C7001B"
|
||||
radius: 1.1
|
||||
softness: 1
|
||||
- type: Explosive
|
||||
explosionType: HardBomb
|
||||
totalIntensity: 4000.0
|
||||
intensitySlope: 3
|
||||
maxIntensity: 400
|
||||
|
||||
- type: entity
|
||||
parent: SyndicateBomb
|
||||
id: DebugHardBomb
|
||||
name: debug bomb
|
||||
suffix: DEBUG
|
||||
description: Holy shit this is gonna explode
|
||||
components:
|
||||
- type: Defusable
|
||||
disposable: true
|
||||
- type: OnUseTimerTrigger
|
||||
delay: 10
|
||||
delayOptions: [10, 20, 30, 60, 90, 120, 150, 180, 210, 240, 270, 300]
|
||||
@@ -4,8 +4,14 @@
|
||||
text: "/ServerInfo/Guidebook/Security/Security.xml"
|
||||
children:
|
||||
- DNA
|
||||
- Defusal
|
||||
|
||||
- type: guideEntry
|
||||
id: DNA
|
||||
name: guide-entry-dna
|
||||
text: "/ServerInfo/Guidebook/Security/DNA.xml"
|
||||
|
||||
- type: guideEntry
|
||||
id: Defusal
|
||||
name: guide-entry-defusal
|
||||
text: "/ServerInfo/Guidebook/Security/Defusal.xml"
|
||||
|
||||
@@ -96,3 +96,25 @@
|
||||
- !type:DoorBoltLightWireAction
|
||||
- !type:DoorTimingWireAction
|
||||
- !type:DoorSafetyWireAction
|
||||
|
||||
- type: wireLayout
|
||||
id: Defusable
|
||||
dummyWires: 3
|
||||
wires:
|
||||
- !type:ActivateWireAction
|
||||
- !type:BoltWireAction
|
||||
- !type:DelayWireAction
|
||||
- !type:ProceedWireAction
|
||||
- !type:BoomWireAction
|
||||
- !type:BoomWireAction
|
||||
- !type:BoomWireAction
|
||||
|
||||
- type: wireLayout
|
||||
id: TrainingDefusable
|
||||
dummyWires: 0
|
||||
wires:
|
||||
- !type:ActivateWireAction
|
||||
- !type:BoltWireAction
|
||||
- !type:DelayWireAction
|
||||
- !type:ProceedWireAction
|
||||
- !type:BoomWireAction
|
||||
|
||||
@@ -101,3 +101,19 @@
|
||||
lightColor: Orange
|
||||
texturePath: /Textures/Effects/fire.rsi
|
||||
fireStates: 6
|
||||
|
||||
- type: explosion
|
||||
id: HardBomb
|
||||
damagePerIntensity:
|
||||
types:
|
||||
Heat: 15
|
||||
Blunt: 15
|
||||
Piercing: 6
|
||||
Structural: 15
|
||||
tileBreakChance: [ 0.75, 0.95, 1 ]
|
||||
tileBreakIntensity: [ 1, 10, 15 ]
|
||||
tileBreakRerollReduction: 30
|
||||
intensityPerState: 20
|
||||
lightColor: Orange
|
||||
texturePath: /Textures/Effects/fire.rsi
|
||||
fireStates: 6
|
||||
|
||||
Reference in New Issue
Block a user