/*
================================================================================
 Splot2 Definition Code
 
 Author: The Kinsie
 
 Purpose: Map and Game Definition
 
 Comment: 

================================================================================
*/

// Basic game definition info
gameinfo
{
	quitsound = "bosses/thejerk/see"
	quitmessages = "$QUITMSG_1", "$QUITMSG_2", "$QUITMSG_3", "$QUITMSG_4", "$QUITMSG_5", "$QUITMSG_6", "$QUITMSG_3P1", "$QUITMSG_3P2", "$QUITMSG_3P3", "$QUITMSG_3P4", "$QUITMSG_3P5"
	playerclasses = "Splot_Player"
	titlemusic = "m_title"
	intermissionmusic = "m_null"
	cursorpic = "cursor"
	
	statusbarclass = "Splot_StatusBar"
	defaultconversationmenuclass = "Splot_ConversationMenu"
	statscreen_coop = "Splot_StatusScreen"
	statscreen_dm = "Splot_StatusScreen"
	statscreen_single = "Splot_StatusScreen"
	
	helpmenuclass = "SplotManual_Menu"
	EventHandlers = "Splot_EffectsHandler", "SplotManual_Hijacker"
}

DoomEdNums
{
	// Spawners
	10001 = "Splot_PowerupSpawner"
	10002 = "Splot_WeaponSpawner"
	10003 = "Splot_EnemySpawner"
	10004 = "Splot_BossSpawner"
	10005 = "Splot_MiniBossSpawner"
	
	// Helpers
	10101 = "Splot_MapHelper"

	// Map Props
	20000 =	"Splot_PalmTree"
	20001 = "Splot_BeachWeeds"
	20002 = "Splot_PortalFX"
	20003 = "Splot_GoreNestFX"
	20004 = "Splot_StatueJones"
	20005 = "Splot_BigTree"
	20006 = "Splot_Durandal_RepairChip"
	20007 = "Splot_Durandal_ShortLight"
	20008 = "Splot_Durandal_LongLight"
	20009 = "Splot_Durandal_BloodPuddles"
	20010 = "Splot_Durandal_BloodyStuff"
	20011 = "Splot_Durandal_BloodyGun"
	20012 = "Splot_Durandal_FightersStaff"
	20013 = "Splot_Durandal_Puddles"
	20014 = "Splot_Durandal_Siren"
	20015 = "Splot_Durandal_WaterFiltration"
	20016 = "Splot_Castle_StandingTorch"
	20017 = "Splot_Castle_StandingTorch_Unlit"
	20018 = "Splot_Castle_StandingTorch_Gold"
	20019 = "Splot_Castle_Chandelier"
	20020 = "Splot_CircusRoof"
	20021 = "Splot_Castle_MiniChandelier"
	20022 = "Splot_Castle_SporeSpawner"
	20023 = "Splot_Castle_Dripper"
	20024 = "Splot_Castle_WallTorch"
	20025 = "Splot_TrafficCone"
	20026 = "Splot_OutdoorTable"
	20027 = "Splot_TrashCan"
	20028 = "Splot_Barricade"
	20029 = "Splot_Spikes"
	20030 = "Splot_BiggerTree"
	20031 = "Splot_PlaneProp"
	20032 = "Splot_PlaneProp_Small"
	20033 = "Splot_PlazaLight"
	20034 = "Splot_FireHydrant"
	20035 = "Splot_PlazaTree1"
	20036 = "Splot_PlazaTree2"
	20037 = "Splot_PlazaTree3"
	20038 = "Splot_BridgeTree1"
	20039 = "Splot_BridgeTree2"
	20040 = "Splot_BridgeTree3"
	20041 = "Splot_BridgeBarricade"
	20042 = "Splot_BossRushDoor"
	20043 = "Splot_BossRushSearchlight"
	20044 = "Splot_Town_StandingTorch_Gold"
	20045 = "Splot_Town_WallTorch"
	20046 = "Splot_Castle_WallTorch_Unlit"
	20047 = "Splot_Overflow_QuakeRoom"
	20048 = "Splot_Town_SatelliteDish"
	20049 = "Splot_Castle_Armor"
	20050 = "Splot_Castle_Plant"
	20051 = "Splot_BossRushShitThrower"
	20052 = "Splot_ChaosCanary"
	20053 = "Splot_Temple_Ring1"
	20054 = "Splot_Temple_Ring2"
	20055 = "Splot_Temple_PillarRoomAmbience"
	20056 = "Splot_BossRushPitLight"
	20057 = "Splot_Castle_HangPlant"
	20058 = "Splot_Castle_Barrel"
	20059 = "Splot_Castle_Bucket"
	20060 = "Splot_Town_RockPile"
	20061 = "Splot_Overflow_WallLight1"
	20062 = "Splot_WaterfallMistSpawner"
	20063 = "Splot_Haunt_Moon"
	20064 = "Splot_Haunt_Campfire"
	20065 = "Splot_Overflow_TechLamp"
	20066 = "Splot_Overflow_TechLamp2"
	20067 = "Splot_Overflow_Column"
	20068 = "Splot_Overflow_ConstructionLight"
	20069 = "Splot_Overflow_FloorLight1"
	20070 = "Splot_Overflow_Klaxon"
	20071 = "Splot_Castle_Column"
	20072 = "Splot_Castle_Column_Ruined"
	20073 = "Splot_Castle_Column_RuinedShort"
	20074 = "Splot_Castle_Column_RuinedTall"
	20075 = "Splot_Castle_Chair"
	20076 = "Splot_Castle_Column_EntranceA"
	20077 = "Splot_Castle_Column_EntranceB"
	20078 = "Splot_Castle_Candelabra"
	20079 = "Splot_TownBoat"
	20080 = "Splot_Town_CarDebris1"
	20081 = "Splot_Town_CarDebris2"
	20082 = "Splot_Town_CarDebris3"
	20083 = "Splot_Town_CarDebris4"
	20084 = "Splot_Overflow_WaterMachine"
	20085 = "Splot_OutdoorTable_Shootable"
	20086 = "Splot_Microphone"
	20087 = "Splot_TownCrate"
	20088 = "Splot_Overflow_LightCone"
	20089 = "Splot_Overflow_LightConeWeak"
	20090 = "Splot_Overflow_LightConeBig"
	20091 = "Splot_Overflow_LightConeEnormous"
	20092 = "Splot_RandomBottle"
	
	20101 = "Splot_CastleRelic1"
	20102 = "Splot_CastleRelic2"
	20103 = "Splot_CastleRelic3"
	20104 = "Splot_CastleRelic4"
	20105 = "Splot_CastleRelic5"
	20106 = "Splot_CastleRelic6"
	20107 = "Splot_CastleRelic7"
	20108 = "Splot_CastleRelic8"
	20109 = "Splot_CastleRelic9"
	20110 = "Splot_CastleRelic10"
	20111 = "Splot_CastleRelic11"
	20112 = "Splot_CastleRelic12"
	20113 = "Splot_LootSecret"
	20114 = "Splot_LootSecretSmall"
	
	30000 = "Splot_MapFireSmall"
	30001 = "Splot_MapFireMedium"
	30003 = "Splot_MapFireLarge"
	30004 = "Splot_MapFireExtraSmall"
	
	30501 = "Splot_Car"
	30502 = "Splot_DrivingCarSpawner"
	
	30801 = "Splot_DogLimbo_Statue"
	
	// Titlemap stuff
	31001 = "Splot_TitleSlot_Spawner"
	31002 = "Splot_TitleSlot_Spawner_Distant"
	31003 = "Splot_TitleSlot_Spawner_VeryDistant"
	31004 = "Splot_TitleMap_PlayerAttack"
	31005 = "Splot_TitleMap_Tyrante"
	31006 = "Splot_TitleMap_Metamind"
	31007 = "Splot_TitleMap_DogPope"
	31008 = "Splot_TitleMap_Maulotaur"
	31009 = "Splot_TitleMap_WMBG"
	31010 = "Splot_TitleMap_TheJerk"
	31011 = "Splot_TitleMap_ExplosionStatue"
	31012 = "Splot_TitleMap_DialupG"
	31013 = "Splot_TitleMap_DialupR"
	31014 = "Splot_TitleMap_DialupY"
	31015 = "Splot_TitleMap_MegaImp"
	31016 = "Splot_TitleMap_MacGuffin"
	31017 = "Splot_TitleMap_ApeLincoln"
	31050 = "Splot_TitleMap_FF6Text"
	31051 = "Splot_TitleMap_FF6Bar"
	31052 = "Splot_TitleMap_FF6Logo"
	31053 = "Splot_TitleMap_Wiztruck"
	31054 = "Splot_TitleMap_Player"
	31055 = "Splot_TitleMap_GoodBoy"
	31056 = "Splot_TitleMap_VictoryCamera"
	
	// Temple Statues
	31501 = "Splot_Temple_ElTyrante"
	31502 = "Splot_Temple_SpiderMastermind"
	31503 = "Splot_Temple_WMBG"
	31504 = "Splot_Temple_Dialup"
	31505 = "Splot_Temple_DogPope"
	31506 = "Splot_Temple_Maulotaur"
	31507 = "Splot_Temple_MegaImp"
	31508 = "Splot_Temple_MacGuffin"
	31509 = "Splot_Temple_ApeLincoln"
	31510 = "Splot_Temple_MFWizard"
	
	// Town NPCs
	32001 = "Splot_TownPeasant"
	32002 = "Splot_TownImp"
	32003 = "Splot_TownGloomCultist"
	32004 = "Splot_TownWizard"
	32005 = "Splot_TownWizard_Purple"
	32006 = "Splot_TownArchville"
	32007 = "Splot_TownDoorman"
	32009 = "Splot_TownSlim"
	32010 = "Splot_TownConstructionWorker"
	32011 = "Splot_Bystander_Woman"
	32012 = "Splot_SinisterBenignRep"
	32013 = "Splot_SinisterBenignLawyer"
	32014 = "Splot_TownStranger"
	32015 = "Splot_TownEurocorp"
	32016 = "Splot_TownTubs"
	32017 = "Splot_TownMFWizard"
	32019 = "Splot_TownFreedoom"
	32020 = "Splot_TownScientist"
	32021 = "Splot_TownGreyAlien"
	32022 = "Splot_TownBeggar"
	32023 = "Splot_TownRockMan"
	32024 = "Splot_TownHammerite"
	32025 = "Splot_TownWizardLady"
	32026 = "Splot_TownBlackKnight"
	32027 = "Splot_TownBaron"
	32028 = "Splot_TownCop"
	32029 = "Splot_TownDog"
	32030 = "Splot_TownPuppet"
	32031 = "Splot_TownCacodemonStride"
	32032 = "Splot_TownActualWizard"
}

