From: terencehill Date: Wed, 18 Jan 2023 22:14:52 +0000 (+0100) Subject: Fix #2128 "Hitscan weapons create no decals when shooting almost straight down at... X-Git-Tag: xonotic-v0.8.6~144^2~1 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c55b6d29a4d63bedac313c545d6fbdfbaa148f87;p=xonotic%2Fxonotic-data.pk3dir.git Fix #2128 "Hitscan weapons create no decals when shooting almost straight down at the floor i am standing on" --- diff --git a/qcsrc/common/effects/qc/damageeffects.qc b/qcsrc/common/effects/qc/damageeffects.qc index b0219e9f0..a80341bd0 100644 --- a/qcsrc/common/effects/qc/damageeffects.qc +++ b/qcsrc/common/effects/qc/damageeffects.qc @@ -259,8 +259,8 @@ NET_HANDLE(ENT_CLIENT_DAMAGEINFO, bool isNew) DamageEffect(it, w_org, thisdmg, w_deathtype, species); - if((it.isplayermodel & ISPLAYER_MODEL)) - hitplayer = true; // this impact damaged a player + if(it != csqcplayer && (it.isplayermodel & ISPLAYER_MODEL)) + hitplayer = true; // this impact damaged another player }); if(DEATH_ISVEHICLE(w_deathtype))