From eee227a82cfad62df5b273c10b8ace2000e1c972 Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Sun, 31 Jul 2011 20:37:44 +0300 Subject: [PATCH] Allow dead prey to remain in the stomach and be digested. Not as fake prey this time, but remain real prey after death, applying stomach load and being digestable. Still incomplete --- data/qcsrc/server/cl_player.qc | 32 +++++++++++++++++++------------- data/qcsrc/server/vore.qc | 4 ++-- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/data/qcsrc/server/cl_player.qc b/data/qcsrc/server/cl_player.qc index 1e9f8d43..b8ca620e 100644 --- a/data/qcsrc/server/cl_player.qc +++ b/data/qcsrc/server/cl_player.qc @@ -630,19 +630,25 @@ void PlayerDamage (entity inflictor, entity attacker, float damage, float deatht } // clear waypoints WaypointSprite_PlayerDead(); - // make the corpse upright (not tilted) - self.angles_x = 0; - self.angles_z = 0; - // don't spin - self.avelocity = '0 0 0'; - // view from the floor - self.view_ofs = '0 0 -8'; - // toss the corpse - self.movetype = MOVETYPE_TOSS; - // shootable corpse - self.solid = SOLID_CORPSE; - // don't stick to the floor - self.flags &~= FL_ONGROUND; + + // configure these properties if the dead body is not a prey + if(!self.stat_eaten) + { + // make the corpse upright (not tilted) + self.angles_x = 0; + self.angles_z = 0; + // don't spin + self.avelocity = '0 0 0'; + // view from the floor + self.view_ofs = '0 0 -8'; + // toss the corpse + self.movetype = MOVETYPE_TOSS; + // shootable corpse + self.solid = SOLID_CORPSE; + // don't stick to the floor + self.flags &~= FL_ONGROUND; + } + // dying animation self.deadflag = DEAD_DYING; // when to allow respawn diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 274dae6a..b53642b1 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -797,11 +797,11 @@ void Vore() if(!self.stat_eaten) return; - if(self.deadflag != DEAD_NO) // we're dead, do what we must + /*if(self.deadflag != DEAD_NO) // we're dead, do what we must { Vore_Regurgitate(self); return; - } + }*/ if(self.predator.deadflag != DEAD_NO) // do we want to be in a dead furry x_x { -- 2.39.2