Actor FrostBite : PlayerPawn
{
    Health 200
    Mass 1000
    limitedtoteam 1
    player.forwardmove 0.8
    player.sidemove 0.8
    Player.Maxhealth 200
    Player.DisplayName "FrostBite"
	bloodcolor "Blue"
	Species "Ghoul"
	Player.StartItem "IsGhoul", 1
    player.startitem "FrostTeeth"
	player.startitem "FrostAmmo", 50
	player.startitem "BlueArmor2", 1
    player.crouchsprite "FROB"
    player.soundclass "frost"
	Damagefactor "Divine", 1.3
	Damagefactor "IlluNukeKABUUM", 0.6
	Damagefactor "ThrottlePews", 0.7
	Damagefactor "AntiAirBolt", 0.8
	Damagefactor "Bluefire", 0.0
	Damagefactor "ice2", 0.1
	Damagefactor "plasma", 1.2
	Damagefactor "AltIce2", 0.5
	Damagefactor "fire2", 1.4
	Damagefactor "RenegadeFire", 1.4
	Damagefactor "AltFire2", 1.4
	Damagefactor "SamDeagle", 1.3
	Damagefactor "normal", 0.7
	Damagefactor "ChexWarrior", 0.7
	Damagefactor "Termissiles", 0.8
	Damagefactor "railgun", 0.7
	Damagefactor "CodenameBeam", 0.7
	Damagefactor "minion", 0.0
	Damagefactor "ZombieIce", 0.0
    Damagefactor "ZombiePoison", 0.0
	Damagefactor "ZombieSlaps", 0.0
	Damagefactor "Tenebra", 0.0
	Damagefactor "Judgement", 0.0
	//player.jumpz 7
	bloodtype "IceChunkFB3"
    Player.ColorRange 112, 127
    +NOSKIN
	//+BRIGHT
	gravity 0.9
	renderstyle translucent
	player.scoreicon "FROSTST"
    scale 0.20
    +NOICEDEATH
	+QUICKTORETALIATE
    States
    {
    Spawn:
		FROB A 0 Setplayerproperty(0,0,4)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 1 A_Changeflag("shootable",true)
		Goto Spawn+1
    See:
		FROB A 0 A_JumpIfHealthLower(100,"INeedHealingSee")
		FROB A 0 A_Changeflag("shootable",true)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.50, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.55, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.60, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.65, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.70, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.75, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.80, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.85, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.90, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.95, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(1.0, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.95, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.90, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.85, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.80, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.75, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.70, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.65, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.60, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.55, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.50, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		Goto Spawn+1
	INeedHealingSee:
		FROB A 0 A_Changeflag("shootable",true)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.50, 0)
		FROB A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.55, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.60, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.65, 0)
		FROB A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.70, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.75, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.80, 0)
		FROB A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.85, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.90, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.95, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(1.0, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.95, 0)
		FROB A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.90, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.85, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.80, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.75, 0)
		FROB A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.70, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.65, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		FROB A 2 A_SetTranslucent(0.60, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.55, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 2 A_SetTranslucent(0.50, 0)
		FROB A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB A 0 A_SpawnItemEx("FrostTwinkle", 0, random(-40,40), random(-40,90),0,0,0,0,32)
		Goto Spawn+1
	Dancing:
		FROB A 0 A_Changeflag("shootable",true)
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_TakeInventory("AriaInfluence",10)
		FROB A 0 Setplayerproperty(0,1,4)
		FROB AAAAAAAAAAAAAAAAA 1
		FROB A 0 ThrustThingZ(0,20,0,0)
		FROB A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_TakeInventory("AriaInfluence",10)
		FROB AAAAAAAAAAAAAAAAA 1
		FROB A 0 ThrustThingZ(0,20,0,0)
		FROB A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_TakeInventory("AriaInfluence",10)
		FROB AAAAAAAAAAAAAAAAA 1
		FROB A 0 ThrustThingZ(0,20,0,0)
		FROB A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_TakeInventory("AriaInfluence",10)
		FROB AAAAAAAAAAAAAAAAA 1
		FROB A 0 ThrustThingZ(0,20,0,0)
		FROB A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_TakeInventory("AriaInfluence",10)
		FROB AAAAAAAAAAAAAAAAA 1
		FROB A 0 ThrustThingZ(0,20,0,0)
		FROB A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_TakeInventory("AriaInfluence",10)
		FROB AAAAAAAAAAAAAAAAA 1
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 ThrustThingZ(0,20,0,0)
		FROB A 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		FROB A 1 Setplayerproperty(0,0,4)
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		FROB A 0 A_TakeInventory("AriaInfluence",10)
		Goto Spawn+1
	DisableTheGhoul:
		FROB A 0 A_Changeflag("shootable",false)
		FROB A 0 A_Changeflag("shootable",false)
		FROB A 0 Setplayerproperty(0,1,4)
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		FROB A 90 Bright
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		FROB A 0 A_Changeflag("shootable",true)
		FROB A 0 A_Changeflag("shootable",true)
		FROB A 0 Setplayerproperty(0,0,4)
		FROB A 0 Setplayerproperty(0,0,4)
		FROB A 0 A_TakeInventory("GhoulDisableTrigger",15)
		Goto Spawn
	Pain:	
		FROB A 0 Setplayerproperty(0,0,4)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 1 A_Pain
		FROB A 0 Setplayerproperty(0,0,4)
		Goto Spawn
    Missile:
		FROB A 0 A_Changeflag("shootable",true)
		FROB A 0 A_JumpIfInventory("Clip",1,"Breath")
		FROB A 0 A_SetTranslucent(1.0, 0)
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB BBBB 1 A_JumpIfInventory("Clip",1,"Breath")
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB CD 4
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB EFEA 3
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		Goto Spawn+1
	Breath:
		FROB A 0 A_Changeflag("shootable",true)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB D 18 bright
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		FROB CB 4 bright
		FROB A 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		Goto Spawn
	Pain.Vivi:
	FROB A 0 A_SetPitch(pitch - 3.0)
	FROB A 0 A_SetAngle(angle + (random(-50,50)/10))
	Goto Spawn
	Death.LoWangVampiric:
	TNT1 A 0 A_GiveToTarget("SWLoWangBloody",1)
	TNT1 A 0 A_JumpIfInventory("BloodCurseItem",1,"Death",AAPTR_TARGET)
	TNT1 A 0 A_GiveToTarget("Health",20)
	Goto Death
	Pain.ViviMine:
	FROB A 0 ThrustThingZ(0,70,0,0)
	Goto Spawn
	Death.SkarletPistolDrain:
	TNT1 A 0 A_JumpIfInventory("BloodCurseItem",1,"Death",AAPTR_TARGET)
	TNT1 A 0 A_GiveToTarget("Health",50)
	Goto Death
	Death.SkarletVampiric:
	TNT1 A 0 A_JumpIfInventory("BloodCurseItem",1,"Death",AAPTR_TARGET)
	TNT1 A 0 A_GiveToTarget("Health",60)
	Goto Death
	Death.DoomChainSaw:
	TNT1 A 0 A_GiveToTarget("cell",50)
	TNT1 A 0 A_GiveToTarget("RocketAmmo",5)
	TNT1 A 0 A_GiveToTarget("clip1",50)
	TNT1 A 0 A_GiveToTarget("Shell",10)
	Goto Death
	Death.D64Pistol:
	TNT1 A 0 A_GiveToTarget("D64UnmakerUpgrades",1)
	TNT1 A 0 A_GiveToTarget("Cell",75)
	TNT1 A 0 A_GiveToTarget("D64KilledCount",1)
	Goto DeathAnimAlt
	Death.Plasma:
	TNT1 A 0 A_GiveToTarget("CyborgFuel",25)
	Goto DeathAnim
	Death.Telefrag:
	Goto Death.UnmakerLaser
	Pain.GwenPlasma2:
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		FROB A 0 Setplayerproperty(0,0,4)
		FROB A 0 A_Pain
		FROB A 20 Setplayerproperty(0,1,0)
		FROB A 2 Setplayerproperty(0,0,0)
		Goto Spawn
	GwenGoddessDeath:
		TNT1 A 0 SetPlayerProperty(0,1,4)
		TNT1 A 0 A_SetTranslucent (1.0, 0)
		TNT1 A 0 A_SpawnItemEx("GwenTimeImplosionRing")
		TNT1 A 0 A_Playsound("Gwen/DivineExplosionSound",6,1,0,ATTN_NONE)
		FROB A 24 SetPlayerProperty(0,1,4)
		TNT1 A 0 A_SpawnItemEx("GwenTimeExplosionRingDamageFX")
		TNT1 A 0 A_SpawnItemEx("GwenTimeExplosionRingDamage")
		TNT1 A 0 A_SpawnItemEx("GwenTimeExplosionRing")
		TNT1 A 0 A_SpawnItemEx("GwenTimeExplosionRingX")
		TNT1 A 0 A_SpawnItemEx("GwenThunderFX")
		TNT1 A 0 A_SpawnItemEx("GwenGoddessStateEXP")
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark2", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAA 0 A_SpawnItemEx("KNThunderFX_Smoke", 0, 0, 0, 0.01 * Random(-125, 125), 0.01 * Random(-125, 125), 0.01 * Random(25, 245), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_SpawnItemEx("GwenThunderFX_Spark", 0, 0, 8, 0.01 * Random(-300, 300), 0.01 * Random(-300, 300), 0.01 * Random(0, 600), 0, 128, 0)
		TNT1 A 0 DamageThing(100000)
		Goto Death
    Death:
    DeathAnim:
		TNT1 A 0 A_GiveToTarget("KillBeep",1)
		TNT1 A 0 A_SpawnItemEx("AdditionalGhoulDeathVFX")
		FROB A 0 A_TakeInventory("KilledCount",999)
		FROB A 0 A_GiveToTarget("KilledMe",1)
		FROB A 0 A_GiveToTarget("KilledFrost",1)
		FROB A 0 A_GiveInventory("GhoulAmmo",1)
		FROB A 0 A_PlaySoundEx("FrostDeath", "Body")
		FROB A 0 A_Fall
		FROB A 0 A_SpawnItemEx("LargeBurst",0,0,0,0,0,0,0,32)
		TNT1 AAAAAA 6 A_SpawnItemEx("FrostDeathFX",0,0,32,1,0,2,random(0,360),32)
		FROB A 0
		TNT1 A -1
		Stop
    DeathAnimAlt:
		TNT1 A 0 A_GiveToTarget("KillIndicator",1)
		TNT1 A 0 A_SpawnItemEx("AdditionalGhoulDeathVFX")
		FROB A 0 A_TakeInventory("KilledCount",999)
		FROB A 0 A_GiveToTarget("KilledMe",1)
		FROB A 0 A_GiveToTarget("KilledFrost",1)
		FROB A 0 A_GiveInventory("GhoulAmmo",1)
		FROB A 0 A_PlaySoundEx("FrostDeath", "Body")
		FROB A 0 A_Fall
		FROB A 0 A_SpawnItemEx("LargeBurst",0,0,0,0,0,0,0,32)
		TNT1 AAAAAA 6 A_SpawnItemEx("FrostDeathFX",0,0,32,1,0,2,random(0,360),32)
		FROB A 0
		TNT1 A -1
		Stop
	Death.ChexWarrior:
		FROB C 0 A_GiveToTarget("KillIndicator",1)
		FROB C 0 A_TakeInventory("KilledCount",999)
		FROB C 0 A_GiveToTarget("KilledMe",1)
		FROB C 0 A_GiveToTarget("KilledFrost",1)
		FROB C 0 A_GiveInventory("GhoulAmmo",1)
		FROB C 0 A_SpawnItemEx("ChexCereal",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		FROB C 0 A_GiveToTarget("ChexArmorBonus",25)
		FROB C 0 A_GiveToTarget("ChexBoop",1)
		FROB C 0 A_Stop
		FROB C 0 A_NoGravity
		FROB C 0 A_ChangeFlag("DONTGIB",1)
		FROB C 0 A_PlaySoundEx("Teleport/Chex",7)
		FROB C 3 A_SpawnItem("BigZorch")
		FROB C 3 A_SetTranslucent(0.9,0)
		FROB C 0 A_Scream
		FROB C 3 A_SetTranslucent(0.8,0)
		FROB C 0 A_NoBlocking
		FROB C 3 A_SetTranslucent(0.7,0)
		FROB C 3 A_SetTranslucent(0.6,0)
		FROB C 3 A_SetTranslucent(0.5,0)
		FROB C 3 A_SetTranslucent(0.4,0)
		FROB C 3 A_SetTranslucent(0.3,0)
		FROB C 3 A_SetTranslucent(0.2,0)
		FROB C 3 A_SetTranslucent(0.1,0) 
		TNT1 A 1 A_SetTranslucent(1,0)
		TNT1 A -1
		Stop
		Death.CarolineDamage:
		NULL A 0 A_SpawnItemEx("CarolineHeart",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		Goto Death.UnmakerLaser
		Death.MapGibber:
		TNT1 A 0 A_PlaySound("car/hit",chan_auto)
		Death.MapGibber2:
		Death.UnmakerLaser:
		TNT1 A 0 A_GiveToTarget("KillBeep",1)
		TNT1 A 0 A_SpawnItemEx("AdditionalGhoulDeathVFX")
		TNT1 A 0 A_TakeInventory("KilledCount",999)
		TNT1 A 0 A_GiveToTarget("KilledMe",1)
		TNT1 A 0 A_GiveToTarget("KilledFrost",1)
		TNT1 A 0 A_SpawnItemEx("SoulGIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
		FROB A 0 A_SpawnItemEx("LargeBurst",0,0,0,0,0,0,0,32)
		TNT1 AAAAAA 6 A_SpawnItemEx("FrostDeathFX",0,0,32,1,0,2,random(0,360),32)
		TNT1 A 0 A_NoBlocking
		TNT1 A 0 A_Gravity
		NULL A 1 
		NULL A -1
		Stop
	Death.MarineShotgun:
	FROB E 0 A_GiveToTarget("grenadeammo",1)
	FROB E 0 A_GiveToTarget("shell",3)
	FROB E 0 A_GiveToTarget("clip1",20)
	Goto DeathAnim
	Death.Marinemachinegun:
	FROB E 0 A_GiveToTarget("grenadeammo",1)
	FROB E 0 A_GiveToTarget("shell",3)
	FROB E 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
	Death.Marinepistol:
	FROB E 0 A_GiveToTarget("grenadeammo",1)
	FROB E 0 A_GiveToTarget("shell",3)
	FROB E 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
    Death.Grenade:
		FROB A 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
    Death.CrapPlasma:
		FROB A 0 A_GiveToTarget("Unlock9",1)
		Goto DeathAnim
    Death.ice2:
		FROB A 0 A_GiveToTarget("Killedice2",1)
		Goto DeathAnim
    Death.fire2:
		FROB A 0 A_GiveToTarget("Killedfire2",1)
		Goto DeathAnim
    Death.Railgun:
		FROB A 0 A_GiveToTarget("Killedlightning",1)
		Goto DeathAnim
	Death.GhostTrap:
		FROB A 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
	Death.AltFire2:
		FROB A 0 A_GiveToTarget("KilledAltFire2",1)
		Goto Death.Fire2
	Death.AltIce2:
		FROB A 0 A_GiveToTarget("KilledAltIce2",1)
		Goto Death.Ice2
	Death.AltGrenade:
		FROB A 0 A_GiveToTarget("KilledAltG",1)
		Goto Death.Grenade
	Death.Fire3:
		FROB A 0 A_GiveToTarget("KilledFire3",1)
		Goto DeathAnim
	Death.Ice3:
		FROB A 0 A_GiveToTarget("KilledIce3",1)
		Goto DeathAnim
	Death.Grenade2:
		FROB A 0 A_GiveToTarget("KilledG2",1)
		Goto DeathAnim
	Pain.Drainer:
		FROB A 0 A_GiveToTarget("Health",10)
		Goto Spawn
	Death.ChexWarriorPistol:
	Death.ChexWarriorChainsaw:
	Goto Death.ChexWarrior
	Death.RenegadeBullets:
	Death.RenegadeFire:
	Death.ArtilleryDamage:
		TNT1 A 0 A_GiveToTarget("RenegadeKillItem",1)
		Goto DeathAnimAlt
	Death.CalebDynamite:
		TNT1 A 0 A_GiveToTarget("KilledG",1)
	Death.CalebShotgun:
	Death.CalebRevolver:
		TNT1 A 0 A_GiveToTarget("Health",20)
		TNT1 A 0 A_SpawnItemEx("CalebHeart",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		TNT1 A 0 A_GiveToTarget("CalebHeartbeat",1)
		Goto DeathAnimAlt
	Pain.EngineerSaw:
	Pain.Ghosttrap:
	Pain.GBFire:
	Pain.Misty:
	Pain.GBSaw:
	Pain.GBString:
	Pain.GBNuke:
	Pain.Ice2:
	Pain.Ice:
	Pain.ElecStorm:
	Pain.AltFire2:
	Pain.AltIce2:
	Pain.Fire2:
	Pain.Doggo:
	Pain.LaraArrow:
	Pain.Wind2:
	Pain.Grenade:
	Pain.Grenade2:
	Pain.TemplarLightningRain:
	Pain.CarolineDamage:
	Pain.ChexWarrior:
	Pain.InariPlasma:
	Pain.Plasma:
	Pain.FlameProtect:
	Pain.DutchShotgun:
	Pain.KarenExplo:
	Pain.Sentinel:
	Pain.Divine:
	Pain.GwenPlasma3:
	Pain.MacheteSlicerino:
	Pain.AntiAirbolt:
	Pain.MechPewPews:
	Pain.RainbowNado:
		TNT1 A 0 ACS_NamedExecuteAlways("ChangeActivator",0)
		Goto Pain
    }
}

Actor FrostTeeth : Weapon
{
   +WEAPON.DONTBOB
   Weapon.SelectionOrder 350
   Inventory.PickupSound ""
   Inventory.PickupMessage ""
   Weapon.SlotNumber 1
   Weapon.AmmoType "FrostAmmo"
   Weapon.AmmoGive 1
   Weapon.AmmoUse 1
   +WEAPON.MELEEWEAPON
   Weapon.Kickback 0
   Weapon.YAdjust 0
   +INVENTORY.UNDROPPABLE
   +WEAPON.ALT_AMMO_OPTIONAL
   inventory.icon "FROSTATT"
   States
   {
   Spawn:
	  BPAK A 400
      Stop
   Ready:
      FROB VVVVVVVVVVVVVVVVVV 1 A_WeaponReady
	  FROB VVVVVVV 1 A_WeaponReady
      FROB V 0 A_GiveInventory("FrostAmmo",1)
      Goto Ready+19
   Deselect:
      FROB V 0 A_StopSoundEx("Weapon")
      FROB V 1 A_Lower
      Loop
   Select:
      FROB V 1 A_Raise
      Goto Select
   Fire:
     FROB V 0 A_Playweaponsound("FrostChomp")
	 FROB V 0 A_Recoil(-25)
     FROB V 2 offset (0, 55)
     FROB V 2 offset (0, 65)
     FROB V 2 offset (0, 75)
     FROB V 2 offset (0, 95)
     FROB V 2 offset (0, 105)
     FROB V 2 offset (0, 135)
	 FROB V 0 A_Stop
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
	 FROB V 0 A_JumpIfInventory("Crunched",1,"Take")
	 FROB V 0 A_Playweaponsound("FrostTeeth")
     FROB V 3 offset (0, 38) A_FireCustomMissile("FrostAttack2", 0, 0 ,0)
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
     FROB V 3 offset (0, 29)
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
     FROB V 3 offset (0, 34)
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
	 FROB V 10 
	 FROB V 4 A_Refire
	 FROB V 0 A_TakeInventory("Crunched",999)
     goto Ready
   Take:
     FROB V 0 A_TakeInventory("Crunched",999)
	 Goto Fire+14
   AltFire:
     FROB V 0 A_GiveInventory("Clip",1)
     FROB V 0 A_PlaySoundEx("FrostBreathStart","Weapon")
     FROB V 3 offset (0, 55) A_TakeInventory("FrostAmmo",1)
     FROB V 3 offset (0, 75)
     FROB V 3 offset (0, 105)
     FROB V 4 offset (0, 135)
     FROB V 0 A_JumpIfInventory("FrostAmmo",1,"Return")
     FROB V 4 offset (0, 135)
     FROB V 0 A_Refire
	 FROB V 0 A_StopSoundEx("Weapon")
	 FROB V 0 A_PlaySoundEx("FrostBreathEnd","Weapon")
     FROB V 1 offset (0, 135)
     FROB V 1 offset (0, 105)
     FROB V 1 offset (0, 75)
     FROB V 1 offset (0, 55)
     FROB V 0 offset (0, 34)
	 FROB V 0 A_TakeInventory("KilledJ",999)
	 FROB V 0 A_TakeInventory("Clip",1)
     Goto Ready
  AltHold:
     FROB V 0 A_GiveInventory("RocketAmmo",1)
	 FROB V 0 A_JumpIfInventory("RocketAmmo",5,"BreathSound")
     FROB V 0 A_JumpIfInventory("FrostAmmo",1,"AltReturn")
	 FROB V 0 A_StopSoundEx("Weapon")
	 FROB V 16 A_PlaySoundEx("FrostBreathFail","Weapon")
     FROB V 4 offset (0, 135) 
     FROB V 0 A_Refire
	 FROB V 0 A_StopSoundEx("Weapon")
	 FROB V 0 A_PlaySoundEx("FrostBreathEnd","Weapon")
     FROB V 1 offset (0, 135)
     FROB V 1 offset (0, 105)
     FROB V 1 offset (0, 75)
     FROB V 1 offset (0, 55)
	 FROB V 0 A_TakeInventory("KilledJ",999)
     FROB V 0 offset (0, 34)
	 FROB V 0 A_TakeInventory("Clip",1)
     Goto Ready
  Return:
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-15,15),1,0)
	 Goto Altfire+7
  BreathSound:
     FROB V 0 A_PlaySoundEx("FrostBreathMid", "Weapon")
	 FROB V 0 A_TakeInventory("RocketAmmo",5)
	 Goto AltHold+2
  AltReturn:
     FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-15,15),0,0)
	 FROB V 0 A_TakeInventory("FrostAmmo",1)
	 Goto AltHold+5
   }
}

