
//Shared Actors

Actor IsPlayer : Inventory //ALWAYS give this inventory to the player to prevent the sentry from seeing it as an enemy.
{
inventory.maxamount 1
}


Actor TargetIsAMarine : Inventory //ALWAYS give this inventory to friendly monsters to prevent infight.
{
inventory.maxamount 1
}


Actor IsHoldingPosition : Inventory //Used to check bot's current order.
{
inventory.maxamount 1
}


//This is an universal actor. Do not copy this when making new monsters based on this one.
ACTOR MarineSpawnChecker
{
MONSTER
-COUNTKILL
+FRIENDLY
Health 1
Radius 24
Height 52
Damagetype "SpawnMarine"
	States
	{
	Spawn:
	    TNT1 A 0
		TNT1 A 0 A_GiveInventory("TargetIsAMarine", 1)
	    TNT1 A 0
		TNT1 A 0 A_Explode(1100, 32)
		Stop
	Death:
	TNT1 A 1
	Stop
}
}







Actor OrderTitle1
{
  Height 1
  Radius 1
  Mass 0
  +Missile
  +NoBlockMap
  +NoGravity
  +DontSplash
  +FORCEXYBILLBOARD
  +CLIENTSIDEONLY
  +THRUACTORS
  +GHOST
  +THRUGHOST
  RenderStyle Add
  Scale 0.2
  Speed 1
  States
  {
  Spawn:
    CMMN A 2 BRIGHT
	CMMN AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 1 Bright A_FadeOut(0.04)
    Stop
  }
}


Actor OrderTitle2: OrderTitle1
{
  States
  {
  Spawn:
    CMMN B 2 BRIGHT
	CMMN BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB 1 Bright A_FadeOut(0.04)
    Stop
  }
}


Actor OrderTitle3: OrderTitle1
{
  States
  {
  Spawn:
    CMMN C 2 BRIGHT
	CMMN CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC 1 Bright A_FadeOut(0.04)
    Stop
  }
}





ACTOR FriendBotMuzzle
{
	PROJECTILE
	Speed 10
	Scale 0.8
	+THRUACTORS
	+NOGRAVITY
	+CLIENTSIDEONLY
	+MISSILE
	States
	{
	Spawn:
		TNT1 A 1
		TNT1 A 0 A_Stop
		MZBT A 4 BRIGHT
		Stop
	}
}


ACTOR FriendBotMuzzleBlue: FriendBotMuzzle
{
	Renderstyle ADd
	States
	{
	Spawn:
		TNT1 A 1
		TNT1 A 0 A_Stop
		MZBB A 4 BRIGHT
		Stop
	}
}

