//oda flags by not me, just adding 4 way support
//all credit goes to Xuta, because Decay doesn't know how to logically copy pasta

//=================================================================================================
//
// Blue Flag
//
//=================================================================================================

ACTOR OdaBlueFlag : BlueFlag replaces BlueFlag
{
	States
	{
	Spawn:
		BFLA F 0
		BFLA F 3 BRIGHT
		BFLA F 0 A_JumpIf (ACS_ExecuteWithResult(841, 0, 0, 0) == TRUE, "SpawnLoop")
		BFLA F 0 A_SpawnItemEx ("OdaBlueStand", 0, 0, 0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
	SpawnLoop:
		BFLA ABC 3
		BFLA DEF 3 BRIGHT
		Loop
	}
}

//=================================================================================================
//
// Red Flag
//
//=================================================================================================

ACTOR OdaRedFlag : RedFlag replaces RedFlag
{
	States
	{
	Spawn:
		RFLA F 0
		RFLA F 3 BRIGHT
		RFLA F 0 A_JumpIf (ACS_ExecuteWithResult(841, 0, 0, 0) == TRUE, "SpawnLoop")
		RFLA F 0 A_SpawnItemEx ("OdaRedStand", 0, 0, 0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
	SpawnLoop:
		RFLA ABC 3
		RFLA DEF 3 BRIGHT
		Loop
	}
}

//=================================================================================================
//
// Green Flag
//
//=================================================================================================

ACTOR OdaGreenFlag : GreenFlag replaces GreenFlag
{
	States
	{
	Spawn:
		GFLA F 0
		GFLA F 3 BRIGHT
		GFLA F 0 A_JumpIf (ACS_ExecuteWithResult(841, 0, 0, 0) == TRUE, "SpawnLoop")
		GFLA F 0 A_SpawnItemEx ("OdaGreenStand", 0, 0, 0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
	SpawnLoop:
		GFLA ABC 3
		GFLA DEF 3 BRIGHT
		Loop
	}
}

//=================================================================================================
//
// Gold Flag
//
//=================================================================================================

ACTOR OdaGoldFlag : GoldFlag replaces GoldFlag
{
	States
	{
	Spawn:
		YFLA F 0
		YFLA F 3 BRIGHT
		YFLA F 0 A_JumpIf (ACS_ExecuteWithResult(841, 0, 0, 0) == TRUE, "SpawnLoop")
		YFLA F 0 A_SpawnItemEx ("OdaGoldStand", 0, 0, 0, 0, 0, 0, 0, SXF_NOCHECKPOSITION)
	SpawnLoop:
		YFLA ABC 3
		YFLA DEF 3 BRIGHT
		Loop
	}
}

//=================================================================================================
//
// Blue Flag Stand
//
//=================================================================================================

ACTOR OdaBlueStand
{
	Radius 16
	Height 16
	States
	{
	Spawn:
		BFLS Z -1
		stop
	}
}

//=================================================================================================
//
// Red Flag Stand
//
//=================================================================================================

ACTOR OdaRedStand
{
	Radius 16
	Height 16
	States
	{
	Spawn:
		RFLS Z -1
		stop
	}
}

//=================================================================================================
//
// Green Flag Stand
//
//=================================================================================================

ACTOR OdaGreenStand
{
	Radius 16
	Height 16
	States
	{
	Spawn:
		GFLS Z -1
		stop
	}
}

//=================================================================================================
//
// Gold Flag Stand
//
//=================================================================================================

ACTOR OdaGoldStand
{
	Radius 16
	Height 16
	States
	{
	Spawn:
		YFLS Z -1
		stop
	}
}