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; }
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); }