local thing
local time
local time2
time2 = 0 
thing = false
time = 0


local function Shadowsfirstfunction(line, mobj)

thing = true
time = 154


end


addHook("LinedefExecute", Shadowsfirstfunction, "SHADOW")


addHook("ThinkFrame", do
if  mapheaderinfo[gamemap].shadowscoolmod

if thing == true 
if time > 0 
if time2 == 35
time = time-1
time2 = 0
end
time2 = time2+1
end
end
end
end)

addHook("MapLoad", do
if  mapheaderinfo[gamemap].shadowscoolmod
time2 = 0
time = 0
thing = false
end

end)

hud.add(function(v, player)
if  mapheaderinfo[gamemap].shadowscoolmod
if thing == true
v.drawNum(170, 170, time,V_SNAPTOBOTTOM|V_PERPLAYER)
end
end
end)