diff --git a/changelog.md b/changelog.md index 5947842c..84c129b0 100644 --- a/changelog.md +++ b/changelog.md @@ -2,6 +2,7 @@ - Improved: Hints will no longer show duplicates, instead it will renew the existing hint that has the same text. - Improved: ep1_c17_05: Add a checkpoint after the hallway. - Fixed: ep1_c17_02a: Alyx not picking up a shotgun. +- Fixed: No longer runs 'skill' concommand, it's blocked since version 201211. 0.9.24 - Fixed: trigger_multiple ignoring the delay time. diff --git a/gamemode/sh_difficulty.lua b/gamemode/sh_difficulty.lua index a28103cf..a8a2642d 100644 --- a/gamemode/sh_difficulty.lua +++ b/gamemode/sh_difficulty.lua @@ -160,7 +160,10 @@ function GM:AdjustDifficulty() if data == nil then return end if SERVER then - RunConsoleCommand("skill", tostring(data.Skill)) + if tonumber(VERSION) < 201211 then + -- Remove this once main is updated. + RunConsoleCommand("skill", tostring(data.Skill)) + end game.SetSkillLevel(data.Skill) for k, v in pairs(self.EnemyNPCs or {}) do