and cloak shields demo gadgets.
Enemy View:

Allied View:

All of the units are using the active stealth command (that's what the red
triangles indicate). That operates on a per-unit basis, and uses energy based
on the metalCost of the unit by default.
The flea is equipped with a cloaking shield (note the large energy pull).
I've set it to chase the commander around to keep him and his tag-alongs
cloaked. The configuration file can be used to setup energy cost, cloak range,
uncloakable units, etc...