Skip to content

Commit

Permalink
Remove unused event and variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ds1-e committed Nov 19, 2024
1 parent 7688fbe commit f5b734d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions [gameplay]/superman/CHandleSuperman.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ function Superman.Start()
addEventHandler("onClientRender", root, Superman.processFlight)
addEventHandler("onClientPlayerDamage", localPlayer, Superman.onDamage, false)
addEventHandler("onClientPlayerVehicleEnter", localPlayer, Superman.onEnter)
addEventHandler("onClientElementStreamIn", root, Superman.onStreamIn)
addEventHandler("onClientElementStreamOut", root, Superman.onStreamOut)

bindKey("jump", "down", Superman.onJump)
Expand Down Expand Up @@ -158,18 +157,11 @@ function Superman.onEnter()
end

function Superman.onDamage()
local self = Superman

if isPlayerFlying(localPlayer) then
cancelEvent()
end
end

-- onStreamIn: Reset rotation attribute for player
function Superman.onStreamIn()
local self = Superman
end

function Superman.onStreamOut()
local self = Superman

Expand Down

0 comments on commit f5b734d

Please sign in to comment.