// Damage Types with Custom Obits
DamageType BirthdayExplosive
{
    Obituary = "$OB_BIRTHDAYPARTY"
}

DamageType ChaosOrbExplosive
{
    Obituary = "$OB_CHAOSORB"
}

DamageType TooBig
{
    Obituary = "$OB_TOOBIG"
}

DamageType LeftBehind
{
    Obituary = "$OB_LEFTBEHIND"
}

DamageType FootballExit
{
    Obituary = "$OB_FOOTBALLEXIT"
}

DamageType WaterExit
{
    Obituary = "$OB_WATER"
}

DamageType Bees
{
    Obituary = "$OB_BEES"
}

DamageType Annihilation
{
    Obituary = "$OB_ANNIHILATE"
}

DamageType Nuclear
{
	NoArmor
    Obituary = "$OB_NUCLEAR"
}

DamageType NuclearExplosive
{
    Obituary = "$OB_NUCLEARBOMB"
}

DamageType Heresy
{
    Obituary = "$OB_HERESY"
}

DamageType SelfInflictedCalamity
{
	NoArmor
    Obituary = "$OB_DEFAULT"
}

clearskills
skill workaround1 { NoMenu }
skill workaround2 { NoMenu }

skill normal
{
	SpawnFilter = Normal
	Name = "$SKILL1"
	DefaultSkill
	acsreturn = 10
}