Actor FrostAttack2
{
//PROJECTILE
+NOGRAVITY
+THRUGHOST
+FORCERADIUSDMG
Speed 10
Radius 2
Height 2
Obituary "%o got frost bite from %k."
damagetype "Jitter"
damage 0
+RIPPER
States
{
Spawn:
TNT1 A 0
TNT1 A 1
Goto Death
Death:
TNT1 A 1 A_Explode(90, 110, 0)
Stop
}
}

actor BlueArmorImage : BlueArmor
{
Armor.SaveAmount 1//Purely to fix an image issue.
inventory.icon "FROZS"
}

actor BlueArmor2 : BlueArmor
{
Armor.SaveAmount 150
inventory.icon "FROZS"
}
//Improved versions for Desperation.
actor BlueArmor3 : BlueArmor
{
Armor.SaveAmount 220
inventory.icon "FROZS"
}

actor BlueArmor4 : BlueArmor
{
Armor.SaveAmount 240
inventory.icon "FROZS"
}

actor BlueArmor5 : BlueArmor
{
Armor.SaveAmount 260
inventory.icon "FROZS"
}

actor BlueArmor6 : BlueArmor
{
Armor.SaveAmount 280
inventory.icon "FROZS"
}

actor BlueArmor7 : BlueArmor
{
Armor.SaveAmount 300
inventory.icon "FROZS"
}
//Armor Bonus to go along with armor.
ACTOR ArmorBonus2 : ArmorBonus
{
Armor.MaxSaveAmount 220
inventory.icon "FROZS"
}
ACTOR ArmorBonus3 : ArmorBonus
{
Armor.MaxSaveAmount 240
inventory.icon "FROZS"
}
ACTOR ArmorBonus4 : ArmorBonus
{
Armor.MaxSaveAmount 260
inventory.icon "FROZS"
}
ACTOR ArmorBonus5 : ArmorBonus
{
Armor.MaxSaveAmount 280
inventory.icon "FROZS"
}
ACTOR ArmorBonus6 : ArmorBonus
{
Armor.MaxSaveAmount 300
inventory.icon "FROZS"
}

