-- Script to get continues in old style special stages -- By SteelT local total_rings = 0 addHook("PlayerThink", function(p) if (multiplayer) then return end if (maptol & TOL_NIGHTS) then return end if (G_IsSpecialStage(gamemap)) then if (total_rings > 0 and p.rings >= total_rings/2) and (not p.gotcontinue) then p.gotcontinue = 1 p.continues = $ + 1 S_StartSound(nil, sfx_s3kac, p) end end end) addHook("MapLoad", function(gamemap) total_rings = 0 if (multiplayer) then return end if (maptol & TOL_NIGHTS) then return end if (G_IsSpecialStage(gamemap)) then for m in mobjs.iterate() do if (m.type == MT_RING or m.type == MT_COIN) total_rings = $ + 1 end end end end)