Disable nudge_force object avoidance
-
Alright, this one’s been driving me nuts. Would it be possible to disable the auto-avoidance which uses nudge_force to automatically push you away from nearby objects when in goto or dock? I originally attacked this by simply setting nudge_force to 0, however this disables any strafing ability for AI and also breaks docking sequences, which rely on nudge_force to line you (and AI ships) up with the dock.
Auto-object avoidance gets in the way of docking with complex bases (it’s trying to line you up with the dock while also pushing you away from child objects of the base - see Freeport 1, Freeport 6, Freeport 10 and Nansei Research Complex for good examples), and also really gets in the way of formation flight (any time you form up with a battleship like a KB or RB, it starts auto-avoiding you even if quite far already).
I’ve been hunting all day for this but have come up empty handed; anything that could be done would be greatly appreciated.
-
Not sure about this one, I think it might have the same effect as nudge_force = 0, which is what this does just for CNudgeEngine::do_simulation_controller.
common.dll 04D3D9 D98120010000->D9EE90909090
Another thing to try is NUDGE_CHANGE_THRESHOLD:
common.dll 13E518 0.0001f
-
Awesome! The second offset controls exactly what I’m looking for - it controls the sensitivity for which nudge_force is used, so raising it a little stops excessive auto-dodging while still preserving proper AI strafing and docking alignment. Many thanks!