print("\n\x82".."Monitors Plus "..versionString.." \x80 Made by TechnoGod, Snu, Lat' and Spectorious\n")

local inDev = false    -- set this to false on release builds
if (inDev)
    local loaded = true
    addHook("ThinkFrame", do
        if (loaded) then return end
        if not (server) then return end
        
        for p in players.iterate do COM_BufInsertText(p, "addfile MPsounds.pk3") end
        loaded = true
    end)

    addHook("MobjDamage", function(mo, inflictor, source)
        if not (inflictor and inflictor.valid) then return end
        if not (source and source.valid) then return end
        
        if not (source.player and source.skin == "fang") then return end
        if (inflictor.type != MT_CORK) then return end
        
        P_DamageMobj(source, mo, mo)
        return true
    end, MT_PLAYER)
end