From 74420857a0f406eaeb3313b5723443c023f220ba Mon Sep 17 00:00:00 2001 From: MirceaKitsune Date: Thu, 17 Nov 2011 22:54:16 +0200 Subject: [PATCH] Several changes aimed at reducing the view poking out of the stomach model for prey --- data/qcsrc/server/cl_client.qc | 1 + data/qcsrc/server/constants.qh | 2 +- data/qcsrc/server/vore.qc | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/data/qcsrc/server/cl_client.qc b/data/qcsrc/server/cl_client.qc index 1edb3c18..aae54ae1 100644 --- a/data/qcsrc/server/cl_client.qc +++ b/data/qcsrc/server/cl_client.qc @@ -534,6 +534,7 @@ float Client_customizeentityforclient() if(other.predator == self) { Client_setmodel(stomachmodel); + self.angles_x = self.angles_z = 0; // don't apply player leaning to stomach models self.effects |= EF_NODEPTHTEST; // don't hide behind walls self.alpha = other.cvar_cl_vore_stomachmodel; return TRUE; diff --git a/data/qcsrc/server/constants.qh b/data/qcsrc/server/constants.qh index 4452d487..69aae0c3 100644 --- a/data/qcsrc/server/constants.qh +++ b/data/qcsrc/server/constants.qh @@ -130,7 +130,7 @@ vector PL_MAX = '16 16 45'; vector PL_CROUCH_VIEW_OFS = '0 0 15'; vector PL_CROUCH_MIN = '-16 -16 -24'; vector PL_CROUCH_MAX = '16 16 25'; -vector PL_PREY_VIEW_OFS = '0 0 15'; +vector PL_PREY_VIEW_OFS = '0 0 25'; // Sajt - added these, just as constants. Not sure how you want them actually put in the game, but I just // did this so at least they worked diff --git a/data/qcsrc/server/vore.qc b/data/qcsrc/server/vore.qc index 96f49a4c..9d3079f2 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -131,7 +131,7 @@ void Vore_SetPreyPositions(entity pred) { origin_apply_x = PL_PREY_VIEW_OFS_x + crandom() * cvar("g_vore_neighborprey_distance"); origin_apply_y = PL_PREY_VIEW_OFS_y + crandom() * cvar("g_vore_neighborprey_distance"); - origin_apply_z = PL_PREY_VIEW_OFS_z; + origin_apply_z = PL_PREY_VIEW_OFS_z * pred.scale; // since prey have their predators set as an aiment, view_ofs will specify the real origin of prey, not just the view offset head.view_ofs = origin_apply; -- 2.39.2