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:
Swept
2021-08-22 20:14:52 -07:00
committed by GitHub
parent 007cd32667
commit 49b81b2587
9 changed files with 80 additions and 68 deletions

View 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

View File

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

View File

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