Actor BotFrostTeeth : Weapon
{
+WEAPON.DONTBOB
   Weapon.SelectionOrder 350
   Inventory.PickupSound ""
   Inventory.PickupMessage ""
   Weapon.SlotNumber 1
   Weapon.AmmoType "FrostAmmo"
   Weapon.AmmoGive 1
   Weapon.AmmoUse 0//1
   +WEAPON.MELEEWEAPON
   Weapon.Kickback 0
   Weapon.YAdjust 0
   +INVENTORY.UNDROPPABLE
   +WEAPON.ALT_AMMO_OPTIONAL
   inventory.icon "FROSTATT"
   States
   {
   Spawn:
	  BPAK A 400
      Stop
   Ready:
      FROB VVVVVVVVVVVVVVVVVVV 1 A_WeaponReady
	  FROB VVVVVVV 1 A_WeaponReady
      FROB V 0 A_GiveInventory("FrostAmmo",1)
	  FROB V 0 A_GiveInventory("ArmorBonus",1)
      Goto Ready+19
   Deselect:
      FROB V 0 A_StopSoundEx("Weapon")
      FROB V 1 A_Lower
      Loop
   Select:
      FROB V 1 A_Raise
      Goto Select
   Fire:
     FROB V 0 A_Jump(27, "Altfire")//38, FrostAttack
     FROB V 0 A_Playweaponsound("FrostChomp")
	 FROB V 0 A_Recoil(-20)
     FROB V 2 offset (0, 55)
     FROB V 2 offset (0, 65)
     FROB V 2 offset (0, 75)
     FROB V 2 offset (0, 95)
     FROB V 2 offset (0, 105)
     FROB V 2 offset (0, 135)
	 FROB V 0 A_Stop
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
	 FROB V 0 A_JumpIfInventory("Crunched",1,"Take")
	 FROB V 0 A_Playweaponsound("FrostTeeth")
     FROB V 3 offset (0, 38) A_FireCustomMissile("FrostAttack", 0, 0 ,0)
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
     FROB V 3 offset (0, 29)
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
     FROB V 3 offset (0, 34)
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
	 FROB V 3 
	 FROB V 3 A_Refire
	 FROB V 0 A_TakeInventory("Crunched",999)
     goto Ready
   Take:
     FROB V 0 A_TakeInventory("Crunched",999)
	 Goto Fire+14
   FrostAttack:
     FROB V 0 A_JumpIfInventory("FrostCooldown", 1, "Ready")
     FROB V 0 A_PlaySoundEx("FrostBreathStart","Weapon")
     FROB V 3 offset (0, 55)
     FROB V 3 offset (0, 75)
     FROB V 3 offset (0, 105)
     FROB V 4 offset (0, 135)
     FROB V 4 offset (0, 135)
     FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-9,9),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-10,10),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-11,11),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-12,12),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-13,13),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-14,14),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-15,15),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-16,16),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-17,17),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-18,18),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-19,19),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-20,20),1,0)
	 FROB V 0 A_StopSoundEx("Weapon")
	 FROB V 0 A_PlaySoundEx("FrostBreathEnd","Weapon")
     FROB V 1 offset (0, 135)
     FROB V 1 offset (0, 105)
     FROB V 1 offset (0, 75)
     FROB V 1 offset (0, 55)
     FROB V 0 offset (0, 34)
	 FROB V 0 A_GiveInventory("FrostCooldown",1)
	 FROB V 0 A_TakeInventory("KilledJ2",255)
	 FROB V 0 A_TakeInventory("Clip",1)
     Goto Ready
   Altfire:
     //TNT1 A 0 A_TakeInventory("FrostAmmo",1)
	 FROB V 0 A_JumpIfInventory("FrostCooldown", 1, "Ready")
     FROB V 0 A_GiveInventory("Clip",1)
	 FROB V 0 A_GiveInventory("FrostAnimation",1)
     FROB V 0 A_PlaySoundEx("FrostBreathStart","Weapon")
     FROB V 3 offset (0, 55) A_TakeInventory("FrostAmmo",1)
     FROB V 3 offset (0, 75)
     FROB V 3 offset (0, 105)
     FROB V 4 offset (0, 135)
     FROB V 0 A_Jump(256, "AltReturn")//A_JumpIfInventory("FrostAmmo",1,"Return")
     FROB V 4 offset (0, 135)
     FROB V 0 A_Jump(220, "AltHold")//A_Refire
	 //FROB V 0 A_TakeInventory("KilledJ",999)
	 FROB V 0 A_StopSoundEx("Weapon")
	 FROB V 0 A_PlaySoundEx("FrostBreathEnd","Weapon")
     FROB V 1 offset (0, 135)
     FROB V 1 offset (0, 105)
     FROB V 1 offset (0, 75)
     FROB V 1 offset (0, 55)
     FROB V 0 offset (0, 34)
	 FROB V 0 A_TakeInventory("KilledJ2",255)
	 FROB V 0 A_TakeInventory("Clip",1)
	 FROB V 0 A_TakeInventory("FrostAnimation",255)
     Goto Ready
  AltHold:
     FROB V 0 A_GiveInventory("RocketAmmo",1)
	 FROB V 0 A_JumpIfInventory("RocketAmmo",5,"BreathSound")
     FROB V 0 A_JumpIfInventory("FrostAmmo",1,"AltReturn")
	 FROB V 0 A_StopSoundEx("Weapon")
	 FROB V 16 A_PlaySoundEx("FrostBreathFail","Weapon")
     FROB V 4 offset (0, 135)
	 FROB V 0 A_JumpIfInventory("KilledCount", 1, "StopBreath")
     FROB V 0 A_Jump(218, "AltHold")//A_Refire
	 Goto StopBreath
	 //FROB V 0 A_TakeInventory("KilledJ",999)
	 FROB V 0 //A_StopSoundEx("Weapon")
	 FROB V 0 //A_PlaySoundEx("FrostBreathEnd","Weapon")
     FROB V 1 offset (0, 135)
     FROB V 1 offset (0, 105)
     FROB V 1 offset (0, 75)
     FROB V 1 offset (0, 55)
	 FROB V 0 A_TakeInventory("KilledJ2",255)
     FROB V 0 offset (0, 34) //A_ClearRefire
	 FROB V 0 A_TakeInventory("Clip",1)
	 FROB V 0 A_GiveInventory("FrostCooldown",1)
	 FROB V 0 A_TakeInventory("KilledCount", 255)
	 FROB V 0 A_TakeInventory("FrostAnimation",255)
     Goto Ready
  StopBreath:
	 FROB V 0 //A_StopSoundEx("Weapon")
	 FROB V 16 //A_PlaySoundEx("FrostBreathFail","Weapon")
	 FROB V 0 A_StopSoundEx("Weapon")//Weapon
	 FROB V 0 A_PlaySoundEx("FrostBreathEnd","Weapon")
     FROB V 1 offset (0, 135)
     FROB V 1 offset (0, 105)
     FROB V 1 offset (0, 75)
     FROB V 1 offset (0, 55)
	 FROB V 0 A_TakeInventory("KilledJ2",255)
     FROB V 0 offset (0, 34)
	 FROB V 0 A_TakeInventory("Clip",255)
	 FROB V 0 A_GiveInventory("FrostCooldown",1)
	 FROB V 0 A_TakeInventory("KilledCount", 255)
	 FROB V 0 A_TakeInventory("FrostAnimation",255)
     Goto Ready
  Return:
     FROB V 0 //A_PlaySoundEx("FrostBreathMid", "Weapon")
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-15,15),1,0)
	 Goto Altfire+7
  BreathSound:
     FROB V 0 A_PlaySoundEx("FrostBreathMid", "Weapon")
	 FROB V 0 A_TakeInventory("RocketAmmo",5)
	 Goto AltHold+2
  AltReturn:
     FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-15,15),0,0)
	 //FROB V 0 A_TakeInventory("FrostAmmo",1)
	 Goto AltHold+5
   }
}

