Port honkbots from nyano (#9698)
This commit is contained in:
130
Resources/Prototypes/Entities/Mobs/NPCs/silicon.yml
Normal file
130
Resources/Prototypes/Entities/Mobs/NPCs/silicon.yml
Normal file
@@ -0,0 +1,130 @@
|
||||
- type: entity
|
||||
save: false
|
||||
abstract: true
|
||||
id: MobSiliconBase
|
||||
components:
|
||||
- type: Reactive
|
||||
groups:
|
||||
Acidic: [Touch]
|
||||
- type: Clickable
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
- type: Bloodstream
|
||||
bloodReagent: Oil
|
||||
bloodlossDamage:
|
||||
types:
|
||||
Bloodloss:
|
||||
1
|
||||
bloodlossHealDamage:
|
||||
types:
|
||||
Bloodloss:
|
||||
-0.25
|
||||
- type: InteractionOutline
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.35
|
||||
mass: 20
|
||||
mask:
|
||||
- MobMask
|
||||
layer:
|
||||
- MobLayer
|
||||
- type: MovementSpeedModifier
|
||||
baseWalkSpeed : 3
|
||||
baseSprintSpeed : 4
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
drawdepth: Mobs
|
||||
netsync: false
|
||||
- type: Recyclable
|
||||
safe: false
|
||||
- type: UtilityAI
|
||||
behaviorSets:
|
||||
- Idle
|
||||
- type: AiFactionTag
|
||||
factions:
|
||||
- SimpleNeutral
|
||||
- type: HealthExaminable
|
||||
examinableTypes:
|
||||
- Blunt
|
||||
- Slash
|
||||
- Piercing
|
||||
- Heat
|
||||
- Shock
|
||||
- type: MovedByPressure
|
||||
- type: Physics
|
||||
bodyType: KinematicController # Same for all inheritors
|
||||
- type: DrawableSolution
|
||||
solution: bloodstream
|
||||
- type: StatusEffects
|
||||
allowed:
|
||||
- Stun
|
||||
- KnockedDown
|
||||
- SlowedDown
|
||||
- Stutter
|
||||
- Electrocution
|
||||
- type: NameIdentifier
|
||||
group: GenericNumber
|
||||
- type: Repairable
|
||||
fuelcost: 15
|
||||
doAfterDelay: 8
|
||||
- type: Pullable
|
||||
- type: Tag
|
||||
tags:
|
||||
- DoorBumpOpener
|
||||
- type: MobState
|
||||
thresholds:
|
||||
0: Alive
|
||||
120: Dead
|
||||
- type: Destructible
|
||||
thresholds:
|
||||
- trigger:
|
||||
!type:DamageTrigger
|
||||
damage: 120
|
||||
behaviors:
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
- type: Input
|
||||
context: "human"
|
||||
- type: PlayerInputMover
|
||||
- type: PlayerMobMover
|
||||
|
||||
- type: entity
|
||||
parent: MobSiliconBase
|
||||
id: MobHonkBot
|
||||
name: honkbot
|
||||
description: Horrifying.
|
||||
components:
|
||||
- type: SpamEmitSound
|
||||
sound:
|
||||
collection: BikeHorn
|
||||
- type: UtilityAI
|
||||
behaviorSets:
|
||||
- Idle
|
||||
- type: Sprite
|
||||
drawdepth: Mobs
|
||||
sprite: Mobs/Silicon/Bots/honkbot.rsi
|
||||
state: honkbot
|
||||
- type: Slippery
|
||||
launchForwardsMultiplier: 6.0
|
||||
- type: StepTrigger
|
||||
intersectRatio: 0.2
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.35
|
||||
mass: 8
|
||||
mask:
|
||||
- MobMask
|
||||
layer:
|
||||
- MobLayer
|
||||
- SlipLayer
|
||||
- type: Construction
|
||||
graph: HonkBot
|
||||
node: bot
|
||||
- type: GhostTakeoverAvailable
|
||||
makeSentient: true
|
||||
name: honkbot
|
||||
description: An artificial being of pure evil.
|
||||
12
Resources/Prototypes/Entities/Objects/Misc/botparts.yml
Normal file
12
Resources/Prototypes/Entities/Objects/Misc/botparts.yml
Normal file
@@ -0,0 +1,12 @@
|
||||
- type: entity
|
||||
parent: BaseItem
|
||||
id: ProximitySensor
|
||||
name: proximity sensor
|
||||
description: Senses things in close proximity.
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/Misc/proximity_sensor.rsi
|
||||
state: icon
|
||||
- type: Tag
|
||||
tags:
|
||||
- ProximitySensor
|
||||
@@ -196,6 +196,9 @@
|
||||
- PowerCellSmall
|
||||
- PowerCellMedium
|
||||
- PowerCellHigh
|
||||
- ProximitySensor
|
||||
- LeftArmBorg
|
||||
- RightArmBorg
|
||||
- type: ActivatableUI
|
||||
key: enum.LatheUiKey.Key #Yes only having 1 of them here doesn't break anything
|
||||
- type: ActivatableUIRequiresPower
|
||||
|
||||
Reference in New Issue
Block a user