KaySonic

KaySonic 1.1

  • Thread starter KaySonicTheHedgehog
  • Start date
"WARNING: MobjMoveCollide hooks not attached to a specific mobj type are deprecated and will be removed" This is not a bug.

I will show you how to fix it below:
code_language.lua:
addHook ("MobjMoveCollide", function (player, spike)
    if player ~= nil
    and player.player ~= nil
    and player.skin == "kaysonic"
        if (player.z + player.height < spike.z)
        or (player.z > spike.z + spike.height)
            return false
        end
    end
end,MT_SPIKE)

addHook ("MobjMoveCollide", function (player, spike)
    if player ~= nil
    and player.player ~= nil
    and player.skin == "kaysonic"
        if (player.z + player.height < spike.z)
        or (player.z > spike.z + spike.height)
            return false
        end
    end
end,MT_WALLSPIKE)

addHook ("MobjMoveCollide", function (spike, player)
    if player ~= nil
    and player.player ~= nil
    and player.skin == "kaysonic"
        P_KillMobj(spike,player,player)
    end
end,MT_PLAYER)
Thank you
 
Top