Spy (Red Alert 2)

The spy is an Allied infiltration infantry unit in Command & Conquer: Red Alert 2 and Yuri's Revenge.
== Official description ==
==History==
Spies were deployed directly in battle by the Allies during the Second World War, though usually they were used as intelligence gathering operatives behind enemy lines or in enemy command centers and bases. The deployment of battlefield spies by the Allies continued during Third World War and its second iteration, providing Allied commanders with valuable information about plans and vulnerabilities of Soviet and Yuri bases. The spy was also used as a sabotage unit, unlike their predecessors. A spy would disguise himself as an enemy soldier to pass unnoticed to most other units and infiltrate buildings, sabotaging them or stealing enemy resources and technologies from them.
Spies were vital to the Allies' victory, especially during Operation: Dark Night, where they were a key element in sabotaging two nuclear missile silos in Soviet-controlled Poland.
The Soviets were not ignorant of the Allies' use of the spy and trained attack dogs to differentiate the scent of base personnel and if they noticed a strange smell among the Soviet men, they would attack and kill the Allied spy. The Allies did the same with their own dogs, in the case of being targets of rogue or mind-controlled spies. On the other hand, Yuri used his mind-control units and towers (including the psychic radar) to detect spies. Spies were not issued any weapons, even basic pistols or knives, so they had to overcome the enemy defenses completely by the use for stealth and discretion.
==In-game==
Rather than attacking enemy units, the spy targets an enemy and changes his appearance to that of the enemy unit. A spy can mimic even dogs, or units that normally do not move in a regular way (Chrono legionnaire, Rocketeer). This can lead to a comic and decamouflaging sight of those units walking.
While camouflaged as a unit owned by a specific player, a spy will not be attacked by most units owned by that player (or their allies). The spy owner's units will also not see the spy as a target. However, as with all "invisible" units, manually targeting a spy will change the mouse cursor to "attack" mode.
Once safely changing the appearance, a spy can sneak past enemies and into enemy structures, providing substantial benefits. The spy's function inside the enemy structure depends on which building he enters.
The spy's infiltration effects are dependent on the targeted building:
*Power Plant/Tesla Reactor/Nuclear Reactor/Bio Reactor - Cuts off the targeted player's power (thereby disabling anything that requires it) for anywhere between 30-60 seconds. Additional power structures will not restore power. Tech Civilian Power Plant cannot be infiltrated.
*Airforce Command Headquarters/Radar Tower/Psychic Radar - Resets shroud for the targeted player. Has no effect if they own a functional Spy Satellite Uplink.
*Ore Refinery/Deployed Slave Miner - Steals 20% of the targeted player's funds.
*Barracks - All combat infantry produced from the player's own Barracks gain veterancy (one rank). The bonus also applies to units summoned by Paradrop/Airborne, released by destroyed structures, or mutated by Genetic Mutator. This effect does not stack.
*War Factory - All combat vehicles and aircraft produced from the commander's own War Factories gain veterancy. Slave miners built as a structure and War miners accompanying the construction of Soviet Ore Refineries are also affected. This effect does not stack.
*Superweapon - Resets its timer.
*Battle Lab - Grants access to specific units:
**Allied Battle Lab grants Chrono commando in Yuri's Revenge. In Red Alert 2, owning an Allied Barracks unlocks Chrono commando, and a Soviet Barracks unlocks Chrono Ivan.
**Soviet Battle Lab grants Chrono Ivan in Yuri's Revenge. In Red Alert 2, owning an Allied Barracks unlocks Psi commando, and a Soviet Barracks unlocks Yuri Prime.
**Yuri Battle Lab grants Psi commando in Yuri's Revenge.
RA2 GI Veteran Cameo.png|Infantry veterancy gained after infiltrating a Barracks 
RA2 Grizzly Tank Veteran Cameo.png|Vehicle veterancy gained after infiltrating a War Factory
RA2 Chrono Commando Cameo.png|Chrono Commando gained after infiltrating an Allied Battle Lab
RA2 Chrono Ivan Cameo.png|Chrono Ivan gained after infiltrating an Allied Battle Lab while the player owns a Soviet Barracks (RA2 only) or a Soviet Battle Lab (YR only)
RA2 Psi Commando Icons.png|Psi Commando gained after infiltrating an Allied Battle Lab while the player owns an Allied Barracks (RA2 only) or a Yuri Battle Lab (YR only)
CNCRA2 Yuri Prime Cameo.png|Yuri Prime gained after infiltrating a Soviet Battle Lab while the player owns a Soviet Barracks (RA2 only)
== AI behavior ==
Spies controlled by the AI have the following attack patterns:
=== Medium ===
* 1x infiltrating an Allied power plant or Soviet Tesla reactor
=== Medium/Hard ===
* 1x infiltrating a Soviet barracks
=== Hard ===
* 1x infiltrating an Allied barracks
* 1x infiltrating an Allied or Soviet war factory
Additional notes:
* The AI is known to build Spies as soon as they have built an Allied barracks.
* There is unused behavior of Spies being able to infiltrate an Allied or Soviet battle lab. 
==Aftermath==
After Anatoly Cherdenko's trip to 1927, spies from the altered timeline were equipped with sniper rifles (used only when garrisoned in a Multigunner turret or a Multigunner IFV) and the ability to bribe enemy units into treason, in addition to their disguise and sabotage abilities. They were also able to swim.
==Quotes==
===When selected===
*Commander?
*Mission, sir?
*Give me a plan.
*Agent ready.
===When moving===
*Operation underway.
*Indeed!
*On my way!
*Yes, commander.
*Under cover.
===When ordered to disguise himself===
*Disguise ready.
===When ordered to go to the cloning vats===
*Obtaining intelligence.
===Unused quote===
*Ready to infiltrate!
===When suppressed===
*They found me out!
*I've been spotted!
==Gallery==
File:Spy_animation.gif|SHP sprite
File:RA2_Spy_Manual_Render.gif|Manual/website render
File:RA2 Allied Spy Concept Art.png|Concept Art
===Cameos===
Pre-release cameos, in order: alpha, beta veteran.
==Trivia==
*The "Operation underway" line was originally meant for infiltration, but the spy does not have an implemented voice set for that function.
*There are unused cursors for disguising and cutting base power.
*Spies being unarmed may have been an engine-limitation. It's not possible to have a disguise-maker and a pistol/knife both affect the same ArmorTypes on the same unit; that'd lead to the game only choosing the weapon set as Primary against those ArmorTypes.
**In this case that'd mean either the Disguise-maker or the small-arm weapon against InfantryTypes, and the choice would not be possible by players.
**The spy has no attack-frames in this sprite-file, so the decision to make him unarmed may have been made early-on during development, similar to the original spy. 
Category:Red Alert 2 infantry