skill double
{
	SpawnFilter = Normal
	Name = "$SKILL2"
	acsreturn = 11
}

skill infinite
{
	SpawnFilter = Normal
	Name = "$SKILL3"
	acsreturn = 12
}

skill bosstest
{
	SpawnFilter = Normal
	Name = "$SKILL99"
	acsreturn = 99
}

gamedefaults
{
	AllowRespawn
	NoAutosaveHint
	KeepFullInventory
}

clearepisodes
////////////////////////////////////////////////////////////////////////////////
// GAME MAPS
////////////////////////////////////////////////////////////////////////////////
map TITLEMAP ""
{

}

/*
episode TEST
{
	name = "Test Map"
}
*/

map TEST "Test Map"
{
	next = "TEST"
	secretnext = "TEST"
	sky1 = "SKY1"
	EventHandlers = "Splot_GameType_Normal"
}

episode TRAVEL
{
	name = "Go to Town"
	noskillmenu
}

episode GUTROT
{
	name = "Gutrot Island"
}

map GUTROT "Gutrot Island"
{
	next = "GUTROT"
	secretnext = "GUTROT"
	sky1 = "SKY1"
	EventHandlers = "Splot_GameType_Normal"
}

episode MINIGUT
{
	name = "Petit Gutrot"
}

