Port honkbots from nyano (#9698)

This commit is contained in:
Rane
2022-07-15 03:54:34 -04:00
committed by GitHub
parent 5c7eea3e42
commit abab5bedcd
18 changed files with 337 additions and 12 deletions

View 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.

View 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

View File

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