Phobos icon indicating copy to clipboard operation
Phobos copied to clipboard

[Highly Customized] New `AdvancedDrive` locomotor

Open CrimRecya opened this issue 8 months ago • 6 comments

  • AdvancedDrive locomotor ({4A582751-9839-11d1-B709-00A024DDAFD1}) is an improved Drive locomotor ({4A582741-9839-11d1-B709-00A024DDAFD1}) that can serve as a complete upper level replacement for it.
  • It fixes the issue where Drive cannot correctly crush objects during rapid turns.
  • It has smoother uphill and downhill dynamic visual effects.
  • It has the function of driving the unit backwards.
    • AdvancedDrive.ReverseSpeed controls the speed ratio when reversing.
    • AdvancedDrive.FaceTargetRange controls how close the unit is to its target, allowing reversing.
    • AdvancedDrive.MinimumDistance controls how close the unit is to its destination, allowing reversing.
    • AdvancedDrive.ConfrontEnemies controls whether to maitain the frontal movement towards the enemy within the aforementioned distance and no longer automatically selects by the current orientation.
    • AdvancedDrive.RetreatDuration controls how long since the unit was last injured, allowing reversing.

In rulesmd.ini:

[SOMEVEHICLE]                  ; VehicleType
Locomotor=AdvancedDrive              ; Locomotor
AdvancedDrive.ReverseSpeed=0.85      ; floating point value
AdvancedDrive.FaceTargetRange=16.0   ; floating point value
AdvancedDrive.MinimumDistance=2.5    ; floating point value
AdvancedDrive.ConfrontEnemies=true   ; boolean
AdvancedDrive.RetreatDuration=150    ; integer, game frames

CrimRecya avatar Apr 10 '25 15:04 CrimRecya

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

github-actions[bot] avatar Apr 10 '25 15:04 github-actions[bot]

The reverse function, when used in conjunction with #1623 and #1480, can provide a more complete gaming function. While when used in conjunction with KeepTargetOnMove and KeepRange, it can enhance the player's gaming experience. reverse

CrimRecya avatar Apr 11 '25 06:04 CrimRecya

Irregardless of any other factors (I have not had time to do in-depth review yet), the name probably needs to be something less ambiguous than Skilled.

Starkku avatar Apr 11 '25 07:04 Starkku

Irregardless of any other factors (I have not had time to do in-depth review yet), the name probably needs to be something less ambiguous than Skilled.

Well, it's indeed not quite clear. Do you have any suggestions?

CrimRecya avatar Apr 11 '25 08:04 CrimRecya

AdvancedDrive?

Metadorius avatar Apr 11 '25 08:04 Metadorius

AdvancedDrive?

At first, I thought of SkilledDrive, but I felt it was too long, so I changed it to the current one. But obviously, this is confusing.

CrimRecya avatar Apr 11 '25 08:04 CrimRecya

I don't know exactly what is going on, but it looks like AdvancedDrive.Reverse.Speed= doesn't always activate and the unit might drive backwards using its regular speed. Tested with hover version of this locomotor, firing at empty ground and then moving the tested units away. Also, it looks like the unit for which it didn't activate will stop reversing faster than the one for which it did activate.

This is the code i used.

OpportunityFire=yes
MobileFire=yes
KeepTargetOnMove=yes
Speed=10
Locomotor=AdvancedDrive
AdvancedDrive.Reverse=yes
AdvancedDrive.Reverse.FaceTarget=yes
AdvancedDrive.Reverse.FaceTargetRange=7
AdvancedDrive.Reverse.MinimumDistance=0.5
AdvancedDrive.Reverse.RetreatDuration=30
AdvancedDrive.Reverse.Speed=0.6
AdvancedDrive.Hover=yes
AdvancedDrive.Hover.Sink=no
AdvancedDrive.Hover.Spin=no
AdvancedDrive.Hover.Tilt=yes
MovementZone=Amphibious
SpeedType=Hover
AccelerationFactor=1
DeaccelerationFactor=0

Is there perhaps something tied to weapon's ROF? The tested units have two weapons, one with ROF 5 and the other with 60, and firing different weapons before reversing might explain the discrepancy.

mevitar avatar Nov 03 '25 19:11 mevitar