// Only one of these allowed per entity, stored in pev->iuser3.
typedefenum
{
AVH_USER3_NONE=0,
AVH_USER3_MARINE_PLAYER,
AVH_USER3_COMMANDER_PLAYER,
AVH_USER3_ALIEN_PLAYER1,
AVH_USER3_ALIEN_PLAYER2,
AVH_USER3_ALIEN_PLAYER3,
AVH_USER3_ALIEN_PLAYER4,
AVH_USER3_ALIEN_PLAYER5,
AVH_USER3_ALIEN_EMBRYO,
AVH_USER3_SPAWN_TEAMA,
AVH_USER3_SPAWN_TEAMB,
AVH_USER3_PARTICLE_ON,// only valid for AvHParticleEntity: entindex as int in fuser1, template index stored in fuser2
AVH_USER3_PARTICLE_OFF,// only valid for AvHParticleEntity: particle system handle in fuser1
AVH_USER3_WELD,// float progress (0 - 100) stored in fuser1
AVH_USER3_ALPHA,// fuser1 indicates how much alpha this entity toggles to in commander mode, fuser2 for players
AVH_USER3_MARINEITEM,// Something a friendly marine can pick up
AVH_USER3_WAYPOINT,
AVH_USER3_HIVE,
AVH_USER3_NOBUILD,
AVH_USER3_USEABLE,
AVH_USER3_AUDIO_ON,
AVH_USER3_AUDIO_OFF,
AVH_USER3_FUNC_RESOURCE,
AVH_USER3_COMMANDER_STATION,
AVH_USER3_TURRET_FACTORY,
AVH_USER3_ARMORY,
AVH_USER3_ADVANCED_ARMORY,
AVH_USER3_ARMSLAB,
AVH_USER3_PROTOTYPE_LAB,
AVH_USER3_OBSERVATORY,
AVH_USER3_CHEMLAB,
AVH_USER3_MEDLAB,
AVH_USER3_NUKEPLANT,
AVH_USER3_TURRET,
AVH_USER3_SIEGETURRET,
AVH_USER3_RESTOWER,
AVH_USER3_PLACEHOLDER,
AVH_USER3_INFANTRYPORTAL,
AVH_USER3_NUKE,
AVH_USER3_BREAKABLE,
AVH_USER3_UMBRA,
AVH_USER3_PHASEGATE,
AVH_USER3_DEFENSE_CHAMBER,
AVH_USER3_MOVEMENT_CHAMBER,
AVH_USER3_OFFENSE_CHAMBER,
AVH_USER3_SENSORY_CHAMBER,
AVH_USER3_ALIENRESTOWER,
AVH_USER3_HEAVY,
AVH_USER3_JETPACK,
AVH_USER3_ADVANCED_TURRET_FACTORY,
AVH_USER3_SPAWN_READYROOM,
AVH_USER3_CLIENT_COMMAND,
AVH_USER3_FUNC_ILLUSIONARY,
AVH_USER3_MENU_BUILD,
AVH_USER3_MENU_BUILD_ADVANCED,
AVH_USER3_MENU_ASSIST,
AVH_USER3_MENU_EQUIP,
AVH_USER3_MINE,
AVH_USER3_UNKNOWN,
AVH_USER3_MAX
}AvHUser3;
typedefenum
{
WEAPON_ON_TARGET=0x01,
WEAPON_IS_CURRENT=0x02,
WEAPON_IS_ENABLED=0x04
}CurWeaponStateFlags;
typedefenum
{
BALANCE_ACTION_INSERT_INT=0,
BALANCE_ACTION_INSERT_FLOAT=1,
BALANCE_ACTION_INSERT_STRING=2,
BALANCE_ACTION_REMOVE=3,
BALANCE_ACTION_CLEAR=4,
BALANCE_ACTION_NOTIFY_PENDING=5,
BALANCE_ACTION_NOTIFY_FINISHED=6
}BalanceMessageAction;
// AvHSpecials, only one per entity, stored in pev->iuser4.
// Stored in iuser4. Some entities don't use these values, but most do. The ones that don't include:
// AVH_USER3_AUDIO_OFF
// AVH_USER3_AUDIO_ON
typedefenum
{
MASK_NONE=0x00000000,
MASK_VIS_SIGHTED=0x00000001,// This means this is an entity that can be seen by at least one member of the opposing team. Assumes commanders can never be seen.
MASK_VIS_DETECTED=0x00000002,// This entity has been detected by the other team but isn't currently seen
MASK_BUILDABLE=0x00000004,// This entity is buildable