Monster Classes and Behaviour

XashXT

Monster Classes and Behaviour

This system originated in the Spirit of Half-Life mod. The purpose was to flexibly configure the behaviour of any monster regardless of its class. This lets you have a good and an evil Barney at once, a friendly soldier and a hostile one, and so on. The behaviour of a monster is determined by the m_iClass parameter, which is available in all entities with the monster_ prefix.

Class Details

0 The monster's regular (default) behaviour
1 Machine (for example, a turret)
2 Player
3 Scientist
4 Soldier
5 Alien soldier (for example, monster_alien_grunt)
6 Xen fauna (oblivious of the environment, and vice versa)
7 Regular alien (for example, monster_islave)
8 Headcrab
9 Bullsquid
10 Cockroach, rat
11 Barney
12 Hornet gun projectiles fired by the player
13 Hornet gun projectiles fired by a monster_alien_grunt
14 Class A (hostile to everyone except its own class)
15 Class B (hostile to everyone except its own class)
16 Class C (hostile to everyone except its own class)