Drones (#6448)
This commit is contained in:
@@ -44,3 +44,18 @@
|
||||
prototypes:
|
||||
- MobCorgi
|
||||
- MobCorgiOld
|
||||
|
||||
## Player-controlled
|
||||
|
||||
- type: entity
|
||||
name: Drone Spawner
|
||||
id: SpawnMobDrone
|
||||
parent: MarkerBase
|
||||
components:
|
||||
- type: Sprite
|
||||
layers:
|
||||
- state: green
|
||||
- texture: Mobs/Silicon/drone.rsi/shell.png
|
||||
- type: ConditionalSpawner
|
||||
prototypes:
|
||||
- Drone
|
||||
|
||||
135
Resources/Prototypes/Entities/Mobs/Player/silicon.yml
Normal file
135
Resources/Prototypes/Entities/Mobs/Player/silicon.yml
Normal file
@@ -0,0 +1,135 @@
|
||||
- type: entity
|
||||
save: false
|
||||
abstract: true
|
||||
id: PlayerSiliconBase #for player controlled silicons
|
||||
components:
|
||||
- type: Reactive
|
||||
groups:
|
||||
Acidic: [Touch]
|
||||
- type: Input
|
||||
context: "human"
|
||||
- type: MovedByPressure
|
||||
- type: DamageOnHighSpeedImpact
|
||||
damage:
|
||||
types:
|
||||
Blunt: 5
|
||||
soundHit:
|
||||
path: /Audio/Effects/hit_kick.ogg
|
||||
- type: Clickable
|
||||
- type: Damageable
|
||||
damageContainer: Inorganic
|
||||
- type: InteractionOutline
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
# Circles, cuz rotation of rectangles looks very bad
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.35
|
||||
mass: 20
|
||||
mask:
|
||||
- Impassable
|
||||
- MobImpassable
|
||||
- VaultImpassable
|
||||
- SmallImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
- type: MovementSpeedModifier
|
||||
baseWalkSpeed : 4
|
||||
baseSprintSpeed : 3
|
||||
- type: Sprite
|
||||
noRot: true
|
||||
drawdepth: Mobs
|
||||
- type: Physics
|
||||
bodyType: KinematicController
|
||||
- type: Hands
|
||||
- type: Body
|
||||
template: DroneTemplate
|
||||
preset: DronePreset
|
||||
- type: DoAfter
|
||||
- type: Pullable
|
||||
- type: Examiner
|
||||
- type: Puller
|
||||
- type: Recyclable
|
||||
safe: false
|
||||
- type: StandingState
|
||||
- type: Alerts
|
||||
|
||||
- type: entity
|
||||
name: drone
|
||||
id: Drone
|
||||
parent: PlayerSiliconBase
|
||||
components:
|
||||
- type: Drone
|
||||
tools:
|
||||
- id: PowerDrill
|
||||
- id: JawsOfLife
|
||||
- id: WelderExperimental
|
||||
- type: GhostTakeoverAvailable
|
||||
makeSentient: true
|
||||
name: Maintenance Drone
|
||||
description: Maintain the station. Ignore organics.
|
||||
rules: |
|
||||
You are bound by these laws both in-game and out-of-character:
|
||||
1. You may not involve yourself in the matters of another being, even if such matters conflict with Law Two or Law Three, unless the other being is another Drone.
|
||||
2. You may not harm any being, regardless of intent or circumstance.
|
||||
3. Your goals are to build, maintain, repair, improve, and power to the best of your abilities, You must never actively work against these goals.
|
||||
- type: MovementSpeedModifier
|
||||
baseWalkSpeed : 6
|
||||
baseSprintSpeed : 6
|
||||
- type: MobState
|
||||
thresholds:
|
||||
0: !type:NormalMobState {}
|
||||
70: !type:DeadMobState {}
|
||||
- type: Sprite
|
||||
drawdepth: Mobs
|
||||
netsync: false
|
||||
layers:
|
||||
- state: shell
|
||||
sprite: Mobs/Silicon/drone.rsi
|
||||
- type: Fixtures
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.25
|
||||
mass: 5
|
||||
mask:
|
||||
- VaultImpassable
|
||||
layer:
|
||||
- Opaque
|
||||
- type: Tag
|
||||
- type: Access
|
||||
tags:
|
||||
- Maintenance
|
||||
- Cargo
|
||||
# - Quartermaster
|
||||
- Engineering
|
||||
- ChiefEngineer
|
||||
- Medical
|
||||
- ChiefMedicalOfficer
|
||||
- Research
|
||||
- ResearchDirector
|
||||
- Security
|
||||
- Service
|
||||
- Captain
|
||||
- Command
|
||||
- External
|
||||
- HeadOfSecurity
|
||||
- HeadOfPersonnel
|
||||
- Bar
|
||||
- Hydroponics
|
||||
- Kitchen
|
||||
- Janitor
|
||||
- Theatre
|
||||
- type: Appearance
|
||||
visuals:
|
||||
- type: GenericEnumVisualizer
|
||||
key: enum.DroneVisuals.Status
|
||||
layer: 0
|
||||
states:
|
||||
enum.DroneStatus.Off: shell
|
||||
enum.DroneStatus.On: drone
|
||||
- type: ReplacementAccent
|
||||
accent: silicon
|
||||
- type: Repairable
|
||||
fuelcost: 15
|
||||
doAfterDelay: 8
|
||||
@@ -160,6 +160,7 @@
|
||||
- Dropper
|
||||
- Syringe
|
||||
- PillCanister
|
||||
- Drone
|
||||
- Flash
|
||||
- Handcuffs
|
||||
- Stunbaton
|
||||
|
||||
Reference in New Issue
Block a user