From: Mario Date: Sat, 27 Jul 2019 02:33:45 +0000 (+1000) Subject: Apply the accurate impact effect logic to all hitscan weapons X-Git-Tag: xonotic-v0.8.5~1447 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=commitdiff_plain;h=4a4a6318d39d7f4fd6fd56e5a79dd1edadd1b2a4 Apply the accurate impact effect logic to all hitscan weapons --- diff --git a/qcsrc/common/effects/qc/damageeffects.qc b/qcsrc/common/effects/qc/damageeffects.qc index 5dd3e4c82..17f48136a 100644 --- a/qcsrc/common/effects/qc/damageeffects.qc +++ b/qcsrc/common/effects/qc/damageeffects.qc @@ -392,7 +392,7 @@ NET_HANDLE(ENT_CLIENT_DAMAGEINFO, bool isNew) w_random = prandom(); traceline(w_org - normalize(force) * 16, w_org + normalize(force) * 16, MOVE_NOMONSTERS, NULL); - if(trace_fraction < 1 && hitwep != WEP_VORTEX && hitwep != WEP_VAPORIZER) + if(trace_fraction < 1 && !(hitwep.spawnflags & WEP_TYPE_HITSCAN)) w_backoff = trace_plane_normal; else w_backoff = -1 * normalize(force);