Actor BotSuperFrostTeeth : BotFrostTeeth
{
   States
   {
   Fire:
     FROB V 0 A_Jump(32, "FrostAttack")
     FROB V 0 A_Playweaponsound("FrostChomp")
	 FROB V 0 A_Recoil(-20)
     FROB V 2 offset (0, 55)
     FROB V 2 offset (0, 65)
     FROB V 2 offset (0, 75)
     FROB V 2 offset (0, 95)
     FROB V 2 offset (0, 105)
     FROB V 2 offset (0, 135)
	 FROB V 0 A_Stop
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
	 FROB V 0 A_JumpIfInventory("Crunched",1,"Take")
	 FROB V 0 A_Playweaponsound("FrostTeeth")
     FROB V 3 offset (0, 38) A_FireCustomMissile("FrostAttack", 0, 0 ,0)
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
     FROB V 3 offset (0, 29)
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
     FROB V 3 offset (0, 34)
	 FROB V 0 A_SpawnItemEx("IceChunkFB", 0, random(-22,22), random(2,15), momx, momy, random(8,12), random(-8,8),40)
	 FROB V 3 
	 FROB V 3 A_Refire
	 FROB V 0 A_TakeInventory("Crunched",999)
     goto Ready
   FrostAttack:
     FROB V 0 A_JumpIfInventory("FrostCooldown", 1, "Ready")
     FROB V 0 A_PlaySoundEx("FrostBreathStart","Weapon")
     FROB V 3 offset (0, 55)
     FROB V 3 offset (0, 75)
     FROB V 3 offset (0, 105)
     FROB V 4 offset (0, 135)
     FROB V 4 offset (0, 135)
     FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-9,9),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-10,10),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-11,11),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-12,12),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-13,13),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-14,14),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-15,15),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-16,16),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-17,17),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-18,18),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-19,19),1,0)
	 FROB V 0 offset (0, 135) A_FireCustomMissile("FrozenWind",random(-20,20),1,0)
	 FROB V 0 A_StopSoundEx("Weapon")
	 FROB V 0 A_PlaySoundEx("FrostBreathEnd","Weapon")
     FROB V 1 offset (0, 135)
     FROB V 1 offset (0, 105)
     FROB V 1 offset (0, 75)
     FROB V 1 offset (0, 55)
     FROB V 0 offset (0, 34)
	 FROB V 0 A_GiveInventory("FrostCooldown",1)
	 FROB V 0 A_TakeInventory("KilledJ2",255)
	 FROB V 0 A_TakeInventory("Clip",255)
     Goto Ready
   }
}

