make legs affect movement speed with body (#12928)

Co-authored-by: DrSmugleaf <DrSmugleaf@users.noreply.github.com>
This commit is contained in:
Nemanja
2022-12-09 20:08:47 -05:00
committed by GitHub
parent 45b72d4852
commit 9db34a4e8a
20 changed files with 114 additions and 3 deletions

View File

@@ -37,6 +37,7 @@
components:
- type: BodyPart
partType: Leg
- type: MovementSpeedModifier
- type: entity
id: FeetAnimal

View File

@@ -118,6 +118,9 @@
- type: BodyPart
partType: Leg
symmetry: Left
- type: MovementSpeedModifier
baseWalkSpeed : 1.5
baseSprintSpeed : 3.5
- type: entity
id: RightLegDiona
@@ -131,6 +134,9 @@
- type: BodyPart
partType: Leg
symmetry: Right
- type: MovementSpeedModifier
baseWalkSpeed : 1.5
baseSprintSpeed : 3.5
- type: entity
id: LeftFootDiona

View File

@@ -136,6 +136,7 @@
- type: BodyPart
partType: Leg
symmetry: Left
- type: MovementSpeedModifier
- type: entity
id: RightLegHuman
@@ -152,6 +153,7 @@
- type: BodyPart
partType: Leg
symmetry: Right
- type: MovementSpeedModifier
- type: entity
id: LeftFootHuman

View File

@@ -134,6 +134,9 @@
- type: BodyPart
partType: Leg
symmetry: Left
- type: MovementSpeedModifier
baseWalkSpeed : 2.7
baseSprintSpeed : 4.5
- type: entity
id: RightLegReptilian
@@ -150,6 +153,9 @@
- type: BodyPart
partType: Leg
symmetry: Right
- type: MovementSpeedModifier
baseWalkSpeed : 2.7
baseSprintSpeed : 4.5
- type: entity
id: LeftFootReptilian

View File

@@ -149,6 +149,7 @@
- type: BodyPart
partType: Leg
symmetry: Left
- type: MovementSpeedModifier
- type: entity
id: RightLegSkeleton
@@ -165,6 +166,7 @@
- type: BodyPart
partType: Leg
symmetry: Right
- type: MovementSpeedModifier
- type: entity
id: LeftFootSkeleton

View File

@@ -135,6 +135,7 @@
- type: BodyPart
partType: Leg
symmetry: Left
- type: MovementSpeedModifier
- type: entity
id: RightLegSlime
@@ -151,6 +152,7 @@
- type: BodyPart
partType: Leg
symmetry: Right
- type: MovementSpeedModifier
- type: entity
id: LeftFootSlime

View File

@@ -136,6 +136,7 @@
- type: BodyPart
partType: Leg
symmetry: Left
- type: MovementSpeedModifier
- type: entity
id: RightLegVox
@@ -152,6 +153,7 @@
- type: BodyPart
partType: Leg
symmetry: Right
- type: MovementSpeedModifier
- type: entity
id: LeftFootVox

View File

@@ -711,6 +711,7 @@
speechSounds: Monkey
- type: Body
prototype: Primate
requiredLegs: 1 # TODO: More than 1 leg
- type: DamageStateVisuals
states:
Alive:

View File

@@ -50,6 +50,7 @@
Piercing: 8
- type: Body
prototype: Rat
requiredLegs: 1 # TODO: More than 1 leg
- type: Hunger # probably should be prototyped
thresholds:
Overfed: 200
@@ -225,6 +226,7 @@
Piercing: 3
- type: Body
prototype: Rat
requiredLegs: 1 # TODO: More than 1 leg
- type: Hunger # probably should be prototyped
thresholds:
Overfed: 200

View File

@@ -177,6 +177,7 @@
species: Human
- type: Body
prototype: Human
requiredLegs: 2
- type: Damageable
damageContainer: Biological
- type: RadiationReceiver
@@ -366,6 +367,7 @@
species: Human
- type: Body
prototype: Human
requiredLegs: 2
- type: Damageable
damageContainer: Biological
- type: MobState

View File

@@ -15,6 +15,7 @@
state: full
- type: Body
prototype: Diona
requiredLegs: 2
- type: Damageable
damageContainer: Biological
damageModifierSet: Diona

View File

@@ -24,6 +24,7 @@
scale: 1, 0.8
- type: Body
prototype: Human
requiredLegs: 2
- type: entity
save: false

View File

@@ -14,6 +14,7 @@
state: full
- type: Body
prototype: Reptilian
requiredLegs: 2
- type: LizardAccent
- type: Speech
speechSounds: Lizard

View File

@@ -12,6 +12,7 @@
state: full
- type: Body
prototype: Skeleton
requiredLegs: 2
gibSound: /Audio/Effects/bone_rattle.ogg
- type: Damageable
damageContainer: Biological

View File

@@ -11,6 +11,7 @@
state: full
- type: Body
prototype: Slime
requiredLegs: 2
- type: Humanoid
species: SlimePerson
- type: Speech

View File

@@ -81,6 +81,7 @@
- map: [ "pocket2" ]
- type: Body
prototype: Vox
requiredLegs: 2
# Vox nitrogen stuff is handled in their metabolism
- type: Respirator
damage:
@@ -110,4 +111,5 @@
species: Vox
- type: Body
prototype: Vox
requiredLegs: 2