Skip to content

Commit 18d05ae

Browse files
committed
Expose m_MoveProximityLimit, and make it lower
1 parent 530a471 commit 18d05ae

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

Entities/Actor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void Actor::Clear() {
125125
m_MoveVector.Reset();
126126
m_MovePath.clear();
127127
m_UpdateMovePath = true;
128-
m_MoveProximityLimit = 75.0F;
128+
m_MoveProximityLimit = 20.0F;
129129
m_AIBaseDigStrength = c_PathFindingDefaultDigStrength;
130130
m_BaseMass = std::numeric_limits<float>::infinity();
131131

Entities/Actor.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,6 +1368,18 @@ ClassInfoGetters;
13681368
/// <param name="newRecoverDelay">The recovery delay, in MS.</param>
13691369
void SetStableRecoverDelay(int newRecoverDelay) { m_StableRecoverDelay = newRecoverDelay; }
13701370

1371+
/// <summary>
1372+
/// Gets the distance in which the Actor will have considered itself to have reached it's waypoint.
1373+
/// </summary>
1374+
/// <returns>The move proximity limit.</returns>
1375+
float GetMoveProximityLimit() const { return m_MoveProximityLimit; }
1376+
1377+
/// <summary>
1378+
/// Sets the distance in which the Actor will have considered itself to have reached it's waypoint.
1379+
/// </summary>
1380+
/// <param name="newProximityLimit">The move proximity limit.</param>
1381+
void SetMoveProximityLimit(float newProximityLimit) { m_MoveProximityLimit = newProximityLimit; }
1382+
13711383
/// <summary>
13721384
/// Gets whether or not this Actor has the organic flag set and should be considered as organic.
13731385
/// </summary>

Lua/LuaBindingsEntities.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ namespace RTE {
239239
.property("DigStrength", &Actor::EstimateDigStrength)
240240
.property("SceneWaypoints", &LuaAdaptersActor::GetSceneWaypoints, luabind::adopt(luabind::return_value) + luabind::return_stl_iterator)
241241
.property("LimbPushForcesAndCollisionsDisabled", &Actor::GetLimbPushForcesAndCollisionsDisabled, &Actor::SetLimbPushForcesAndCollisionsDisabled)
242+
.property("MoveProximityLimit", &Actor::GetMoveProximityLimit, &Actor::SetMoveProximityLimit)
242243

243244
.def_readwrite("MOMoveTarget", &Actor::m_pMOMoveTarget)
244245
.def_readwrite("MovePath", &Actor::m_MovePath, luabind::return_stl_iterator)

0 commit comments

Comments
 (0)