From: Rudolf Polzer Date: Mon, 14 Nov 2011 06:03:07 +0000 (+0100) Subject: get out view_ofs networking, we have a stat for that X-Git-Tag: xonotic-v0.6.0~74^2~100^2~81 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=cd41b0ebe622296ddd4c38aac369955c44040a47;p=xonotic%2Fxonotic-data.pk3dir.git get out view_ofs networking, we have a stat for that --- diff --git a/qcsrc/csqcmodel/cl_player.qc b/qcsrc/csqcmodel/cl_player.qc index d22052416..f427073e1 100644 --- a/qcsrc/csqcmodel/cl_player.qc +++ b/qcsrc/csqcmodel/cl_player.qc @@ -137,7 +137,7 @@ void CSQCPlayer_SetCamera() self = oldself; - org = csqcplayer.origin + csqcplayer.view_ofs + CSQCPlayer_GetPredictionError(); + org = csqcplayer.origin + '0 0 1' * getstatf(STAT_VIEWHEIGHT) + CSQCPlayer_GetPredictionError(); ang = R_SetView3fv(VF_ANGLES); // simulate missing engine features diff --git a/qcsrc/csqcmodel/common.qc b/qcsrc/csqcmodel/common.qc index 74dbc78ad..7df1f295e 100644 --- a/qcsrc/csqcmodel/common.qc +++ b/qcsrc/csqcmodel/common.qc @@ -19,8 +19,7 @@ PROPERTY(2, ReadAngle, WriteAngle, angles_y) \ PROPERTY(2, ReadAngle, WriteAngle, angles_z) \ PROPERTY(4, ReadShort, WriteShort, modelindex) \ - PROPERTY(8, ReadChar, WriteChar, view_ofs_z) \ - CSQCMODELS_EXTRAPROPERTIES(16) + CSQCMODELS_EXTRAPROPERTIES(8) #ifdef CSQCMODELS_HAVE_TWO_FRAMES .float frame3;