//Custom maps

freeslot(
"MT_STARBUSH",
"MT_GLS1B",
"MT_GLS1A",
"MT_GLS2A",
"MT_GLS2B",
"MT_GLS3A",
"MT_GLS4A",
"MT_KHF4A",
"MT_RWZ1",
"MT_RWZ2",
"MT_REDMFLOWER",
"MT_YELLOWMFLOWER"
)

//Mario Flowers
addHook("MapThingSpawn", function(mo, mp)
	mo.height = TICRATE*3
	mo.radius = TICRATE*8
	mo.flags = $&~MF_NOCLIP
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_REDMFLOWER)
addHook("MapThingSpawn", function(mo, mp)
	mo.height = TICRATE*3
	mo.radius = TICRATE*8
	mo.flags = $&~MF_NOCLIP
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_YELLOWMFLOWER)

//Neo Palm Tree
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOBLOCKMAP
	mo.flags = $&~MF_NOCLIP
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_STARBUSH)

//Extra
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOCLIP
	mo.height = FRACUNIT*12
	mo.radius = FRACUNIT*12
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_GLS2A)
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOCLIP
	mo.height = FRACUNIT*12
	mo.radius = FRACUNIT*12
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_GLS2B)
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOCLIP
	mo.height = FRACUNIT*12
	mo.radius = FRACUNIT*12
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_GLS1A)
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOCLIP
	mo.height = FRACUNIT*12
	mo.radius = FRACUNIT*12
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_GLS1B)
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOCLIP
	mo.height = FRACUNIT*12
	mo.radius = FRACUNIT*12
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_GLS3A)
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOCLIP
	mo.height = FRACUNIT*12
	mo.radius = FRACUNIT*12
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_GLS4A)
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOCLIP
	mo.height = FRACUNIT*12
	mo.radius = FRACUNIT*12
	mo.info.deathstate = S_TAZW2
	mo.info.painchance = MT_TWLEAF
	mo.info.reactiontime = 100
end,MT_KHF4A)
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOCLIP
	mo.info.deathstate = S_TAZW
	mo.info.painchance = MT_TWDB
	mo.info.reactiontime = 100
end,MT_RWZ1)
addHook("MapThingSpawn", function(mo, mp)
	mo.flags = $|MF_SOLID
	mo.flags = $|MF_SHOOTABLE
	mo.flags = $&~MF_NOCLIP
	mo.info.deathstate = S_TAZW
	mo.info.painchance = MT_TWDB
	mo.info.reactiontime = 100
end,MT_RWZ2)