From 692b0eb214bcd5038d1f6bdc2b4f3c8d6bdab042 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Thu, 20 May 2021 22:59:49 +0200 Subject: [PATCH] Add support for cl_himodels. --- src/client/player.qc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/player.qc b/src/client/player.qc index 4c8517a..05f22ce 100644 --- a/src/client/player.qc +++ b/src/client/player.qc @@ -121,6 +121,12 @@ Player_HandleWeaponModel(base_player pp, float thirdperson) /* set the new skeletonindex */ pl.p_model.skeletonindex = skel_create(pl.p_model.modelindex); + + /* hack this thing in here FIXME: this should be done when popping in/out of a pvs */ + if (autocvar(cl_himodels, 1, "Use high-quality player models over lower-definition ones")) + setcustomskin(self, "", "geomset 0 2\n"); + else + setcustomskin(self, "", "geomset 0 1\n"); } /* follow player at all times */