]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Adjust view offset too so it isn't poking out the top of the model
authorMario <mario@smbclan.net>
Thu, 27 Sep 2018 05:29:38 +0000 (15:29 +1000)
committerMario <mario@smbclan.net>
Thu, 27 Sep 2018 05:29:38 +0000 (15:29 +1000)
qcsrc/common/physics/player.qc

index d3c1f6002bff9a3610bcaa61f7c4b891aecbc7a2..87d456c018fb4ad7b5f52243b73d9e13c4f7c569 100644 (file)
@@ -52,10 +52,10 @@ void Physics_UpdateStats(entity this)
        bool vq3compat = autocvar_sv_vq3compat && autocvar_sv_vq3compat_changehitbox; // NOTE: these hitboxes are off by 1 due to engine differences
        STAT(PL_MIN, this) = (vq3compat) ? '-15 -15 -24' : autocvar_sv_player_mins;
        STAT(PL_MAX, this) = (vq3compat) ? '15 15 32' : autocvar_sv_player_maxs;
-       STAT(PL_VIEW_OFS, this) = autocvar_sv_player_viewoffset;
+       STAT(PL_VIEW_OFS, this) = (vq3compat) ? '0 0 26' : autocvar_sv_player_viewoffset;
        STAT(PL_CROUCH_MIN, this) = (vq3compat) ? '-15 -15 -24' : autocvar_sv_player_crouch_mins;
        STAT(PL_CROUCH_MAX, this) = (vq3compat) ? '15 15 16' : autocvar_sv_player_crouch_maxs;
-       STAT(PL_CROUCH_VIEW_OFS, this) = autocvar_sv_player_crouch_viewoffset;
+       STAT(PL_CROUCH_VIEW_OFS, this) = (vq3compat) ? '0 0 12' : autocvar_sv_player_crouch_viewoffset;
 
        // old stats
        // fix some new settings