CodeSOD: What are you, Chicken?

This post was originally published on this site

The Daily WTF

My Steam profile doesn’t represent the most active gamer on Earth, but in my time I put some pretty serious hours into the recent XCOM games. Each mission your squad goes on gets a procedurally generated name, and that can lead to some funny results just by itself (like “Avenging Avenger”). But, if you’ve put too many hours into the game, you might notice that every once in awhile, you see a mission with “Chicken” in its name.

Now, it’s obvious that this is just a joke. Clearly an Easter Egg hidden in the code by a programmer. But Rich D picked through the UnrealScript which powers the game, finding the code responsible.

class XGMission extends Actor abstract; var string m_strHelp; // The help string that displays when this mission is selected in MC var float fAnimationTimer; var bool m_bRetaliation; var localized array<String> m_aFirstOpName; var localized array<String> m_aSecondOpName; var localized

To read the full article click on the 'post' link at the top.