From 8d4a3830fea0b7fcc9a164ea77abb30aff276c30 Mon Sep 17 00:00:00 2001
From: Marco Hladik <marco@icculus.org>
Date: Wed, 20 Feb 2019 16:21:02 +0100
Subject: [PATCH] Add r_drawviewmodel support

---
 Source/client/view.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Source/client/view.c b/Source/client/view.c
index 7449ee60..328fd455 100644
--- a/Source/client/view.c
+++ b/Source/client/view.c
@@ -133,6 +133,10 @@ void View_DrawViewModel(void)
 	if (pl.health <= 0) {
 		return;
 	}
+	
+	if (cvar("r_drawviewmodel") == 0) {
+		return;
+	}
 
 	// Don't update when paused
 	if (serverkeyfloat("pausestate") == 0) {