spring: develop 9364b3cb | [ Diff ] [ Back to Repository ] | |||
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
rt | rt | develop | 2012-02-03 18:09:28 | develop 97b1c6d3 |
Changeset | un-hardcode the DepthMod equation new MoveDef parameters "depthModMinHeight", defaults to 0.0 "depthModMaxHeight", defaults to +inf "depthModQuadraticCoeff", defaults to 0.0 "depthModLinearCoeff", defaults to 0.1 (deprecates "depthMod") "depthModConstantCoeff", defaults to 1.0 new formula is given by if h < "depthModMinHeight": 1.0 if h > "depthModMaxHeight": 1.0 else: depthScale = MAX(0.01, MIN("depthModMaxValue", (a * h * h) + (b * h) + c)) depthMod = 1 / depthScale where h = unit's absolute height below water surface a = "depthModQuadraticCoeff" b = "depthModLinearCoeff" c = "depthModConstantCoeff" |
|||
mod - rts/ExternalAI/SSkirmishAICallbackImpl.cpp | [ Diff ] [ File ] | |||
mod - rts/Lua/LuaUnitDefs.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/MoveTypes/MoveInfo.cpp | [ Diff ] [ File ] | |||
mod - rts/Sim/MoveTypes/MoveInfo.h | [ Diff ] [ File ] | |||
mod - rts/Sim/MoveTypes/MoveMath/GroundMoveMath.cpp | [ Diff ] [ File ] |