Update ray trace masks and beam cleanup
#### General - **Updated markdown** files. - Switched from `RayTrace.WorldOnlyMask` to CounterStrikeSharp's built-in `Masks.SolidBrushOnly` mask. - Added tracking and automatic removal of beams created by traces with `drawBeam` enabled.
This commit is contained in:
parent
f88fed45b3
commit
5f21afd34d
9 changed files with 50 additions and 6 deletions
|
|
@ -162,7 +162,7 @@ namespace src.player.skills
|
|||
Vector rightDir = SkillUtils.GetForwardVector(new QAngle(0, yaw - 90, 0));
|
||||
Vector leftDir = SkillUtils.GetForwardVector(new QAngle(0, yaw + 90, 0));
|
||||
|
||||
ulong wallMask = RayTrace.WorldOnlyMask;
|
||||
ulong wallMask = (ulong)Masks.SolidBrushOnly;
|
||||
|
||||
var rightHit = RayTrace.TraceShape(player, origin, origin + rightDir * maxDistance, wallMask, 0);
|
||||
var leftHit = RayTrace.TraceShape(player, origin, origin + leftDir * maxDistance, wallMask, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue