Skip to content

Commit

Permalink
Add separate locomotors for China Emperor Tank
Browse files Browse the repository at this point in the history
  • Loading branch information
xezon committed Apr 8, 2023
1 parent d6a324b commit d22ba56
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 6 deletions.
34 changes: 30 additions & 4 deletions Patch104pZH/GameFilesEdited/Data/INI/Locomotor.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4530,10 +4530,10 @@ End
;------------------------------------------------------------------------------
Locomotor Tank_OverlordLocomotor
Surfaces = GROUND
Speed = 25 ; in dist/sec
SpeedDamaged = 25 ; in dist/sec
TurnRate = 60 ;25 ; in degrees/sec
TurnRateDamaged = 60 ;20 ; in degrees/sec
Speed = 20 ; in dist/sec
SpeedDamaged = 20 ; in dist/sec
TurnRate = 60 ; in degrees/sec
TurnRateDamaged = 60 ; in degrees/sec
Acceleration = 15 ; in dist/(sec^2)
AccelerationDamaged = 15 ; in dist/(sec^2)
Braking = 50 ; in dist/(sec^2)
Expand All @@ -4551,6 +4551,32 @@ Locomotor Tank_OverlordLocomotor
LateralAccelerationRollFactor = 0.33 ; How much cornering will cause the chassis to roll.
End

;------------------------------------------------------------------------------
; Patch104p @feature Dedicated Locomotor for upgraded Emperor Tank.
;------------------------------------------------------------------------------
Locomotor Tank_NuclearOverlordLocomotor
Surfaces = GROUND
Speed = 30 ; 50% faster than normal
SpeedDamaged = 30 ; 50% faster than normal
TurnRate = 60 ; in degrees/sec
TurnRateDamaged = 60 ; in degrees/sec
Acceleration = 30 ; 100% faster than normal
AccelerationDamaged = 30 ; 100% faster than normal
Braking = 50 ; in dist/(sec^2)
MinTurnSpeed = 0 ; in dist/sec
ZAxisBehavior = NO_Z_MOTIVE_FORCE
Appearance = TREADS

AccelerationPitchLimit = 2 ; Angle limit how far chassis will lift or roll from acceleration.
DecelerationPitchLimit = 2 ; Angle limit how far chassis will dip from deceleration.
PitchStiffness = 0.05 ; stiffness of the "springs" in the suspension forward & back.
RollStiffness = 0.05 ; stiffness of the "springs" in the suspension side to side.
PitchDamping = 0.8 ; How fast it damps. 0=perfect spring, bounces forever. 1=glued to terrain.
RollDamping = 0.3 ; How fast it damps. 0=perfect spring, bounces forever. 1=glued to terrain.
ForwardAccelerationPitchFactor = 0.5 ; How much acceleration will cause the front to lift, or dip for stops.
LateralAccelerationRollFactor = 0.33 ; How much cornering will cause the chassis to roll.
End

;------------------------------------------------------------------------------
Locomotor ListeningOutpostLocomotor
Surfaces = GROUND
Expand Down
4 changes: 2 additions & 2 deletions Patch104pZH/GameFilesEdited/Data/INI/Object/TankGeneral.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3056,8 +3056,8 @@ Object Tank_ChinaTankEmperor ; Alias Tank_ChinaTankOverlord
AutoAcquireEnemiesWhenIdle = Yes
End

Locomotor = SET_NORMAL OverlordLocomotor
Locomotor = SET_NORMAL_UPGRADED NuclearOverlordLocomotor
Locomotor = SET_NORMAL Tank_OverlordLocomotor ; Patch104p @tweak from OverlordLocomotor
Locomotor = SET_NORMAL_UPGRADED Tank_NuclearOverlordLocomotor ; Patch104p @tweak from NuclearOverlordLocomotor

Behavior = FireWeaponWhenDeadBehavior ModuleTag_04
DeathWeapon = NuclearTankDeathWeapon
Expand Down

0 comments on commit d22ba56

Please sign in to comment.