//XMAS CLASSES

actor KilledFrost : KilledSjas
{
}


Actor FrostDeathFX
{
-SOLID
+CLIENTSIDEONLY
+NOGRAVITY
renderstyle add
alpha 0.9
scale 2.5
States
{
Spawn:
PLSS JKLMNOP 5 A_FadeOut(0.05)
PLSS QRSTUVWX 4 A_FadeOut(0.05)
stop
}
}


Actor LargeBurst
{
Radius 40
Height 80
- SOLID
+NOGRAVITY
States
{
Spawn:
TNT1 A 0
TNT1 A 0 A_PlaySound("FrostBurst")
TNT1 A 1 A_Burst("IceChunkFB2") 
stop
}
}

Actor IceChunkFB
{
Radius 3
Height 4
+CLIENTSIDEONLY
- SOLID
-NOGRAVITY
States
{
Spawn:
ICEC A 0
ICEC A 0 A_Recoil(-5)//ThrustThingZ(0,random(1,15),0,0)
ICEC AAAABCD 3
Stop
}
}

Actor IceChunkFB2
{
Radius 3
Height 4
+CLIENTSIDEONLY
- SOLID
+LOWGRAVITY
-NOGRAVITY
States
{
Spawn:
ICEC A 0
ICEC A 0 ThrustThingZ(0,random(1,15),0,0)
ICEC ABCD 30
Stop
}
}

