]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/monsters/lib/defs.qh
Add a basic monster spawning GUI (based on sandbox tools)
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / monsters / lib / defs.qh
index 6ea667f4cd03416808d965c5d5e907ff9d0e034a..ea72ad9ae9569cb829ddc7824ff5c1f5d38ff9b8 100644 (file)
@@ -29,11 +29,12 @@ const float MONSTERFLAG_SPAWNED = 1024; // flag for spawned monsters
 .void() monster_die;
 .void() monster_delayedattack;
 
-.float monster_moveflags; // checks where to move when not attacking (currently unused)
+.float monster_movestate; // used to tell what the monster is currently doing
 const float MONSTER_MOVE_OWNER = 1; // monster will move to owner if in range, or stand still
 const float MONSTER_MOVE_WANDER = 2; // monster will ignore owner & wander around
 const float MONSTER_MOVE_SPAWNLOC = 3; // monster will move to its spawn location when not attacking
 const float MONSTER_MOVE_NOMOVE = 4; // monster simply stands still
+const float MONSTER_MOVE_ENEMY = 5; // used only as a movestate
 
 float enemy_range () { return vlen(self.enemy.origin - self.origin); }