Skip to content
This repository was archived by the owner on Mar 11, 2021. It is now read-only.

Commit 2d2942d

Browse files
committed
Fix for #58
Well, I thought the lines would do nothing. And I was wrong.
1 parent 17b9b41 commit 2d2942d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lua/sv_specdm_overrides.lua

+2
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,15 @@ end)
123123

124124
hook.Add("Initialize", "Initialize_SpecDM", function()
125125

126+
local old_KeyPress = GAMEMODE.KeyPress
126127
function GAMEMODE:KeyPress(ply, key)
127128
if IsValid(ply) and ply:IsGhost() then
128129
if ply.allowrespawn then
129130
SpecDM_Respawn(ply)
130131
end
131132
return
132133
end
134+
return old_KeyPress(self, ply, key)
133135
end
134136

135137
local old_SpectatorThink = GAMEMODE.SpectatorThink

0 commit comments

Comments
 (0)