Add an option to restore MCP-like movement behavior

pull/2329/head
Capostrophic 6 years ago
parent c7ac06b960
commit 34ea9ea813

@ -81,6 +81,7 @@ bool Launcher::AdvancedPage::loadSettings()
unarmedFactorsStrengthComboBox->setCurrentIndex(unarmedFactorsStrengthIndex);
loadSettingBool(requireAppropriateAmmunitionCheckBox, "only appropriate ammunition bypasses resistance", "Game");
loadSettingBool(magicItemAnimationsCheckBox, "use magic item animations", "Game");
loadSettingBool(normaliseRaceSpeedCheckBox, "normalise race speed", "Game");
// Input Settings
loadSettingBool(allowThirdPersonZoomCheckBox, "allow third person zoom", "Input");
@ -141,6 +142,7 @@ void Launcher::AdvancedPage::saveSettings()
mEngineSettings.setInt("strength influences hand to hand", "Game", unarmedFactorsStrengthIndex);
saveSettingBool(requireAppropriateAmmunitionCheckBox, "only appropriate ammunition bypasses resistance", "Game");
saveSettingBool(magicItemAnimationsCheckBox, "use magic item animations", "Game");
saveSettingBool(normaliseRaceSpeedCheckBox, "normalise race speed", "Game");
// Input Settings
saveSettingBool(allowThirdPersonZoomCheckBox, "allow third person zoom", "Input");

@ -2372,7 +2372,7 @@ void CharacterController::update(float duration, bool animationOnly)
moved.x() *= scale;
moved.y() *= scale;
if(mPtr.getClass().isNpc())
if (mPtr.getClass().isNpc() && !Settings::Manager::getBool("normalise race speed", "Game"))
{
const ESM::NPC* npc = mPtr.get<ESM::NPC>()->mBase;
const ESM::Race* race = world->getStore().get<ESM::Race>().find(npc->mRace);

@ -261,6 +261,9 @@ only appropriate ammunition bypasses resistance = false
# Use casting animations for magic items, just as for spells
use magic item animations = false
# Don't use race weight in NPC movement speed calculations
normalise race speed = false
[General]
# Anisotropy reduces distortion in textures at low angles (e.g. 0 to 16).

@ -159,6 +159,16 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="normaliseRaceSpeedCheckBox">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Don't use race weight in NPC movement speed calculations.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Normalise race speed</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>

Loading…
Cancel
Save