]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix #2128 "Hitscan weapons create no decals when shooting almost straight down at...
authorterencehill <piuntn@gmail.com>
Wed, 18 Jan 2023 22:14:52 +0000 (23:14 +0100)
committerterencehill <piuntn@gmail.com>
Wed, 18 Jan 2023 22:14:52 +0000 (23:14 +0100)
qcsrc/common/effects/qc/damageeffects.qc

index b0219e9f065ab6b52e1a8a1a10ff13cac573a373..a80341bd02b295bf4fbc51eb519d564f9e1e3a9e 100644 (file)
@@ -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))