]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/miscfunctions.qc
some fixes to what can be pushed, teleported, trigger_impulsed
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / miscfunctions.qc
index c34941e23f030d278b93caa4d913f85dce101474..241dc3a99a1e921d853a6f90f1c99e296f2a5487 100644 (file)
@@ -3127,3 +3127,24 @@ float LostMovetypeFollow(entity ent)
        }
        return 0;
 }
+
+float isPushable(entity e)
+{
+       if(e.iscreature)
+               return TRUE;
+       switch(e.classname)
+       {
+               case "body":
+               case "corpse":
+               case "droppedweapon":
+               case "keepawayball":
+               case "nexball_basketball":
+               case "nexball_football":
+                       return TRUE;
+               case "bullet":
+                       return FALSE;
+       }
+       if (e.projectiledeathtype)
+               return TRUE;
+       return FALSE;
+}