addHook("ThinkFrame", function()
	if gamemap == 29 //Red Barrage Area Map
		for mapthing in mapthings.iterate
			if mapthing
			and mapthing.valid
				if mapthing.type == 293
				and mapthing.mobj
				and mapthing.mobj.valid
				and mapthing.mobj.type == MT_BOSS9GATHERPOINT
					if mapthing.angle == 37
						for sector in sectors.iterate
							if sector
							and sector.valid
								if sector.tag == 52 //This is pressed button, I will use it
									if sector.floorpic == "STRSWCH1"
									P_SetOrigin(mapthing.mobj, mapthing.x*FRACUNIT, mapthing.y*FRACUNIT, mapthing.mobj.z)
									else
									P_SetOrigin(mapthing.mobj, 3904*FRACUNIT, 2560*FRACUNIT, mapthing.mobj.z)
									end
								end
							end
						end
					end
				end
			end
		end
	end
end)