StrafeAirMoveType.cpp minimum throttle control #785
Replies: 2 comments 1 reply
-
|
@KyleAnthonyShepherd What's the status of this discussion, is this still an open issue? |
Beta Was this translation helpful? Give feedback.
-
|
As an easy workaround for this specific case I think one can just temporarily reduce the maximum (so the 30% scales down accordingly). Being arcane with a billion magic constants is a more general problem with fixed-wing (strafing) airplace behaviour, where afaict gamedevs mostly just throw semi-blind number tweaks at a wall and see what sticks enough to make an airplane behave approximately reasonably. I'm not sure how to best approach it but maybe waiting for specific feedback/recommendations from somebody willing to delve into using it would be best. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
As implemented, a StrafeAirMoveType unit chasing and attacking another air unit can only reduce throttle to 30% of its maximum.
This leads to some fast aircraft unable to stay behind slower aircraft.
https://github.com/beyond-all-reason/spring/blob/BAR105/rts/Sim/MoveTypes/StrafeAirMoveType.cpp#L785
I propose a new UnitDef that allows the 0.7f factor to be defined on a per-unit basis, so that units can disable throttle reduction (value of 0) and make full speed flybys, or even be able to apply reverse throttle (value greater than 1) if rangeLim is also small enough.
Beta Was this translation helpful? Give feedback.
All reactions