map MINIGUT "Petit Gutrot"
{
	next = "MINIGUT"
	sky1 = "SKY1"
	EventHandlers = "Splot_GameType_Normal"
}

map PLAZA "Paradise Plaza"
{
	next = "PLAZA"
	secretnext = "PLAZA"
	sky1 = "EASYSKY"
	EventHandlers = "Splot_GameType_Normal"
}

episode PLAZA
{
	name = "Paradise Plaza"
}

episode OILRIG
{
	name = "Big Bad Beach"
}

map OILRIG "Big Bad Beach"
{
	next = "OILRIG"
	sky1 = "OILSKY"
	EventHandlers = "Splot_GameType_Normal"
}

episode ASTROLAB
{
	name = "Astrolab X"
}

map ASTROLAB "Astrolab X"
{
	next = "ASTROLAB"
	sky1 = "ASTROSKY", 0.05
	EventHandlers = "Splot_GameType_Normal"
}

map FLESHY "Super Flesh Palace"
{
	next = "FLESHY"
	secretnext = "FLESHY"
	sky1 = "STSKY7"
	EventHandlers = "Splot_GameType_Normal"
}

episode FLESHY
{
	name = "Super Flesh Palace"
}

map CASTLE "Clockwork Solarium"
{
	next = "CASTLE"
	secretnext = "CASTLE"
	sky1 = "CASTSKY"
	nolightfade
	EventHandlers = "Splot_GameType_Normal"
}

episode CASTLE
{
	name = "Clockwork Solarium"
}

map BRIDGE "A Bridge Too Far"
{
	next = "BRIDGE"
	sky1 = "BRIDSKY"
	EventHandlers = "Splot_GameType_Normal"
	UsePlayerStartZ
}

episode BRIDGE
{
	name = "A Bridge Too Far"
}

map OVERFLOW "Overflow"
{
	next = "OVERFLOW"
	sky1 = "BLACK"
	nolightfade
	EventHandlers = "Splot_GameType_Normal"
}

episode OVERFLOW
{
	name = "Overflow"
}

