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.
// 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
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]
Video game news oriented community. No NanoUFO is not a bot :)
Posts.
News oriented content (general reviews, previews or retrospectives allowed).
Broad discussion posts (preferably not only about a specific game).
No humor/memes etc…
No affiliate links
No advertising.
No clickbait, editorialized, sensational titles. State the game in question in the title. No all caps.
No self promotion.
No duplicate posts, newer post will be deleted unless there is more discussion in one of the posts.
No politics.
Comments.
No personal attacks.
Obey instance rules.
No low effort comments(one or two words, emoji etc…)
Please use spoiler tags for spoilers.
My goal is just to have a community where people can go and see what new game news is out for the day and comment on it.
There’s a thread on Reddit showcasing some hilarious Code Comments within the Generals Codebase: https://old.reddit.com/r/commandandconquer/comments/1izpkmh/funny_generals_source_code_comments/
Examples: