TheSuperHackers / GeneralsGamePatch

Community Patch to fix and improve original Generals Zero Hour 1.04
Other
53 stars 19 forks source link

Under certain conditions China Dragon Tank can shoot on bunker but does not clear its occupants #48

Open xezon opened 2 years ago

xezon commented 2 years ago

Under certain conditions China Dragon Tank can shoot on bunker but does not clear its occupants. Reproducible on Defcon 6 map with white bunkers in front of main bases. Does not happen always.

RisingZH commented 2 years ago

Would be great to find a fix to this, one of the most annoying bugs I would say.

Madrageeeeee commented 2 years ago

Also happens in tournament desert original version.

I think it has to do with the flamer being on a different ‘level’ than the building it is trying to clear. If it has to flame ‘upwards’ it can not clear the building? Or something of the sort. I think it is terrain / angle related in any case

xezon commented 1 year ago

Madrageeeeee, much wisdom.

xezon commented 1 year ago
Locomotor DragonTankFlameLocomotor
Locomotor
  Surfaces
  Speed
  SpeedDamaged
  MinSpeed
  TurnRate
  TurnRateDamaged
  Acceleration
  AccelerationDamaged
  Lift
  LiftDamaged
  Braking
  MinTurnSpeed
  PreferredHeight
  PreferredHeightDamping
  CirclingRadius
  SpeedLimitZ
  Extra2DFriction
  MaxThrustAngle
  ZAxisBehavior
  Appearance
  GroupMovementPriority
  AccelerationPitchLimit
  DecelerationPitchLimit
  BounceAmount
  PitchStiffness
  RollStiffness
  PitchDamping
  RollDamping
  PitchInDirectionOfZVelFactor
  ThrustRoll
  ThrustWobbleRate
  ThrustMinWobble
  ThrustMaxWobble
  ForwardVelocityPitchFactor
  LateralVelocityRollFactor
  ForwardAccelerationPitchFactor
  LateralAccelerationRollFactor
  UniformAxialDamping
  TurnPivotOffset
  AirborneTargetingHeight
  CloseEnoughDist
  CloseEnoughDist3D
  SlideIntoPlaceTime
  LocomotorWorksWhenDead
  AllowAirborneMotiveForce
  Apply2DFrictionWhenAirborne
  DownhillOnly
  StickToGround
  CanMoveBackwards
  HasSuspension
  MaximumWheelExtension
  MaximumWheelCompression
  FrontWheelTurnAngle
  WanderWidthFactor
  WanderLengthFactor
  WanderAboutPointRadius
  RudderCorrectionDegree
  RudderCorrectionRate
  ElevatorCorrectionDegree
  ElevatorCorrectionRate
xezon commented 1 year ago

To fix up- and downhill targeting, we likely need to add a new locomotor setting MaxThrustPitch.

That is because increasing the Dragons MaxThrustAngle of 1 will not just thrust flames up- and downhill, but also sideways on passing targets and thus increase flame hit chance.