I'm thinking of 3 ways to select which team you'd like to impersonate.
- 1) Automatically selected based on closest enemy flag.
2) Manually select from the personal options menu in the tab menu.
3) Multiple chameleon packs listed in the inventory station, one per team, buy which ever one you want.
I'm attacking the Blood Eagle base, I activate my pack, it detects the Blood Eagle flag at 100 meters, my own flag (which it ignores), and Diamond Sword's flag at 200 meters. My armor is now beagle.larmor.dts.
Code: Select all
Client::buildMenu(%client, "Impersonate which team?", "Spy", true);
for(%t = 0; %t < getNumTeams() - 1; %t++)
Client::addMenuItem(%client, %t + 1 @" "@ $Server::teamName[%t], %t);
Client::addMenuItem(%client, %t + 1 @" Observer", -1);
Chameleon Pack Category
- Blood Eagle
I'm one team2, thus no third pack is displayed.
Perhaps automatic could be an option in Example #2, and the default selection.
I was gonna suggest a random selection too, but decided that would be useless as you'd likely activate the pack while entering a base and get shot by a turret anyway.