Ejemplo n.º 1
0
 public override void Precache()
 {
     // Do all of this in here because we need to 'convert' old saved games
     Solid = Solid.Not;
     Skin  = (int)Contents.Ladder;
     if (CVar.GetFloat("showtriggers") == 0)
     {
         RenderMode   = RenderMode.TransTexture;
         RenderAmount = 0;
     }
     Effects &= ~EntityEffects.NoDraw;
 }
Ejemplo n.º 2
0
        public float GetSkillCVar(string name)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            var completeName = $"{name}{(int)SkillLevel}";

            var value = CVar.GetFloat(completeName);

            if (value <= 0)
            {
                Log.Alert(AlertType.Console, $"GetSkillCVar Got a zero for {completeName}");
            }

            return(value);
        }