ACTOR Stickguyclass : PlayerPawn
{
  Player.ScoreIcon "STCKICON"
  Speed 1
  Health 100
  Radius 16
  Height 56
  Mass 80
  PainChance 255
  Player.MaxHealth 100
  Player.DisplayName "Stickguy"
  player.soundclass "stickguy"
  Player.StartItem "GuyPI"
  Player.StartItem "IsStickguy", 1
  Player.StartItem "IsPlayer", 1
  Player.StartItem "DefaultMisc", 1
  Player.StartItem "DefaultAmmo", 1
  Player.StartITem "Clip", 50
  Player.StartItem "hatCharacterOffset",101
    Player.StartItem "CoinItem", 5000
  //loadout
  //Berserk makes Stickguy buff
  Player.WeaponSlot 2, GuyPI //Chainsaw gives stickguy a Stick that upgrades melee
  Player.WeaponSlot 3, GuySG, GuySSG 
  Player.WeaponSlot 4, GuyAR //Speedboost uses alternative firing for the pistol
  Player.WeaponSlot 5, GuyGL //SSG Gives it poison granades altfire
  Player.WeaponSlot 6, GuyPP //BFG Gives it the BFG2407 effect altfire 
  Player.WeaponSlot 7, Stickguyragefists 
  //End of loadout
  Player.ColorRange 112, 127
  scale 1
  Player.Face "SGF"
  player.soundclass "stickguy"
  Species "Player"
  
  
  States
  {
   Spawn:
            SGPS A -1
        Loop
        See:
            SGPS ABCD 4
        Loop
        Missile:
            SGPS E 12
        Goto Spawn
        Melee:
            SGPS F 6 BRIGHT
        Goto Missile
        Pain:
            SGPS G 4
            SGPS G 4 A_Pain
        Goto Spawn
        Death:

            SGPD A 10
            SGPD B 10 A_Playsound("Stickguy/DEAD",2)
            SGPD C 10 A_NoBlocking
            TNT1 A 0 A_stopsound
            SGPD DEFG 10
            SGPD H -1
        Stop
        XDeath:

            SGPX A 77 A_Playsound("Stickguy/XDEAD",2,2.0)
            SGPX B 2 A_NoBlocking
            SGPX C 2
            SGPX DEFG 5
			SGPX H 5 A_SpawnitemEX("StickguyLostgun",0,9,36,1,0,12)
            SGPX I 5 A_stopsound
            SGPX J 5
			TNT1 A -1
        Stop
	}
}

Actor IsStickguy  : ClassToken
{ 
}

Actor GuyStick: Token {}//Chainsaw Token

actor StickguyLostgun
{
	Projectile
	-NOGRAVITY
	-NOBLOCKMAP
	+BOUNCEONACTORS
	BounceType "Doom"
	BounceSound "Stickguy/PISTOLBounce"
	Deathsound "Stickguy/DIEPISTOL"
	BounceFactor 0.5
	WallBounceFactor 0.2
	Mass 5
	Radius 3
	Height 3
	
	States
	{
	Spawn:
		SGFG ABCDEFGH 2
		Loop
	Death:
		SGFG I -1
		Stop
	}
}