From: MirceaKitsune Date: Mon, 2 May 2011 17:08:44 +0000 (+0300) Subject: Use a separate view offset for prey X-Git-Url: https://de.git.xonotic.org/?p=voretournament%2Fvoretournament.git;a=commitdiff_plain;h=63e7ba956a09ae88f42625f96768694ff5ae1a00 Use a separate view offset for prey --- diff --git a/data/qcsrc/server/constants.qh b/data/qcsrc/server/constants.qh index eb5403d7..4452d487 100644 --- a/data/qcsrc/server/constants.qh +++ b/data/qcsrc/server/constants.qh @@ -130,6 +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'; // 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 7a1d2215..60999e71 100644 --- a/data/qcsrc/server/vore.qc +++ b/data/qcsrc/server/vore.qc @@ -141,7 +141,7 @@ void Vore_CameraEffect_Apply() else self.cameraeffect_current = self.cameraeffect_target; - self.view_ofs_z = PL_VIEW_OFS_z / self.cameraeffect_current; + self.view_ofs_z = PL_PREY_VIEW_OFS_z / self.cameraeffect_current; } .float gurgle_oldstomachload;