internal void AddLosCheck(LosDebug debug) { //if (!WeaponLosDebugActive.Add(debug.Weapon)) //return; LosDebugList.Add(debug); }
internal void LosDebuging() { for (var i = LosDebugList.Count - 1; i >= 0; i--) { var info = LosDebugList[i]; DsDebugDraw.DrawLine(info.Line, Color.Red, 0.15f); if (Tick - info.HitTick > 1200) { LosDebugList.RemoveAtFast(i); WeaponLosDebugActive.Remove(info.Weapon); } } }