]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/weapons/common.qh
Move generic entity flags to a common constants location so they are included in...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / weapons / common.qh
index 093e380764793ed423346ace256d5cf085d7a8bf..d9b3b0cd4ddc58db40ee6e2f8a807bceabb11cb2 100644 (file)
@@ -10,6 +10,10 @@ void W_PrepareExplosionByDamage(entity this, entity attacker, void(entity this)
 
 .float misc_bulletcounter;
 
+#define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_CORPSE; (e).dphitcontentsmask = DPCONTENTS_SOLID | DPCONTENTS_BODY | DPCONTENTS_CORPSE
+// when doing this, hagar can go through clones
+// #define PROJECTILE_MAKETRIGGER(e) (e).solid = SOLID_BBOX
+
 .int missile_flags;
 const int MIF_SPLASH = BIT(1);
 const int MIF_ARC = BIT(2);