Skip to content

Commit 549e67f

Browse files
committed
Add option BlimpCamMouseModeSwitch
1 parent c1096ba commit 549e67f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

files/W3D.Input.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
[Menu]
44

55
[InGame]
6+
BlimpCamMouseModeSwitch = 0 // Mouse moves blimp camera instead of rotating / Default = 0
67
Input.Fuse = 0x30 // DIK_B / Default = 0x21 / DIK_F
78

89
[WormAiming]

source/input.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#include "stdafx.h"
22
#include "dik.h"
33

4+
bool InGame_BlimpCamMouseModeSwitch;
45
int InGame_Fuse;
56
int WormAiming_AimUp, \
67
WormAiming_AimDown, \
@@ -40,6 +41,7 @@ void ReadSettings()
4041
{
4142
CIniReader iniReader("");
4243

44+
InGame_BlimpCamMouseModeSwitch = iniReader.ReadInteger("InGame", "BlimpCamMouseModeSwitch", 0) == 1;
4345
InGame_Fuse = iniReader.ReadInteger("InGame", "Input.Fuse", DIK_F);
4446

4547
WormAiming_AimUp = iniReader.ReadInteger("WormAiming", "Input.AimUp", DIK_UP);
@@ -107,6 +109,13 @@ void Init()
107109
injector::WriteMemory(0x45742B, WormFPAiming_TurnRight, true);
108110

109111
// DefaultInGame
112+
if (InGame_BlimpCamMouseModeSwitch)
113+
{
114+
injector::WriteMemory<BYTE>(0x53E256, 0x74, true);
115+
injector::WriteMemory<BYTE>(0x53E2A6, 0x74, true);
116+
injector::WriteMemory<BYTE>(0x53E445, 0x75, true);
117+
injector::WriteMemory<BYTE>(0x53E54A, 0x75, true);
118+
}
110119
// injector::WriteMemory(0x458B22, InGame_RotateLeft, true);
111120
// injector::WriteMemory(0x458BC2, InGame_RotateRight, true);
112121
// injector::WriteMemory(0x458C62, InGame_RotateDown, true);

0 commit comments

Comments
 (0)