Set nodrawtoclient on the server-side view model (doesn't need to render)
authorMario <mario@smbclan.net>
Fri, 12 Oct 2018 17:28:13 +0000 (03:28 +1000)
committerMario <mario@smbclan.net>
Fri, 12 Oct 2018 17:28:13 +0000 (03:28 +1000)
qcsrc/server/weapons/weaponsystem.qc

index 2156c89..1f8c58b 100644 (file)
@@ -179,6 +179,7 @@ void CL_SpawnWeaponentity(entity actor, .entity weaponentity)
        setthink(view, CL_Weaponentity_Think);
        view.nextthink = time;
        view.viewmodelforclient = actor;
+       view.nodrawtoclient = actor;
        view.draggable = drag_undraggable;
        setcefc(view, CL_Weaponentity_CustomizeEntityForClient);