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

Commit c9d9633

Browse files
committed
Fix for #56
- Fix for #56 - Removed old_KeyPress lines
1 parent 0e99aa3 commit c9d9633

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: lua/cl_spectator_deathmatch.lua

+3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ hook.Add("RenderScreenspaceEffects", "RenderScreenspaceEffects_Ghost", function(
5353
if emitter then
5454
emitter:Draw()
5555
end
56+
if not v:IsDormant() then
57+
v:DrawModel()
58+
end
5659
render.SuppressEngineLighting( false )
5760
end
5861
end

Diff for: lua/sv_specdm_overrides.lua

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

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

126-
local old_KeyPress = GAMEMODE.KeyPress
127126
function GAMEMODE:KeyPress(ply, key)
128127
if IsValid(ply) and ply:IsGhost() then
129128
if ply.allowrespawn then
130129
SpecDM_Respawn(ply)
131130
end
132131
return
133132
end
134-
return old_KeyPress(self, ply, key)
135133
end
136134

137135
local old_SpectatorThink = GAMEMODE.SpectatorThink

0 commit comments

Comments
 (0)