Mana

Mana (ammo)

Classnames: item_mana_green, item_mana_glue, item_mana_both
Purpose: Power for weapons
H2 Code: items.hc
fields required: origin
Blue and green mana can be spawned during gameplay; it isn't presently known how to spawn combined mana. Like other point entities, mana can also trigger events and toggle lights when acquired; this works in original H2 but wasn't actually used by Raven until Portal of Praevus (thanks to Terata for enlightenment on this).

Fields

origin Value is a triple of number, location of mana. Your editor should manage this visually, automatically.
target Value is a name, of target triggered when mana is acquired.
style Value is a number (32 or greater) used in conjunction with target for toggling lights; this style values is to be shared by all lights that toggle together.
spawnflags Sum up the numbers below for the properties you want:
  • 1 - FLOAT: makes item float where you put it in the map rather than drop to the floor to convient grabbing-height for the player.
  • 2 - BIG: 30 points instead of 10
E.g. for a big floating mana, make spawnflags-value = 3. For more on spawnflags, look here.

Note

Eutectic says that if items have a targetname field, they will be spawned then a brush targetting them is destroyed, but I haven't gotten this to work.
Back to the list.