//Sprites modified from original Doom sources by Obake.

ACTOR MiniShell : Shell 
{
  Scale 0.8
  Inventory.PickupMessage "Picked up a mini-shell" 
  Inventory.Amount 3
  Inventory.MaxAmount 50
  Ammo.DropAmount 3
  Ammo.BackpackAmount 2
  Ammo.BackpackMaxAmount 100
  Inventory.Icon "SHELA0"
  States
  {
  Spawn:
    MSWS A -1
    Stop
  }
}

ACTOR ToySpider : SpiderMastermind 15000
{
  //$Category Toys
  Tag "Mini Mastermind"
  Game Doom
  Health 50
  Radius 20
  Height 20
  Scale 0.2
  Mass 400
  Speed 18
  PainChance 270
  Translation "0:175=%[0,0,0]:[1,1,1]"
  Monster
  MinMissileChance 110
  DropItem "MiniShell"
  +MISSILEMORE
  -NORADIUSDMG
  +FLOORCLIP
  +NOBLOOD
  +DONTMORPH
  +BOSSDEATH
  +MOVEWITHSECTOR 
  -BOSS
  SeeSound "GROWL"
  PainSound "SNARL"
  DeathSound "DYINGRO"
  ActiveSound "GROWL2"
  AttackSound "BARRETA_"
  Obituary "Toy was too cuddly for %o to stand."   
 States
  {
  Spawn:
    SPID A 1 A_Look
    Loop
  See:
    SPID A 3 
    SPID ABB 3 A_Chase
    SPID C 3 A_PlaySound("SMALLEL")
    SPID CDD 3 A_Chase
    SPID E 3 
    SPID EFF 3 A_Chase
    Loop
  Missile:
  SPID E 10 A_FaceTarget
    SPID F 10 
    SPID E 10 Bright A_CustomBulletAttack((random(15,25)), 3, 4,(random(1,5)), "BulletPuff")
    SPID F 1 Bright A_SpidRefire 
    Goto See
    Goto Missile+1
	Melee:
	  SPID H 1 Bright A_CustomMeleeAttack(random(3,4)*2,"skeleton/melee","world/spark3")
  Pain:
    SPID I 3
    SPID I 3 A_Pain
    Goto See
  Death:
    SPID J 20 A_Scream
    SPID K 10 A_NoBlocking
    SPID LMNOPQR 10
    SPID S 30
    SPID S -1 A_BossDeath
    Stop
	Raise:
	SPID SRQPONMLKJ 3
	SPID S 1 A_PlaySound("SNARL")
	Goto See
  }
}

Actor CyberChum : CyberDemon 17093
{
  //$Category Toys
  Health 60
  Radius 20
  Height 32
  Scale 0.3
  YScale 0.3
  Mass 500
  Speed 16
  PainChance 20
  Monster
  DropItem "RocketAmmo"
  MinMissileChance 160
  Translation "0:25=%[0,0,0]:[0,0,1]"
  -BOSS
  +NOBLOOD
  +MISSILEMORE
  +FLOORCLIP
  +DONTHARMCLASS
  +DONTMORPH
  -BOSSDEATH
  SeeSound "PLAYBAL"
  PainSound "M1GARAN"
  AttackSound "UMPIRES"
  DeathSound "STRIKES"
  ActiveSound "PLAYBA2"
  Obituary "%o obliterated by worlds coolest action figure"
  States
  {
  Spawn:
    CYBR A 1 A_Look
    Loop
  See:
    CYBR A 3 A_PlaySound("M1GARAN")
    CYBR ABBCC 3 A_Chase
    CYBR D 3 
    CYBR D 3 A_Chase
    Loop
  Missile:
    CYBR E 6 A_FaceTarget
    CYBR F 12 A_CustomMissile("ToyMissile", 20, 0, 0, 0, 0)
    CYBR E 12 A_FaceTarget
    CYBR F 12 A_CustomMissile("ToyMissile", 20, 0, 0, 0, 0)
    Goto See
  Pain:
    CYBR G 10 A_Pain
    Goto See
  Death:
    CHUM A 4 
	CHUM B 4 A_PlaySound("CHUMD")
	CHUM C 4 
	CHUM DEFEDED 4
	CHUM G 2 
	CHUM H 2
	CHUM G 2
	CHUM H 2 A_Noblocking
	CHUM I 5  
	CHUM I -5 A_Scream
    Stop
  }
}