// Unlockable! Shh!

map TOWNWAR "Town in Trouble"
{
	next = "TOWNWAR"
	sky1 = "DN64SKY4"
	EventHandlers = "Splot_GameType_Normal"
}

episode TOWNWAR
{
	name = "Town in Trouble"
}

////////////////////////////////////////////////////////////////////////////////
// TOWN MAPS
////////////////////////////////////////////////////////////////////////////////

map TRAVEL "Travelling to Town..."
{
	next = "TEST"
	secretnext = "TEST"
	sky1 = "DN64SKY"
	EventHandlers = "Splot_GameType_Null"
}

map TOWNCITY "333rd Street"
{
	music = "M_SPIND"
	sky1 = "DN64SKY"
	EventHandlers = "Splot_GameType_Shop"
}

////////////////////////////////////////////////////////////////////////////////
// MINIGAMES
////////////////////////////////////////////////////////////////////////////////

map DOGHELL "Dog Hell"
{
	next = "DOGHELL"
	EventHandlers = "Splot_GameType_DogHell"
	sky1 = "textures/doghell/dogsky.png"
	UsePlayerStartZ
	SpawnWithWeaponRaised
}

map BOSSRUSH "Boss Rush Arena"
{
	next = "BOSSRUSH"
	sky1 = "BOSSSKY"
	EventHandlers = "Splot_GameType_BossRush"
}

////////////////////////////////////////////////////////////////////////////////
// SECRET MAPS
////////////////////////////////////////////////////////////////////////////////

// These should not be in any of the standard map selects!

Map DURANDAL "Day at the Waterpark"
{
	Next = "DURANDAL"
	Sky1 = "MARA2SKY"
	Sky2 = "MARA2SK2"
	EventHandlers = "Splot_GameType_Normal"
	Gravity = 600
	cluster = 333
}

map STAND "Client Nine's Last Stand"
{
	next = "STAND"
	sky1 = "STSKY10"
	EventHandlers = "Splot_GameType_Normal"
	cluster = 333
}

map PIZZA "Pie in the Sky"
{
	next = "PIZZA"
	sky1 = "DN64SKY"
	EventHandlers = "Splot_GameType_Normal"
	UsePlayerStartZ
	cluster = 333
}

map TRUX "Big. Red. Mess."
{
	next = "TRUX"
	sky1 = "D2S2TALL"
	EventHandlers = "Splot_GameType_Normal"
	cluster = 333
}

map HAUNT "Siege on Ghastly Grove"
{
	next = "HAUNT"
	sky1 = "BLACK"
	EventHandlers = "Splot_GameType_Normal"
	cluster = 333
}

map TRIPPER "Liminal Space II"
{
	next = "TRIPPER"
	Sky1="VDARK"
	EvenLighting
	lightmode = 1
	EventHandlers = "Splot_GameType_Normal"
	UsePlayerStartZ
	cluster = 333
}

////////////////////////////////////////////////////////////////////////////////
// OTHER
////////////////////////////////////////////////////////////////////////////////

map DOGLIMBO "Dog Limbo"
{
	EventHandlers = "Splot_GameType_Null"
}

////////////////////////////////////////////////////////////////////////////////
// FINALE
////////////////////////////////////////////////////////////////////////////////

map FINALE "???"
{
	next = "EndTitle"
	Sky1 = FINSKY2, 0.75
	Sky2 = FINSKY1, -0.4
	DoubleSky
	//SkyStretch 
	NoIntermission
	EventHandlers = "Splot_GameType_Null"
}

map SHITEND "???"
{
	next = "DOGLIMBO"
	NoIntermission
	EventHandlers = "Splot_GameType_Null"
}

////////////////////////////////////////////////////////////////////////////////
// SYSTEM
////////////////////////////////////////////////////////////////////////////////

map MAP01 "Where are you going?"
{
	music = "M_MAP01"
	EventHandlers = "Splot_GameType_Null"
}
