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

Commit

Permalink
Fix for #56
Browse files Browse the repository at this point in the history
- Fix for #56
- Removed old_KeyPress lines
  • Loading branch information
MinIsMin committed May 14, 2017
1 parent 0e99aa3 commit c9d9633
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions lua/cl_spectator_deathmatch.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ hook.Add("RenderScreenspaceEffects", "RenderScreenspaceEffects_Ghost", function(
if emitter then
emitter:Draw()
end
if not v:IsDormant() then
v:DrawModel()
end
render.SuppressEngineLighting( false )
end
end
Expand Down
2 changes: 0 additions & 2 deletions lua/sv_specdm_overrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,13 @@ end)

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

local old_KeyPress = GAMEMODE.KeyPress
function GAMEMODE:KeyPress(ply, key)
if IsValid(ply) and ply:IsGhost() then
if ply.allowrespawn then
SpecDM_Respawn(ply)
end
return
end
return old_KeyPress(self, ply, key)

This comment has been minimized.

Copy link
@mcNuggets1

mcNuggets1 May 19, 2017

Contributor

That was a mistake :D

This comment has been minimized.

Copy link
@MinIsMin

MinIsMin May 19, 2017

Author Collaborator

Well... Yes. xD

end

local old_SpectatorThink = GAMEMODE.SpectatorThink
Expand Down

0 comments on commit c9d9633

Please sign in to comment.