Actor ToyMissile : Rocket 
{
  Radius 11
  Height 8
  Scale 0.5
  Speed 18
  Damage 5
  Projectile
  +RANDOMIZE
  +DEHEXPLOSION
  +ROCKETTRAIL
  SeeSound "PITCHBA"
  DeathSound "CAREXPL"
  Obituary "$OB_MPROCKET" // "%o rode %k's rocket."
  Translation "105:255=%[0,0,0]:[0,1,1]"
  States
  {
  Spawn:
    MISL A 1 Bright
    Loop
  Death:
    MISL B 8 Bright A_Explode(6, 72, 0, 0, 0, 0, 0)
    MISL C 6 Bright 
    MISL D 4 Bright
    Stop
  }
}

Actor PinkyPal : Demon 15066
{
   //$Category Toys
  Tag "PinkyPal"
  Game Doom
  Health 57
  PainChance 180
  Speed 16
  FastSpeed 18
  Yscale 0.6
  Xscale 0.6
  Radius 15
  Height 30
  Mass 100
  Gravity 0.3
  Translation "35:45=%[0,0,0]:[1,1,1]"
  MaxStepHeight 32
  MaxDropOffHeight 32
  MeleeThreshold 96
  MaxTargetRange 256
  +NOBLOOD
  SeeSound "MUSICBO"
  AttackSound "PIGSNOR"
  PainSound "DSKEENPN"
  DeathSound "PALD"
  ActiveSound "SNORTING"
  Obituary "%o was nibbled by a stuffed animal."
  States
  {
  Spawn:
    SARG A 1 A_Look
    Loop
  See:
    SARG AABBCCDD 2 A_Chase
    Loop
  Melee:
    SARG E 8 A_FaceTarget
	SARG F 8 ThrustThingZ(0, 10, 0, 1) 
    SARG G 7 A_CustomMeleeAttack(random(4,7)*3,"PIGSNOR","none")
    Goto See
  Pain:
    SARG H 2
    SARG H 2 A_Pain 
    Goto See
  Death:
    DENN A 8 A_NoBlocking
    DENN B 8 A_Scream
    DENN C 8 
	DENN D 8 A_Scream
    DENN C 4 
    DENN D -1
    Stop
  Raise:
    DENN D 1
    DENN EDCDBA 8
    Goto See
  }
}

Actor Mabel 16668
{
   //$Category Toys
  Tag "Mabel Macabre"
  Game Doom
  Health 175
  Speed 13
  PainChance 40
  Radius 15
  Height 40
  Mass 100
  MeleeThreshold 128
  MeleeRange 86
  Monster
  +BRIGHT 
  +BOSS 
  +NOBLOOD
  +FLOAT
  +NOGRAVITY
  +COUNTKILL
  +NOTARGET
  +NOINFIGHTING
  +MISSILEEVENMORE
  SeeSound "MEAN_DOL"
  AttackSound ""
  PainSound "DSKEENPN"
  DeathSound "PALD"
  ActiveSound "BEAR"
  Obituary "%o was overtaken by a possessed doll."
  States
  {
  Spawn:
    DLLM A 1 A_Look
    Loop
  See:
    DLLM BCD 4 A_Chase
    Loop
  Melee:
    DLLE FGHI 4 A_FaceTarget
	DLLE HI 0 A_CustomMeleeAttack(0,"BURP","BURP") 
    DLLE JK 2 A_CustomMissile("BarfBreath", 10, 0, 0, 0, 0)
	DLLE JK 2 A_CustomMissile("BarfBreath2", 10, 0, 0, 0, 0)
	DLLE JK 2 A_CustomMissile("BarfBreath", 10, 0, 0, 0, 0)
	DLLM BCD 3
    Goto See
  Missile:
    DLLE I 6 A_FaceTarget
	DLLE I 0 A_PlaySound("Swoosh", 6, 10.0, false, ATTN_NORM, false)
	DLLE I 0 A_RadiusGive("health", 240, RGF_MONSTERS|RGF_EXFILTER, 40, "Mauley")
	DLLE I 0 A_RadiusGive("health", 90, RGF_GIVESELF, 5, "Mauley")
	DLLE I 0 A_SpawnItem("TwentyFiveHeal", 25, 45)
	DLLE I 0 A_StartSound("Swoosh", CHAN_AUTO, CHANF_DEFAULT, 1.0, ATTN_NORM, 1.0, 0)
    DLLE H 4 A_SkullAttack(25)
	Goto See
  Pain:
    DLLE BDE 1 
	Goto See
  Death:
    DLLE L 4 A_NoBlocking
    DLLE MNO 4 
    DLLE P 4 A_Scream
    DLLE Q 4
	DLLE R -1
    Stop
  }
}

