Пример #1
0
        internal void AddLosCheck(LosDebug debug)
        {
            if (!WeaponLosDebugActive.Add(debug.Weapon))
            {
                return;
            }

            LosDebugList.Add(debug);
        }
Пример #2
0
        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);
                }
            }
        }