NSTraceAttack: offset decals a little when placing them near a wall so they don't count as inside of them on certain angles.

This commit is contained in:
Marco Cawthorne 2022-11-10 17:21:42 -08:00
parent bb92aaf37f
commit 298ba7a041
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ NSTraceAttack::_FireSingle(vector vecPos, vector vecAngles, float flDamage, floa
/* impact per bullet */
if (trace_ent.iBleeds == 0) {
if (m_strDecalGroup)
DecalGroups_Place(m_strDecalGroup, trace_endpos);
DecalGroups_Place(m_strDecalGroup, trace_endpos + (v_forward * -2));
SurfData_Impact(trace_ent, trace_surfaceflagsi, trace_endpos, trace_plane_normal);
}