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:
parent
bb92aaf37f
commit
298ba7a041
|
@ -123,7 +123,7 @@ NSTraceAttack::_FireSingle(vector vecPos, vector vecAngles, float flDamage, floa
|
||||||
/* impact per bullet */
|
/* impact per bullet */
|
||||||
if (trace_ent.iBleeds == 0) {
|
if (trace_ent.iBleeds == 0) {
|
||||||
if (m_strDecalGroup)
|
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);
|
SurfData_Impact(trace_ent, trace_surfaceflagsi, trace_endpos, trace_plane_normal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue