]> git.xonotic.org Git - voretournament/voretournament.git/commitdiff
Several changes aimed at reducing the view poking out of the stomach model for prey
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 20:54:16 +0000 (22:54 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Thu, 17 Nov 2011 20:54:16 +0000 (22:54 +0200)
data/qcsrc/server/cl_client.qc
data/qcsrc/server/constants.qh
data/qcsrc/server/vore.qc

index 1edb3c189680ee706be9bdcfcea0833ac5c9506c..aae54ae1c2e6ca90f521a3e310b8aad95c67e00e 100644 (file)
@@ -534,6 +534,7 @@ float Client_customizeentityforclient()
        if(other.predator == self)\r
        {\r
                Client_setmodel(stomachmodel);\r
+               self.angles_x = self.angles_z = 0; // don't apply player leaning to stomach models\r
                self.effects |= EF_NODEPTHTEST; // don't hide behind walls\r
                self.alpha = other.cvar_cl_vore_stomachmodel;\r
                return TRUE;\r
index 4452d487d1752b9c3e8ae3cce3a801bc3e26af9b..69aae0c34b6a1b8adb6c63122b10e6a2f89e8990 100644 (file)
@@ -130,7 +130,7 @@ vector      PL_MAX                                  = '16 16 45';
 vector PL_CROUCH_VIEW_OFS                      = '0 0 15';\r
 vector PL_CROUCH_MIN                           = '-16 -16 -24';\r
 vector PL_CROUCH_MAX                           = '16 16 25';\r
-vector PL_PREY_VIEW_OFS                        = '0 0 15';\r
+vector PL_PREY_VIEW_OFS                        = '0 0 25';\r
 \r
 // Sajt - added these, just as constants. Not sure how you want them actually put in the game, but I just\r
 // did this so at least they worked\r
index 96f49a4c5ab2cf662e0ff63a681e22d0f349e576..9d3079f266bcb67a623119ecc0e385dc6611d03f 100644 (file)
@@ -131,7 +131,7 @@ void Vore_SetPreyPositions(entity pred)
                {\r
                        origin_apply_x = PL_PREY_VIEW_OFS_x + crandom() * cvar("g_vore_neighborprey_distance");\r
                        origin_apply_y = PL_PREY_VIEW_OFS_y + crandom() * cvar("g_vore_neighborprey_distance");\r
-                       origin_apply_z = PL_PREY_VIEW_OFS_z;\r
+                       origin_apply_z = PL_PREY_VIEW_OFS_z * pred.scale;\r
 \r
                        // since prey have their predators set as an aiment, view_ofs will specify the real origin of prey, not just the view offset\r
                        head.view_ofs = origin_apply;\r