From: MirceaKitsune Date: Sun, 31 Jul 2011 17:37:44 +0000 (+0300) Subject: Allow dead prey to remain in the stomach and be digested. Not as fake prey this time... X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=eee227a82cfad62df5b273c10b8ace2000e1c972;p=voretournament%2Fvoretournament.git 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 --- 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 {