File tree 1 file changed +14
-1
lines changed
Code/client/Services/Generic
1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 26
26
#include < PlayerCharacter.h>
27
27
#include < Forms/TESObjectCELL.h>
28
28
#include < Forms/TESGlobal.h>
29
+ #include < Games/TES.h>
29
30
#include < Games/Overrides.h>
30
31
#include < Games/References.h>
31
32
#include < AI/AIProcess.h>
@@ -61,9 +62,21 @@ void PlayerService::OnUpdate(const UpdateEvent& acEvent) noexcept
61
62
62
63
void PlayerService::OnConnected (const ConnectedEvent& acEvent) noexcept
63
64
{
65
+ // Kill moves disallowed because they are broken. But, if they have been fixed?
66
+ bool killMoves = false ;
67
+ auto & modlist = ModManager::Get ()->mods ;
68
+ const TiltedPhoques::Vector<TiltedPhoques::String> killMoveFixList = {" EVE - KillMove Fixes.esp" };
69
+
70
+ for (const auto & mod : modlist)
71
+ {
72
+ if (killMoves = (killMoves || std::find (killMoveFixList.begin (), killMoveFixList.end (), mod->filename ) != killMoveFixList.end ()))
73
+ break ;
74
+ }
75
+
64
76
// TODO: SkyrimTogether.esm
65
77
TESGlobal* pKillMove = Cast<TESGlobal>(TESForm::GetById (0x100F19 ));
66
- pKillMove->f = 0 .f ;
78
+ // Possibly reenabled for compatibility testing with new mods.
79
+ pKillMove->f = killMoves ? 1 .f : 0 .f ;
67
80
68
81
TESGlobal* pWorldEncountersEnabled = Cast<TESGlobal>(TESForm::GetById (0xB8EC1 ));
69
82
pWorldEncountersEnabled->f = 0 .f ;
You can’t perform that action at this time.
0 commit comments