]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Add some monster flags for later use
authorMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 04:20:35 +0000 (14:20 +1000)
committerMario <zacjardine@y7mail.com>
Sun, 30 Aug 2015 04:20:35 +0000 (14:20 +1000)
qcsrc/common/monsters/all.qh
qcsrc/common/monsters/monster/spider.qc
qcsrc/common/monsters/monster/wyvern.qc
qcsrc/common/monsters/monster/zombie.qc

index 0f2f13c5e40c0b036228092bf8ae143af35bfbef..20a2103785f0bffb5b6a14cfe347eac076cc1b6a 100644 (file)
@@ -42,6 +42,8 @@ const int MONSTER_SIZE_BROKEN = 128; // TODO: remove when bad models are replace
 const int MON_FLAG_SUPERMONSTER = 256; // incredibly powerful monster
 const int MON_FLAG_RANGED = 512; // monster shoots projectiles
 const int MON_FLAG_MELEE = 1024;
+const int MON_FLAG_CRUSH = 2048; // monster can be stomped in special modes
+const int MON_FLAG_RIDE = 4096; // monster can be ridden in special modes
 
 // entity properties of monsterinfo:
 .string netname; // short name
index dae97c187ba3a29ecc2b4894a8e79f37f0ac1307..0179c66b9add72b73c2a165e64fbd0f4e9fd996d 100644 (file)
@@ -3,7 +3,7 @@ bool M_Spider(int);
 #endif
 REGISTER_MONSTER_SIMPLE(
 /* MON_##id   */ SPIDER,
-/* spawnflags */ MON_FLAG_MELEE | MON_FLAG_RANGED,
+/* spawnflags */ MON_FLAG_MELEE | MON_FLAG_RANGED | MON_FLAG_RIDE,
 /* mins,maxs  */ '-18 -18 -25', '18 18 30',
 /* model      */ "spider.dpm",
 /* netname    */ "spider",
index 4dd3fd71f5cc68a78633b866a46149675d7bfd0a..9bdc4c63afa57ed7bd000df7894ace290844d187 100644 (file)
@@ -3,7 +3,7 @@ bool M_Wyvern(int);
 #endif
 REGISTER_MONSTER_SIMPLE(
 /* MON_##id   */ WYVERN,
-/* spawnflags */ MONSTER_TYPE_FLY | MONSTER_SIZE_BROKEN | MON_FLAG_RANGED,
+/* spawnflags */ MONSTER_TYPE_FLY | MONSTER_SIZE_BROKEN | MON_FLAG_RANGED | MON_FLAG_RIDE,
 /* mins,maxs  */ '-20 -20 -58', '20 20 20',
 /* model      */ "wizard.mdl",
 /* netname    */ "wyvern",
index 1ccfa82c816879865e75faf2eeb1c8d0148bae88..780cf74b381dadb7fc5db70ee4f45bef5fa63e11 100644 (file)
@@ -3,7 +3,7 @@ bool M_Zombie(int);
 #endif
 REGISTER_MONSTER_SIMPLE(
 /* MON_##id   */ ZOMBIE,
-/* spawnflags */ MON_FLAG_MELEE,
+/* spawnflags */ MON_FLAG_MELEE | MON_FLAG_RIDE,
 /* mins,maxs  */ '-18 -18 -25', '18 18 47',
 /* model      */ "zombie.dpm",
 /* netname    */ "zombie",