1
0
forked from 0ad/0ad
0ad/source/simulation2/scripting
wraitii f34fb5614c Improve behaviour of formations stuck within other units.
Large units risk being stuck between other units. This is true in
general, but particularly weird with formations, since individual units
may well not be stuck, only the invisible formation controller.
This alleviates the issue by ordering units to move individually when
the controller appears stuck.

It introduces a new "VERY_OBSTRUCTED" unit motion message, which
triggers when a unit has failed to move for several turns.

Reported By: Angen
Reviewed By: Freagarach
Fixes #4935

Differential Revision: https://code.wildfiregames.com/D3209
This was SVN commit r24511.
2021-01-05 10:12:47 +00:00
..
EngineScriptConversions.cpp Add a function to query a global object, including JS classes, from C++ 2020-12-17 17:51:18 +00:00
JSInterface_Simulation.cpp [SM78 2/2] Update to Spidermonkey 78 APIs 2020-12-06 14:03:02 +00:00
JSInterface_Simulation.h Mass rename CxPrivate to CmptPrivate. 2020-11-13 16:44:15 +00:00
MessageTypeConversions.cpp Improve behaviour of formations stuck within other units. 2021-01-05 10:12:47 +00:00
ScriptComponent.cpp Correctly serialize/deserialize user-defined JS objects. 2020-12-27 17:18:13 +00:00
ScriptComponent.h Correctly serialize/deserialize user-defined JS objects. 2020-12-27 17:18:13 +00:00