I can't quite believe it either. Command & Conquer, Red Alert, Command & Conquer Renegade and Command & Conquer Generals (inc. Zero Hour) have their code officially open sourced.
Played hundreds of hours of Generals and Zero Hour, I tried playing it again a year ago but it wasn't working well in windows 11. Making it open source might bring this great game back.
// Assumption: Things with a KINDOF_STRUCTURE flag can never be built from
// a factory (ProductionUpdateInterface), because the building can't move
// out of the factory. When we do our Starcraft port and have flying Terran
// buildings, we'll have to change this ;-)
// Remember: To ASSUME makes an ASS out of U and ME.
Player.cpp
// HERE WOULD BE A GREAT PLACE FOR AN IDIOT TEST:
// REJECT SIMULATION NODES THAT ARE OFF SCREEN!!!!!!!!!!
// HERE WOULD BE A GREAT PLACE FOR AN IDIOT TEST:
// REJECT SIMULATION NODES THAT ARE OFF SCREEN!!!!!!!!!!
W3DTerrainVisual.cpp
//
// force the tree control to redraw, it seems to have problems updating
// the plus signs, lame ass Microsoft
//
HeirarchyView.cpp
; String is returned by const for a reason. Bad things will happen
; if you modify it. You have been warned.
locale.cpp
// We need to be able to grab w3d's from a localization dir, since Germany hates exploding people units.
W3DFileSystem.cpp
// I can't take it any more. Let the record show that I think the UpgradeMux multiple inheritence is CRAP.
getAutoHealBehaviorModuleData()->m_upgradeMuxData.muxDataProcessUpgradeRemoval(getObject());
AutoHealBahaviour.h
Weird, I had the same reaction to this and the news that Ron DeSantis said the Tate brothers aren't welcome in Florida. "That's nice but you're still a massive piece of shit."