local floorsstart = 467 local floors = { "BLUEFLR", "CYANFLR", "GOLDFLR", "GREENFLR", "GREYFLR", "LIMEFLR", "NEOGFLR", "ORGFLR", "PURFLR", "REDFLR", "VIOFLR", "WHITEFLR", "YELFLR" } local function plswork(a) if a < floorsstart or a > floorsstart + #floors then return end return floors[a - floorsstart + 1] end local function ColorSplash() for sector in sectors.iterate sector.floorpic = plswork(P_RandomRange(467, 479)) sector.ceilingpic = plswork(P_RandomRange(467, 479)) for rover in sector.ffloors() rover.toppic = plswork(P_RandomRange(467, 479)) rover.bottompic = plswork(P_RandomRange(467, 479)) end end for side in sides.iterate if side.toptexture side.toptexture = P_RandomRange(467, 479) end if side.bottomtexture side.bottomtexture = P_RandomRange(467, 479) end if side.midtexture side.midtexture = P_RandomRange(467, 479) end end for mo in mobjs.iterate() mo.color = P_RandomRange(1, #skincolors-1) mo.colorized = true end end addHook("PlayerThink", function(player) if not player.second then ColorSplash() player.second = TICRATE end player.second = $-1 end) addHook("MobjSpawn", function(mo) mo.color = P_RandomRange(1, #skincolors-1) mo.colorized = true end)