Actor IsSwatClass : ClassToken {}

ACTOR SwatClass : PlayerPawn
{
  Speed 0.75
  Radius 16
  Height 56
  Mass 100
  PainChance 255
  Health 100
  Player.MaxHealth 100
  Player.DisplayName "SWAT Enforcer"
  Player.WeaponSlot 1, SwatFlashbangs, SwatFists
  Player.WeaponSlot 2, SwatGlock, UpgradedSwatGlock
  Player.WeaponSlot 3, SwatShotgun, SwatAA12
  Player.WeaponSlot 4, SwatRifle, UpgradedSwatRifle
  Player.WeaponSlot 5, SwatRPG7
  Player.WeaponSlot 6, SwatSniperRifle
  Player.WeaponSlot 7, SwatMinigun
  Player.SoundClass "SwatClass"
  Player.StartItem "IsSwatClass"
  Player.StartItem "IsPlayer", 1
  Player.StartItem "DefaultHud", 1
  Player.StartItem "DefaultMisc", 1
  Player.StartItem "hatCharacterOffset", 93
  Species "Player"
  Player.ColorRange 112, 127
  Player.StartItem "SwatGlock"
  Player.StartItem "PistolAmmoClip", 18
  Player.StartItem "SwatRifle"
  Player.StartItem "SwatFists"
  Player.StartItem "RifleMagazineMag", 30
  Player.StartItem "SWATAssaultRifleRounds", 150
  Player.ScoreIcon "SwatIcon"
  DamageFactor "Normal", 0.75
  States
  {
  Spawn:
    SWTP E -1
    Loop
  See:
    SWTP ABCD 4
    Loop
  Missile:
    SWTP G 9
    Goto Spawn
  Melee:
    SWTP H 5 Bright
    Goto Missile
  Pain:
    SWTP F 6 A_Pain
    Goto Spawn
Death:
	TNT1 A 0 A_Jump(128,"Death1","Death2")
Death1:
	TNT1 A 0 A_StopSound(CHAN_WEAPON)
	SWTP O 5 A_PlayerScream
	SWTP P 5 
	SWTP Q 5 A_NoBlocking
	SWTP R -1
	Stop
Death2:
	TNT1 A 0 A_StopSound(CHAN_WEAPON)
	SWTP I 5 A_PlayerScream
	SWTP J 5 
	SWTP K 5 
	SWTP LM 5 A_NoBlocking
	SWTP N -1
	Stop
XDeath:
	TNT1 A 0 A_Jump(128,"XDeath1","XDeath2")
	XDeath1:
	BXDT A 5 A_XScream
	BXDT B 5 A_NoBlocking
	BXDT C 5 
	BXDT D 5
	BXDT EFGH 5
	BXDT I -1
XDeath2:
	BXD2 A 5 A_XScream
	BXD2 B 5 A_NoBlocking
	BXD2 C 5 
	BXD2 DEFG 5
	BXD2 H -1
	Stop
  }
}

