Skip to content

Zero Hour rebuilt from EA's source: x64, Direct3D 11, VS2022/CMake, ~60 original bugs fixed, an AI that builds a base. Bring your own game.

feat(gameengine): swap guard and hold position under the W A S D keys

Olcay Seygand83af29615c9
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fdf0ef328..356b715a0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -419,7 +419,7 @@ found and fixed — EA's own, not port damage.**
- The two-key building shortcut survives the command bar's redraw now.
- Every structure is those two keys and nothing else. The letter written on a cell is the second half of its pair, and pressed on its own it used to build whatever sat in the slot that letter names - so the same barracks went up either by the shortcut painted on it or by one bare key nobody had written anywhere, and a key pressed after a shortcut you had thought better of put a building on your cursor. And the pairs are read off the key bindings now instead of a list written out beside them: the second letters had been left behind when the bottom row of the command bar moved to Z X C V B N M, so half the cells answered a letter that was not on them.
- The command bar is driven by its own grid of keys - the buttons in the shape they are in, under your left hand - and there is no longer a switch for it. It shipped off by default, which meant nobody ever saw it.
-- W A S D can move the camera. It is a box on the Controls page, off until you tick it, and it only takes with the Modern input scheme: pick Legacy and the box goes grey. On top of the arrow keys and everything the mouse already does, and it moves the keys a fight is fought with one row down to meet the hand: F attacks, G stops, H attack-moves, J holds position, K guards. The grid's top row steps over W and reads Q E R T Y U I, which pushes the idle-worker key from I to O, and every letter painted on the command bar follows the moment you press Accept. Let go of a camera key with Ctrl held for a control group and the camera still stops. The pointer stays the pointer while the keys scroll, instead of turning into the scroll arrows the mouse uses.
+- W A S D can move the camera. It is a box on the Controls page, off until you tick it, and it only takes with the Modern input scheme: pick Legacy and the box goes grey. On top of the arrow keys and everything the mouse already does, and it moves the keys a fight is fought with one row down to meet the hand: F attacks, G stops, H attack-moves, J guards, K holds position. The grid's top row steps over W and reads Q E R T Y U I, which pushes the idle-worker key from I to O, and every letter painted on the command bar follows the moment you press Accept. Let go of a camera key with Ctrl held for a control group and the camera still stops. The pointer stays the pointer while the keys scroll, instead of turning into the scroll arrows the mouse uses.
- Escape cancels what you were doing before it opens the menu.
## Where the money is, and where it is coming from
diff --git a/GeneralsMD/Code/Data/INI/CommandMapWASD.ini b/GeneralsMD/Code/Data/INI/CommandMapWASD.ini
index 00f791dd1..e4eac7bf5 100644
--- a/GeneralsMD/Code/Data/INI/CommandMapWASD.ini
+++ b/GeneralsMD/Code/Data/INI/CommandMapWASD.ini
@@ -26,7 +26,7 @@
; and the orders the camera hand took off A and S move one row down, reading
; left to right along it with no modifier on any of them:
;
-; F attack G stop H attack move J hold position K guard
+; F attack G stop H attack move J guard K hold position
;
; Idle workers go from I, which slot 13 now wants, to O.
@@ -91,13 +91,13 @@ CommandMap TOGGLE_ATTACKMOVE
End
CommandMap HOLD_POSITION
- Key = KEY_J
+ Key = KEY_K
Transition = DOWN
Modifiers = NONE
End
CommandMap TOGGLE_GUARD
- Key = KEY_K
+ Key = KEY_J
Transition = DOWN
Modifiers = NONE
End
diff --git a/GeneralsMD/Code/Data/Patch.str b/GeneralsMD/Code/Data/Patch.str
index 94f77612a..66aad744b 100644
--- a/GeneralsMD/Code/Data/Patch.str
+++ b/GeneralsMD/Code/Data/Patch.str
@@ -851,7 +851,7 @@ GUI:WasdCamera
END
TOOLTIP:WasdCamera
-"W A S D move the camera. F attacks, G stops, H attack-moves, J holds position and K guards, and the command bar's top row reads Q E R T Y U I. Modern input only."
+"W A S D move the camera. F attacks, G stops, H attack-moves, J guards and K holds position, and the command bar's top row reads Q E R T Y U I. Modern input only."
END
GUI:OrderLines
diff --git a/GeneralsMD/Code/Data/Turkish/Generals.str b/GeneralsMD/Code/Data/Turkish/Generals.str
index 6022d3468..4e607dcc7 100644
--- a/GeneralsMD/Code/Data/Turkish/Generals.str
+++ b/GeneralsMD/Code/Data/Turkish/Generals.str
@@ -15410,7 +15410,7 @@ GUI:WasdCamera
END
TOOLTIP:WasdCamera
-"W A S D kamerayı gezdirir. F saldırır, G durdurur, H saldırarak ilerler, J konumu korur, K gözcü koyar; komut çubuğunun üst sırası Q E R T Y U I olur. Yalnızca Modern girişte."
+"W A S D kamerayı gezdirir. F saldırır, G durdurur, H saldırarak ilerler, J gözcü koyar, K konumu korur; komut çubuğunun üst sırası Q E R T Y U I olur. Yalnızca Modern girişte."
END
GUI:OrderLines