Admin ghosts can now interact with stuff (#4178)
* Ghosts now have a bool for interacting with stuff * Wrong ghost * Simping for Swept * Merge cleanup * IT'S ODNE Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
14
Resources/Prototypes/Body/Templates/aghost.yml
Normal file
14
Resources/Prototypes/Body/Templates/aghost.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
- type: bodyTemplate
|
||||
id: AGhostTemplate
|
||||
name: "humanoid"
|
||||
centerSlot: "torso"
|
||||
slots:
|
||||
left arm: Arm
|
||||
left hand: Hand
|
||||
right arm: Arm
|
||||
right hand: Hand
|
||||
connections:
|
||||
left arm:
|
||||
- left hand
|
||||
right arm:
|
||||
- right hand
|
||||
@@ -5,6 +5,11 @@
|
||||
name: admin observer
|
||||
abstract: true
|
||||
components:
|
||||
- type: Input
|
||||
context: "aghost"
|
||||
- type: Ghost
|
||||
canInteract: true
|
||||
- type: Hands
|
||||
- type: PlayerInputMover
|
||||
- type: Physics
|
||||
bodyType: Kinematic
|
||||
@@ -17,3 +22,6 @@
|
||||
mask:
|
||||
- GhostImpassable
|
||||
status: InAir
|
||||
- type: Body
|
||||
template: AGhostTemplate
|
||||
preset: HumanPreset
|
||||
|
||||
@@ -10,10 +10,11 @@
|
||||
- type: InteractionOutline
|
||||
- type: Physics
|
||||
bodyType: KinematicController
|
||||
fixedRotation: true
|
||||
fixtures:
|
||||
- shape:
|
||||
!type:PhysShapeAabb
|
||||
bounds: "-0.35,-0.35,0.35,0.35"
|
||||
!type:PhysShapeCircle
|
||||
radius: 0.35
|
||||
mass: 5
|
||||
mask:
|
||||
- GhostImpassable
|
||||
|
||||
Reference in New Issue
Block a user