List of Categories

Note to anybody planning to use or change categories: Categories should only be used for targeting. Do not use them in Lua scripts or anything else unless it deals directly with targeting.

VTOL is hard-coded in toAirWeapon.

r1320

Cat: notfloat
Cat: vtol
Cat: notair
Cat: mobile
Cat: commander
Cat: antiflame
Cat: noweapon
Cat: notwater
Cat: notsub
Cat: all
  • Since we now have far fewer categories than the limit of 32, I'm going to leave the remaining ones for now.
  • Change vtol to air?
    • Licho: armor classes are using "planes", perhaps we should unify it somehow? But yeah air makes more sense than VTOL.
      • Evil4Zerggin: I say we change the armor class to "air". Some of the units aren't technically planes anyhow (e.g. Krow, Blastwing).
        • yeah
      • KingRaptor: Isn't the VTOL category used by the toairweapon tag for weapons?
        • Evil4Zerggin: Mmm, good call. I'll see if toairweapon is category-based.
        • Evil4Zerggin: Looks like it is. Damn it all. Although we could replace all such tags with onlyTargetCategory.
  • Merge notsub and notwater?
  • Remove commander?
  • notfloat: This consists of units that do not float, where floating is defined as having one or more of the following:
    • floater = true
    • canHover = true
    • Is a structure with waterLine < 30.

r1317

Cat: antiflame
Cat: vtol
Cat: notland
Cat: notair
Cat: kbot
Cat: antiemg
Cat: commander
Cat: kamikaze
Cat: notfloat
Cat: noweapon
Cat: notship
Cat: antilaser
Cat: mobile
Cat: air
Cat: sub
Cat: notsilo
Cat: all
Cat: notsub
Cat: antigator

r1312

Cat: antiflame
Cat: tank
Cat: antisub
Cat: notland
Cat: air
Cat: notship
Cat: notair
Cat: kbot
Cat: antiemg
Cat: commander
Cat: jam
Cat: minelayer
Cat: constr
Cat: mine
Cat: kamikaze
Cat: sub
Cat: hover
Cat: noweapon
Cat: plant
Cat: ship
Cat: antilaser
Cat: phib
Cat: paral
Cat: notstructure
Cat: underwater
Cat: mobile
Cat: antigator
Cat: vtol
Cat: notsilo
Cat: all
Cat: notsub
Cat: weapon

antiflame: Same as VTOL + flamethrowers.

tank: Vehicles. Not used in targeting.

antisub: Only used by Flame Destroyer.

notland: Anything that is not a mobile unit capable of traveling on land.

air: Only used by Flame Destroyer.

vtol/notair: Self-explanatory.

kbot: Self-explanatory. Not used in targeting.

notship: Not a surface ship. Used by several torpedo units.

antilaser: Same as VTOL.

antiemg: Same as VTOL plus a few riot units.

commander: Self-explanatory. Not used in targeting.

jam: Used by three jammers. Not used in targeting.

minelayer: Used by two minelayers. Not used in targeting.

constr: Used by some but not all constructors. Not used in targeting.

mine: Used by mines. Not used in targeting.

kamikaze: Used by mines and crawling bombs. Not used in targeting.

sub: Subs don't actually belong to this category. Used in Arm Cruiser's targeting only.

hover: Self-explanatory. Not used in targeting.

noweapon: Self-explanatory. Used mostly by AA.

plant: Self-explanatory. Not used in targeting.

ship: Self-explanatory. Used in Arm Destroyer's targeting only.

phib: Some but not all amphibious units. Not used in targeting.

paral: Only Arm Crabe. Not used in targeting.

notstructure: Only three T3 units.

underwater: All subs. Not used in targeting.

mobile: All mobile units (I think). Used by turrets.

antigator: Most VTOLs. Used by scouts and light raiders.

vtol: Self-explanatory.

notsilo: Used by some random units. Not used in targeting.

all: Self-explanatory.

notsub: Self-explanatory.

weapon: Any unit with a weapon or kamikaze. Not used in targeting.