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.
C++ cmakecnccommand-and-conquercppdirectx11game-enginegame-preservationgeneralsrtssage-enginex64zero-hour
feat(gameclient): console opens in the Classic interface too
Olcay Seygan605f4e61070a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6c99079e0..6c834f924 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -1044,7 +1044,7 @@ A third pass went through the generals' powers, promotions and unit abilities.- Press the key above Tab and a black panel drops over the top of the screen with a prompt waiting at the bottom of it. Type into it and the game ignores the keys it would otherwise have read as orders, so a word starting with Q does not queue a tank. Escape or the same key again puts it away.- `help` lists what it takes, `clear` empties it, `echo` says a line back. The up and down arrows walk back through the last thirty-two things you typed.- `get` lists every setting the options screen has, under the name it is saved as, with its value and what it takes, and `set` changes one and saves it the way the menu's Accept does: `set ShowNetBox no` takes the info box out of the top right corner, `set ShowSuperweaponStrip no` the superweapon timers. A setting that shows at once changes at once; the rest, such as the window mode or the language, wait for the next launch and the console says so. A typo is refused and named, rather than read as "no" or pushed to the nearest number in range.-- It opens in the main menu as well as in a match.+- It opens in the main menu as well as in a match, and in the Classic interface the same way it does in Reforged. Classic used to keep it shut, which left every setting and cheat behind a key that did nothing for anyone who starts the game without the launcher.- Cheats for campaign and skirmish, listed by `cheats`: `money` and `points` hand over cash and general's points, `rankup` raises the general's rank, `heroic` makes every unit you own heroic and `reveal` lifts the shroud for good. `power`, `nocooldown`, `god`, `instantbuild` and `onehitkill` switch on and off: power that never runs short, general's powers and superweapons always ready, your side taking no damage, anything built or trained in an instant, and every hit you land a kill. `money 50000` takes an amount. They are recorded in the replay like any order. In a LAN or online game, a replay or the main menu the console does not offer them at all.- `trainer` puts every cheat on a steel panel down the left of the screen, the way a trainer would. The on-and-off ones light up green while they are on, cash comes in 1,000, 10,000 and 100,000 at a click, general's points in 1, 5 and 10. A click counts exactly like typing the cheat, replay included. `trainer` again, the X in its corner or Escape puts it away.- With `god` on, an EMP no longer blows your helicopters out of the sky and drops the pilot. The helicopter goes dark, sinks to the ground, sits there until the EMP wears off and lifts back up to where it was. A plane that needs a runway flies straight through the blast instead, since it would have nowhere to take off from.diff --git a/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp b/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cppindex 5a3b375b1..be5e5384f 100644--- a/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp+++ b/GeneralsMD/Code/GameEngine/Source/GameClient/GameConsole.cpp@@ -275,9 +275,6 @@ GameConsole::~GameConsole()//-------------------------------------------------------------------------------------------------void GameConsole::toggle( void ){- // EA's game had no console; the Classic interface keeps it shut- if( !m_isOpen && TheGlobalData->isClassicUI() )- return;m_isOpen = !m_isOpen;if( !m_isOpen )m_inputLine.clear();