Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix skill error #300

Merged
merged 2 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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