Actor SkullBreath
{
  Radius 7
  Height 14
  Speed 20
  FastSpeed 20
  Damage 0
  Projectile
  RenderStyle None   
  Alpha 1
  +RIPPER 
  +MISSILE
  SeeSound ""
  DeathSound ""
  Obituary "%o was overtaken by a possessed doll."
  ReactionTime 80
  States
  {
  Spawn:
    CDL1 A 1 Bright A_Countdown
    Loop
  Death:
    CDL1 B 8 Bright 
    Stop
  }
}

Actor BarfBreath
{
  Radius 7
  Height 14
  Speed 12
  FastSpeed 12
  Damage (random(5, 6))
  Projectile
  +RANDOMIZE
  -NOGRAVITY
  +MISSILE 
  +BLOODLESSIMPACT
  +SPAWNSOUNDSOURCE
  Reactiontime 80
  SeeSound ""
  DeathSound "SLIME"
  Obituary "%o was overtaken by a possessed doll."
  States
  {
  Spawn:
    BFFL AB 1 Bright
    Loop
  Death:
    VMMT AB 8 Bright A_CustomMissile("BarfBreathFloor", 20, 0, 0, 0, 0)
    Stop
  }
}

Actor BarfBreath2
{
  Radius 7
  Height 14
  Speed 17
  FastSpeed 17
  Damage (random(5, 6))
  Projectile
  +RANDOMIZE
  -NOGRAVITY
  +MISSILE 
  +BLOODLESSIMPACT
  +SPAWNSOUNDSOURCE
  SeeSound ""
  DeathSound "SLIME"
  Obituary "%o was overtaken by a possessed doll."
  States
  {
  Spawn:
    BFFL AB 1 Bright
    Loop
  Death:
    VMMT AB 8 Bright A_CustomMissile("BarfBreathFloor", 20, 0, 0, 0, 0)
    Stop
  }
}

Actor BarfBreathFloor
{
  Radius 7
  Height 14
  Speed 0
  FastSpeed 0
  Damage (random(3, 4))
  Projectile
  YScale 0.4
  +RANDOMIZE
  -NOGRAVITY
  +MISSILE 
  +SPAWNSOUNDSOURCE
  +NOEXPLODEFLOOR
  PoisonDamage 2
  Reactiontime 100
  SeeSound ""
  DeathSound "SLIME"
  Obituary "%o was overtaken by a possessed doll."
  States
  {
  Spawn:
    VMML A 1 Bright A_Countdown
    Loop
  Death:
    VMML B 8 Bright 
    Stop
  }
}

ACTOR TwentyFiveHeal  
{
	+NOBLOCKMAP 
	+NOGRAVITY
	RenderStyle Add
	Alpha 1
	States
	{
	Spawn:
		HEAT ABABAB 3 Bright 
		Stop
	}
}