X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fclient%2Fview.qc;h=e4f38b24c2d145e917765d4ee725f171feff083b;hb=3e88d2beabfecae91c21f9ffb87a32685f3df370;hp=0f8b5949501d0a21c4b3deb76fa73b14c551b896;hpb=91be51af76146036564f55499150039f62f772c5;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 0f8b59495..e4f38b24c 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -1,5 +1,7 @@ #include "view.qh" +#include "autocvars.qh" +#include "miscfunctions.qh" #include "announcer.qh" #include "hud/_mod.qh" #include "mapvoting.qh" @@ -21,6 +23,7 @@ #include #include #include +#include #include @@ -311,6 +314,7 @@ void viewmodel_draw(entity this) e.csqcmodel_effects = fx; CSQCModel_Effects_Apply(e); } + if(a >= 0) { string name = wep.mdl; string newname = wep.wr_viewmodel(wep, this); @@ -2111,7 +2115,7 @@ void CSQC_UpdateView(entity this, float w, float h) // improved polyblend - if(autocvar_hud_contents) + if(autocvar_hud_contents && !MUTATOR_CALLHOOK(HUD_Contents)) { float contentalpha_temp, incontent, liquidalpha, contentfadetime; vector liquidcolor;