mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-29 21:45:32 +00:00
Add an option to restore MCP-like movement behavior
This commit is contained in:
parent
c7ac06b960
commit
34ea9ea813
4 changed files with 16 additions and 1 deletions
|
@ -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><html><head/><body><p>Don't use race weight in NPC movement speed calculations.</p></body></html></string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Normalise race speed</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue