Define default actor half extents in settings

Player's half extents may change over time when wolfskin model is used for
example. Having it in settings is a more presistent approach.
pull/3174/head
elsid 3 years ago
parent d6613d3677
commit 144862aa35
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

@ -135,7 +135,9 @@ namespace MWWorld
: mResourceSystem(resourceSystem), mLocalScripts (mStore), : mResourceSystem(resourceSystem), mLocalScripts (mStore),
mCells (mStore, mEsm), mSky (true), mCells (mStore, mEsm), mSky (true),
mGodMode(false), mScriptsEnabled(true), mDiscardMovements(true), mContentFiles (contentFiles), mGodMode(false), mScriptsEnabled(true), mDiscardMovements(true), mContentFiles (contentFiles),
mUserDataPath(userDataPath), mShouldUpdateNavigator(false), mUserDataPath(userDataPath),
mDefaultHalfExtents(Settings::Manager::getVector3("default actor pathfind half extents", "Game")),
mShouldUpdateNavigator(false),
mActivationDistanceOverride (activationDistanceOverride), mActivationDistanceOverride (activationDistanceOverride),
mStartCell(startCell), mDistanceToFacedObject(-1.f), mTeleportEnabled(true), mStartCell(startCell), mDistanceToFacedObject(-1.f), mTeleportEnabled(true),
mLevitationEnabled(true), mGoToJail(false), mDaysInPrison(0), mLevitationEnabled(true), mGoToJail(false), mDaysInPrison(0),
@ -2471,7 +2473,6 @@ namespace MWWorld
applyLoopingParticles(player); applyLoopingParticles(player);
mDefaultHalfExtents = mPhysics->getOriginalHalfExtents(getPlayerPtr());
mNavigator->addAgent(getPathfindingHalfExtents(getPlayerConstPtr())); mNavigator->addAgent(getPathfindingHalfExtents(getPlayerConstPtr()));
} }

@ -455,3 +455,12 @@ If disabled actors without the ability to swim will not follow other actors to t
Has effect only when Navigator is enabled. Has effect only when Navigator is enabled.
This setting can be controlled in Advanced tab of the launcher. This setting can be controlled in Advanced tab of the launcher.
default actor pathfind half extents
-----------------------------------
:Type: 3D vector floating point
:Range: All components > 0
:Default: 29.27999496459961 28.479997634887695 66.5
Actor half extents used for exterior cells to generate navmesh.

@ -373,6 +373,9 @@ graphic herbalism = true
# (true, false) # (true, false)
allow actors to follow over water surface = true allow actors to follow over water surface = true
# Default size of actor for navmesh generation
default actor pathfind half extents = 29.27999496459961 28.479997634887695 66.5
[General] [General]
# Anisotropy reduces distortion in textures at low angles (e.g. 0 to 16). # Anisotropy reduces distortion in textures at low angles (e.g. 0 to 16).

Loading…
Cancel
Save