From 2c4728a070b5d5f69e2112a8bab75c7c3c9b3013 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sat, 3 Mar 2012 21:32:01 +0200 Subject: [PATCH] Don't shake the ground for prey --- data/qcsrc/server/cl_physics.qc | 2 ++ data/qcsrc/server/sv_main.qc | 2 ++ 2 files changed, 4 insertions(+) diff --git a/data/qcsrc/server/cl_physics.qc b/data/qcsrc/server/cl_physics.qc index 99c50099..20e08f71 100644 --- a/data/qcsrc/server/cl_physics.qc +++ b/data/qcsrc/server/cl_physics.qc @@ -892,6 +892,8 @@ void SV_PlayerPhysics() continue; // not for self if not(head.flags & FL_ONGROUND) continue; // we only feel the ground shaking if we are sitting on it + if(head.stat_eaten) + continue; // not for prey float shake; shake = vlen(head.origin - self.origin); diff --git a/data/qcsrc/server/sv_main.qc b/data/qcsrc/server/sv_main.qc index 1e80f138..e49283c6 100644 --- a/data/qcsrc/server/sv_main.qc +++ b/data/qcsrc/server/sv_main.qc @@ -127,6 +127,8 @@ void CreatureFrame (void) continue; // not for self if not(head.flags & FL_ONGROUND) continue; // we only feel the ground shaking if we are sitting on it + if(head.stat_eaten) + continue; // not for prey float shake; shake = vlen(head.origin - self.origin); -- 2.39.2