]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
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 2156c89b4a3e1ad21e4ab201c2f16345b44d4268..1f8c58be14a9ee886c52b03febe4d6dd1c717db8 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);