Skip to content

Commit

Permalink
Merge pull request #300 from GMLambda/fix-skill-error
Browse files Browse the repository at this point in the history
Fix skill error
  • Loading branch information
ZehMatt authored Jun 18, 2024
2 parents c93a52b + 2cc92f3 commit e1a36c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion gamemode/sh_difficulty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e1a36c7

Please sign in to comment.