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

Documentation
Marco Cawthorne 1 year ago
parent bb92aaf37f
commit 298ba7a041
Signed by: eukara
GPG Key ID: CE2032F0A2882A22

@ -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);
}

Loading…
Cancel
Save