/// IDM.pk3 Decorate by Kaapeli47

#include "decorate/world.txt"
#include "decorate/weapons.txt"

/// Player and playerclasses ///

ACTOR IDMPlayer : DoomPlayer replaces DoomPlayer
{
  Speed 1
  Health 100
  GibHealth 75
  Radius 16
  Height 56
  Mass 75
  PainChance 255
  Player.MaxHealth 200
  Player.MugshotMaxHealth 100
  Player.FallingScreamSpeed 20.0,35.0
  Player.ForwardMove 2,1
  Player.SideMove 2,1
  Player.GruntSpeed 19.99999
  Player.CrouchSprite "PLYC"
  Player.DisplayName "Pistol"
  Player.InvulnerabilityMode "Ghost"
  Player.DamageScreenColor "Red", 1.0
  Player.ColorRange 112, 127
  States
  {
  Spawn:
	PLAY A -1
    Loop
  See:
    PLAY ABCD 5
    Loop
  Missile:
    PLAY E 8
    Goto Spawn
  Melee:
    PLAY F 5 BRIGHT
    Goto Missile
  Pain:
    PLAY G 8 BRIGHT A_Pain
    Goto Spawn
  Death.Bullet:
	TNT1 A 0 A_Jump(36,"XDeath")
  Death:
	TNT1 A 0 A_TakeInventory("SoulsphereGiver")
	TNT1 A 0 A_Jump(64,"Death.Fast","Death.Faster","Death.Slow","Death.Slower")
    PLAY H 6 Bright A_PlayerScream
    PLAY I 6 Bright
    PLAY J 6 Bright A_NoBlocking
    PLAY K 6 Bright
	PLAY LM 6 Bright
    PLAY N -1
    Stop
  Death.Fast:
    PLAY H 5 Bright A_PlayerScream
    PLAY I 5 Bright
    PLAY J 5 Bright A_NoBlocking
    PLAY K 5 Bright
	PLAY LM 5 Bright
    PLAY N -1
    Stop
  Death.Faster:
    PLAY H 4 Bright A_PlayerScream
    PLAY I 4 Bright
    PLAY J 4 Bright A_NoBlocking
    PLAY K 4 Bright
	PLAY LM 4
    PLAY N -1
    Stop
  Death.Slow:
    PLAY H 7 Bright A_PlayerScream
    PLAY I 7 Bright
    PLAY J 7 Bright A_NoBlocking
    PLAY K 7 Bright
	PLAY LM 7 Bright
    PLAY N -1
    Stop
  Death.Slower:
    PLAY H 8 Bright A_PlayerScream
    PLAY I 8 Bright
    PLAY J 8 Bright A_NoBlocking
    PLAY K 8 Bright
	PLAY LM 8 Bright
    PLAY N -1
    Stop
  XDeath:
	TNT1 A 0 A_TakeInventory("SoulsphereGiver")
	TNT1 A 0 A_Jump(192,"Xdeath.Fast","XDeath.Slow")
    PLAY O 4 Bright
    PLAY P 5 Bright A_XScream
    PLAY Q 5 Bright A_NoBlocking
    PLAY RSTUV 5 Bright
    PLAY W -1
    Stop
  XDeath.Fast:
    PLAY O 3 Bright
    PLAY P 4 Bright A_XScream
    PLAY Q 4 Bright A_NoBlocking
    PLAY RSTUV 4 Bright
    PLAY W -1
    Stop
  XDeath.Slow:
    PLAY O 5 Bright
    PLAY P 6 Bright A_XScream
    PLAY Q 6 Bright A_NoBlocking
    PLAY RSTUV 6 Bright
    PLAY W -1
    Stop
  }
}

ACTOR TargetDummy : IDMPlayer
{
	+ISMONSTER
}