-
Notifications
You must be signed in to change notification settings - Fork 167
Description
Prerequisites
- I have searched for similar issues and confirmed this is not a duplicate
Game Version
- Command & Conquer Generals
- Command & Conquer Generals: Zero Hour
- Other (please specify below)
Bug Description
Units with tracks have 2 major issues.
- They lose all momentum when having to make to big of a turn, easiest visible when trying to pathfind between buildings.
Both the USA and China dozer have the same settings except for these 2 things.
MinTurnSpeed = 25 ; in dist/sec (0 for the china dozer)
Appearance = FOUR_WHEELS (TREADS for the china dozer)
And yet with a clear headstart the USA dozer can catch up to the CHINA dozer.
https://github.com/user-attachments/assets/bfd04361-b31e-4112-a8ff-cbd9b7fb09e8
- Units with tracks when they have to move out of the way for other units they tend to keep turning to the left and the right in front of the unit its trying to drive away for. But cause of it losing all its momentum each time it turns, it doesnt really change its location at all. Just causing traffic jams.
Still can happen for units with wheels but less likely, sicne they will drive forward while turning and there for not stay in one place.
I dont have an example of this on video yet.
What needs to be done.
Code in the use of minimum turn speed for untis with tracks, So when you set the minimum turnspeed, the unit slows down to that set speed when turning but does not go down to 0. So it can move forward and turn at the same time.
If the unit has to turn too much it like lets say 180 degreese it will not take this speed into consideration, and turns on its tracks without having any speed attached to it. Otherwise the units will look weird when turning.
If this is code is working like intended we can then change the ini files for these set units seperatly with the already given MinTurnSpeed which is set on 0 for units with tracks. To fine tune these units to make them way less annoying and more responsive.
Reproduction Steps
- place loads of buildings to make pathfinding a bit more complex.
- then send a USA dozer and a china dozer to go through these buildings and watch the USA dozer take less time to go to the end.
Additional Context
No response