Better way of fixing that last bug
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 2 Sep 2010 13:06:38 +0000 (16:06 +0300)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 2 Sep 2010 13:06:38 +0000 (16:06 +0300)
data/qcsrc/server/g_subs.qc

index b1871185c4d6ff8f297c7670f9dc281f0425fc72..28511b0ad0b91c9b4ef7def58fdbc466d7995c4c 100644 (file)
@@ -16,9 +16,8 @@ void spawnfunc_info_null (void)
 \r
 void setanim(entity e, vector anim, float looping, float override, float restart)\r
 {\r
-       float n;\r
-       n = tokenizebyseparator(self.model, ".");\r
-       if(argv(1) == "md3")\r
+       // don't attempt to animate the stomach model\r
+       if(substring(self.model, strlen(self.model) - 8 - 4, 8) == "_stomach") // - 4 is the extension\r
                return;\r
 \r
        if (anim_x == e.animstate_startframe)\r