Actor IceChunkFB3
{
Radius 3
Height 4
+CLIENTSIDEONLY
- SOLID
-NOGRAVITY
States
{
Spawn:
ICEC A 0
ICEC A 0 ThrustThingZ(0,random(1,15),0,0)
ICEC A 0 ThrustThing(random(0,256),random(1,8))
ICEC ABCD 4
Stop
}
}


actor FrostTwinkle
{
+NOINTERACTION
+CLIENTSIDEONLY
Radius 3
Height 3
+NOGRAVITY
renderstyle add
- SOLID
States
{
Spawn:
TGLT F 0 bright
TGLT F 0 bright A_PlaySound("FrostTwinkle")
TGLT FGHIFGHIFGHIFGHI 2 bright A_FadeOut(0.02)
stop
}
}

Actor FrostAmmo : Ammo
{
inventory.amount 50
inventory.maxamount 50
inventory.icon "FROSAM"
}

Actor FrostAttack
{
//PROJECTILE
+NOGRAVITY
+THRUGHOST
+FORCERADIUSDMG
Speed 10
Radius 2
Height 2
Obituary "%o got frost bite from %k."
damagetype "Jitter"
damage 0
+RIPPER
States
{
Spawn:
TNT1 A 0
TNT1 A 1
Goto Death
Death:
TNT1 A 1 A_Explode(90, 110, 0)
Stop
}
}

actor FrozenWind
{
PROJECTILE
+RIPPER
Damage 1
Speed 21
Radius 12
renderstyle add
damagetype "FrostbiteWind"
Obituary "%o got the chills from %k's frozen wind."
alpha 0.8
scale 2.0
Height 20
+DOOMBOUNCE
+BLOODLESSIMPACT
States
{
Spawn:
PLSS J 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS K 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS L 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS M 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS N 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS O 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS P 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS Q 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS R 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS S 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS T 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS U 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS V 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS W 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
PLSS X 5 A_FadeOut(0.05)
PLSS J 0 A_JumpIfInTargetInventory("GhoulAmmo",1,"Death")
stop
Death:
PLSS X 0
stop
}
}


actor FrostCooldown : PowerDamage
{
damagefactor "nothing", 1.0
powerup.duration 45
}

actor FrostAnimation : Inventory
{
inventory.amount 1
inventory.maxamount 1
States
{
Spawn:
TNT1 A 1
loop
}
}