Modular landmines (#8351)
This commit is contained in:
3
Resources/Locale/en-US/payload/payload-case.ftl
Normal file
3
Resources/Locale/en-US/payload/payload-case.ftl
Normal file
@@ -0,0 +1,3 @@
|
||||
payload-case-not-close-enough = You need to get closer to determine if {THE($ent)} has a payload installed.
|
||||
payload-case-has-payload = {CAPITALIZE(THE($ent))} has a payload installed!
|
||||
payload-case-does-not-have-payload = {CAPITALIZE(THE($ent))} does not have a payload installed.
|
||||
@@ -4,6 +4,8 @@
|
||||
components:
|
||||
- type: Clickable
|
||||
- type: InteractionOutline
|
||||
- type: Anchorable
|
||||
- type: Pullable
|
||||
- type: MovedByPressure
|
||||
- type: Physics
|
||||
bodyType: Static
|
||||
@@ -18,9 +20,20 @@
|
||||
layer:
|
||||
- LowImpassable
|
||||
- type: Sprite
|
||||
drawdepth: FloorObjects
|
||||
drawdepth: Items
|
||||
sprite: Objects/Misc/uglymine.rsi
|
||||
state: uglymine
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 50
|
||||
behaviors:
|
||||
- !type:TriggerBehavior
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: LandMine
|
||||
- type: StepTrigger
|
||||
requiredTriggeredSpeed: 0
|
||||
@@ -32,6 +45,19 @@
|
||||
components:
|
||||
- type: GhostKickUserOnTrigger
|
||||
|
||||
- type: entity
|
||||
name: modular mine
|
||||
description: This bad boy could be packing any number of dangers. Or a bike horn.
|
||||
parent: BaseLandMine
|
||||
id: LandMineModular
|
||||
components:
|
||||
- type: PayloadCase
|
||||
- type: Construction
|
||||
graph: ModularMineGraph
|
||||
node: emptyCase
|
||||
- type: LandMine
|
||||
deleteOnActivate: false
|
||||
|
||||
- type: entity
|
||||
name: explosive mine
|
||||
parent: BaseLandMine
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# TODO probably needs a base grenade
|
||||
|
||||
- type: entity
|
||||
name: explosive grenade
|
||||
description: Grenade that creates a small but devastating explosion.
|
||||
@@ -32,6 +34,7 @@
|
||||
!type:DamageTrigger
|
||||
damage: 10
|
||||
behaviors:
|
||||
- !type:TriggerBehavior
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- type: Appearance
|
||||
@@ -71,6 +74,7 @@
|
||||
!type:DamageTrigger
|
||||
damage: 10
|
||||
behaviors:
|
||||
- !type:TriggerBehavior
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- type: Appearance
|
||||
@@ -108,6 +112,7 @@
|
||||
!type:DamageTrigger
|
||||
damage: 10
|
||||
behaviors:
|
||||
- !type:TriggerBehavior
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- type: Appearance
|
||||
@@ -115,6 +120,7 @@
|
||||
- type: TimerTriggerVisualizer
|
||||
countdown_sound:
|
||||
path: /Audio/Effects/minibombcountdown.ogg
|
||||
|
||||
- type: entity
|
||||
name: the nuclear option
|
||||
description: Please don't throw it, think of the children.
|
||||
@@ -144,6 +150,7 @@
|
||||
!type:DamageTrigger
|
||||
damage: 50
|
||||
behaviors:
|
||||
- !type:TriggerBehavior
|
||||
- !type:DoActsBehavior
|
||||
acts: ["Destruction"]
|
||||
- type: Appearance
|
||||
@@ -175,6 +182,7 @@
|
||||
!type:DamageTrigger
|
||||
damage: 50
|
||||
behaviors:
|
||||
- !type:TriggerBehavior
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Appearance
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
- type: constructionGraph
|
||||
id: ModularMineGraph
|
||||
start: start
|
||||
graph:
|
||||
|
||||
- node: start
|
||||
edges:
|
||||
- to: emptyCase
|
||||
steps:
|
||||
- material: Steel
|
||||
amount: 5
|
||||
doAfter: 1
|
||||
|
||||
- node: emptyCase
|
||||
entity: LandMineModular
|
||||
edges:
|
||||
- to: wiredCase
|
||||
steps:
|
||||
- material: Cable
|
||||
doAfter: 0.5
|
||||
|
||||
- node: wiredCase
|
||||
entity: LandMineModular
|
||||
actions:
|
||||
- !type:PlaySound
|
||||
sound: /Audio/Machines/button.ogg
|
||||
edges:
|
||||
- to: emptyCase
|
||||
steps:
|
||||
- tool: Cutting
|
||||
doAfter: 0.5
|
||||
completed:
|
||||
- !type:SpawnPrototype
|
||||
prototype: CableApcStack1
|
||||
- to: mine
|
||||
steps:
|
||||
- tag: Payload
|
||||
store: payload
|
||||
name: Payload
|
||||
doAfter: 0.5
|
||||
|
||||
- node: mine
|
||||
actions:
|
||||
- !type:PlaySound
|
||||
sound: /Audio/Machines/button.ogg
|
||||
- !type:AdminLog
|
||||
message: "A mine was crafted"
|
||||
edges:
|
||||
- to: wiredCase
|
||||
steps:
|
||||
- tool: Prying
|
||||
doAfter: 0.5
|
||||
completed:
|
||||
- !type:EmptyContainer
|
||||
container: payload
|
||||
25
Resources/Prototypes/Recipes/Construction/modular.yml
Normal file
25
Resources/Prototypes/Recipes/Construction/modular.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
- type: construction
|
||||
name: Modular Grenade
|
||||
id: ModularGrenadeRecipe
|
||||
graph: ModularGrenadeGraph
|
||||
startNode: start
|
||||
targetNode: grenade
|
||||
category: Weapons
|
||||
description: Construct a grenade using a trigger and a payload.
|
||||
icon:
|
||||
sprite: Objects/Weapons/Grenades/modular.rsi
|
||||
state: complete
|
||||
objectType: Item
|
||||
|
||||
- type: construction
|
||||
name: Modular Mine
|
||||
id: ModularMineRecipe
|
||||
graph: ModularMineGraph
|
||||
startNode: start
|
||||
targetNode: mine
|
||||
category: Weapons
|
||||
description: Construct a landmine using a payload.
|
||||
icon:
|
||||
sprite: Objects/Misc/uglymine.rsi
|
||||
state: uglymine
|
||||
objectType: Item
|
||||
@@ -1,12 +0,0 @@
|
||||
- type: construction
|
||||
name: Modular Grenade
|
||||
id: ModularGrenadeRecipe
|
||||
graph: ModularGrenadeGraph
|
||||
startNode: start
|
||||
targetNode: grenade
|
||||
category: Weapons
|
||||
description: Construct a grenade using a trigger and a payload.
|
||||
icon:
|
||||
sprite: Objects/Weapons/Grenades/modular.rsi
|
||||
state: complete
|
||||
objectType: Item
|
||||
Reference in New Issue
Block a user