spring: develop 855c78d3 | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
rt | rt | develop | 2012-03-24 00:59:38 | develop 865d9bb8 |
Changeset | fix (probably) all instances of "changing unit speed does not work anymore" (2877/3016) scripts can now arbitrarily override the UnitDef values, which are only used for initialization NOTE: using Spring.SetUnitCOBValue(unitID, MAX_SPEED, v) only works when the unit already has an order and is NOT permanent, the next move command will undo it (only the "wanted" maximum speed is modified for the duration of the order) Spring.MoveCtrl.SetGroundMoveTypeData(unitID, "maxSpeed", v) _is_ permanent: all subsequent move commands will use "v" to set the "wanted" maximum speed (none will make the unit move any faster than v, even if the "wanted" speed is later increased) |
|||
mod - rts/Game/SelectedUnitsAI.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaSyncedMoveCtrl.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaSyncedRead.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/MoveTypes/GroundMoveType.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/MoveTypes/GroundMoveType.h | [ Diff ] [ File ] | |||
mod - rts/Sim/MoveTypes/MoveType.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/MoveTypes/MoveType.h | [ Diff ] [ File ] | |||
mod - rts/Sim/Units/CommandAI/CommandAI.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/Units/CommandAI/MobileCAI.cpp | [ Diff ] [ File ] |