]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Don't shake the ground for prey
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 3 Mar 2012 19:32:01 +0000 (21:32 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Sat, 3 Mar 2012 19:32:01 +0000 (21:32 +0200)
data/qcsrc/server/cl_physics.qc
data/qcsrc/server/sv_main.qc

index 99c50099482d8d68a602a27edb45b4a3588e183d..20e08f713e5dff8da6e2cb5dedeb1af18465773c 100644 (file)
@@ -892,6 +892,8 @@ void SV_PlayerPhysics()
                                                                continue; // not for self\r
                                                        if not(head.flags & FL_ONGROUND)\r
                                                                continue; // we only feel the ground shaking if we are sitting on it\r
+                                                       if(head.stat_eaten)\r
+                                                               continue; // not for prey\r
 \r
                                                        float shake;\r
                                                        shake = vlen(head.origin - self.origin);\r
index 1e80f1389d942c5e58efc131ace1b7e89377c969..e49283c69874beb447c485321e50fe7b623cf609 100644 (file)
@@ -127,6 +127,8 @@ void CreatureFrame (void)
                                                                                continue; // not for self\r
                                                                        if not(head.flags & FL_ONGROUND)\r
                                                                                continue; // we only feel the ground shaking if we are sitting on it\r
+                                                                       if(head.stat_eaten)\r
+                                                                               continue; // not for prey\r
 \r
                                                                        float shake;\r
                                                                        shake = vlen(head.origin - self.origin);\r