From: bones_was_here <bones_was_here@xonotic.au>
Date: Sat, 24 Dec 2022 11:42:48 +0000 (+1000)
Subject: Use model size for casing bbox
X-Git-Tag: xonotic-v0.8.6~235^2~1
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=8c0d1072fde2d774cf06b7ba5c42ef198508547d;p=xonotic%2Fxonotic-data.pk3dir.git

Use model size for casing bbox

Fixes floating slightly off the ground or poking into solids
horizontally
---

diff --git a/qcsrc/common/effects/qc/casings.qc b/qcsrc/common/effects/qc/casings.qc
index 3de21aeda..b49ff60fa 100644
--- a/qcsrc/common/effects/qc/casings.qc
+++ b/qcsrc/common/effects/qc/casings.qc
@@ -197,8 +197,6 @@ NET_HANDLE(casings, bool isNew)
             break;
     }
 
-    setsize(casing, '0 0 -1', '0 0 -1');
-
     LimitedChildrenRubble(CasingsNGibs, "casing", autocvar_cl_casings_maxcount, Casing_Delete, NULL);
 }