Actor Jugulum : PlayerPawn
{
	Health 100
	mass 700
	PainChance 255
	BloodColor "DarkRed"
	Species "Ghoul"
	Scale 0.14
	Player.ForwardMove 1.0
	Player.SideMove 1.0
	Player.MaxHealth 100
	Player.DisplayName "Jugulum"
	Player.ScoreIcon "JUGULUST"
	Player.SoundClass "Jugulum"
	Player.StartItem "IsGhoul", 1
	Player.StartItem "JugulumTeeth"
	Player.StartItem "JugulumTrapAmmo", 50
	Player.StartItem "JugulumLavaAmmo", 30
	Player.ColorRange 112, 127
	Damagefactor "Bluefire", 0.0
	Damagefactor "AntiAirBolt", 1.1
    Damagefactor "IlluPewpewRifle", 1.1
    Damagefactor "RevyRifleBullet", 1.2
	DamageFactor "Ice", 1.1
	Damagefactor "AltIce2", 1.1
	Damagefactor "Ice2", 1.1
	DamageFactor "Fire", 0.5
	Damagefactor "fire2", 0.5
	Damagefactor "RenegadeFire", 0.5
	Damagefactor "AltFire2", 0.5
	Damagefactor "normal", 0.7
	Damagefactor "ChexWarrior", 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
	LimitedToTeam 1
	+DONTBLAST
	+SHADOW
	+NOICEDEATH
	//+FORCEXYBILLBOARD
	+NOSKIN
	+QUICKTORETALIATE
	States
	{
	Spawn:
		JUGY A 0 A_Changeflag("shootable",true)
		JUGY A 0 Setplayerproperty(0,0,4)
		JUGY A 0 A_PlaySoundEx("JugulumActive","Body",1,0)
		JUGY A 0 SetPlayerProperty(0,1,3)
		JUGY A 0 A_GiveInventory("JugulumLavaAmmo",1)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY AAA 4 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		Loop
	See:
		JUGY A 0 A_JumpIfHealthLower(50,"INeedHealingSee")
		JUGY B 1 A_PlaySoundEx("JugulumActive","Body",1,0)
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		loop
	INeedHealingSee:
		JUGY B 1 A_PlaySoundEx("JugulumActive","Body",1,0)
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		JUGY B 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		JUGY BBBBB 2
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY B 0 A_SpawnItemEx("BloodDrip",random(-2,2),random(-2,2),random(12,15),0,0,-8,0,160)
		Goto Spawn
	Dancing:
		JUGY B 0 A_Changeflag("shootable",true)
		JUGY B 0 A_TakeInventory("AriaInfluence",10)
		JUGY B 0 Setplayerproperty(0,1,4)
		JUGY B 0 A_TakeInventory("AriaInfluence",10)
		JUGY BBBBBBBBBBBBBBBB 1
		JUGY B 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		JUGY B 0 A_TakeInventory("AriaInfluence",10)
		JUGY BBBBBBBBBBBBBBBB 1
		JUGY B 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		JUGY B 0 A_TakeInventory("AriaInfluence",10)
		JUGY BBBBBBBBBBBBBBBB 1
		JUGY B 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		JUGY B 0 A_TakeInventory("AriaInfluence",10)
		JUGY BBBBBBBBBBBBBBBB 1
		JUGY B 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		JUGY B 0 A_TakeInventory("AriaInfluence",10)
		JUGY BBBBBBBBBBBBBBBB 1
		JUGY B 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		JUGY B 0 A_TakeInventory("AriaInfluence",10)
		JUGY BBBBBBBBBBBBBBBB 1
		JUGY B 0 ThrustThing(angle*random(0,224), 10, 0, 0)
		JUGY B 1 Setplayerproperty(0,0,4)
		JUGY B 0 A_TakeInventory("AriaInfluence",10)
		Goto Spawn
	Missile:
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY BBB 2 bright A_JumpIfInventory("JugLav",1,"Lava")
		Goto See
	Lava:
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY B 0 A_JumpIfInventory("AriaInfluence",10,"Dancing")	
		JUGY CDE 4 bright
		goto See
	Pain:
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY A 0 Setplayerproperty(0,0,4)
		JUGY A 0 A_PlaySound("JugulumPain")
		JUGY AA 3 A_CustomMissile("ArchvileFirexJugulum",2,0,random(0,360),2,0)
		JUGY A 0 Setplayerproperty(0,0,4)
		Goto See
	Pain.Vivi:
	JUGY A 0 A_SetPitch(pitch - 3.0)
	JUGY A 0 A_SetAngle(angle + (random(-50,50)/10))
	Goto Pain
	Pain.ViviMine:
	JUGY A 0 ThrustThingZ(0,70,0,0)
	Goto Pain
	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
	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
	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
	Pain.GwenPlasma2:
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		JUGY A 0 Setplayerproperty(0,0,4)
		JUGY A 0 A_Pain
		JUGY A 20 Setplayerproperty(0,1,0)
		JUGY A 2 Setplayerproperty(0,0,0)
		Goto See
	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)
		JUGY 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")
		JUGY A 0 A_TakeInventory("KilledCount",999)
		JUGY A 0 A_GiveToTarget("KilledMe",1)
		JUGY A 0 A_GiveToTarget("KilledJugulum",1)
		JUGY A 0 A_PlaySoundEx("JugulumDie","Body")
		JUGY A 1 A_NoBlocking
		JUGY AAAAAAAAAAAAAAAAAAAA 1 A_CustomMissile("ArchvileFirex2",2,0,random(0,360),2,0)
		JUGY AAAAAAAAAA 1 A_CustomMissile("ArchvileFirex2",0,0,random(0,360), 2,0)
		JUGY A 1
		TNT1 A -1
		Stop
	DeathAnimAlt:
		TNT1 A 0 A_GiveToTarget("KillIndicator",1)
		TNT1 A 0 A_SpawnItemEx("AdditionalGhoulDeathVFX")
		JUGY A 0 A_TakeInventory("KilledCount",999)
		JUGY A 0 A_GiveToTarget("KilledMe",1)
		JUGY A 0 A_GiveToTarget("KilledJugulum",1)
		JUGY A 0 A_PlaySoundEx("JugulumDie","Body")
		JUGY A 1 A_NoBlocking
		JUGY AAAAAAAAAAAAAAAAAAAA 1 A_CustomMissile("ArchvileFirex2",2,0,random(0,360),2,0)
		JUGY AAAAAAAAAA 1 A_CustomMissile("ArchvileFirex2",0,0,random(0,360), 2,0)
		JUGY A 1
		TNT1 A -1
		Stop
	Death.ChexWarrior:
		JUGY A 0 A_GiveToTarget("KillIndicator",1)
		JUGY A 0 A_TakeInventory("KilledCount",999)
		JUGY A 0 A_GiveToTarget("KilledMe",1)
		JUGY A 0 A_GiveToTarget("KilledJugulum",1)
		JUGY A 0 A_SpawnItemEx("ChexCereal",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		JUGY A 0 A_GiveToTarget("ChexArmorBonus",25)
		JUGY A 0 A_GiveToTarget("ChexBoop",1)
		JUGY A 0 A_Stop
		JUGY A 0 A_NoGravity
		JUGY A 0 A_ChangeFlag("DONTGIB",1)
		JUGY A 0 A_PlaySoundEx("Teleport/Chex",7)
		JUGY A 0 A_PlaySoundEx("JugulumPain", "Body")
		JUGY A 3 A_SpawnItem("SmallZorch")
		JUGY A 3 A_SetTranslucent(0.9,0)
		JUGY A 0 A_Scream
		JUGY A 3 A_SetTranslucent(0.8,0)
		JUGY A 0 A_NoBlocking
		JUGY A 3 A_SetTranslucent(0.7,0)
		JUGY A 3 A_SetTranslucent(0.6,0)
		JUGY A 3 A_SetTranslucent(0.5,0)
		JUGY A 3 A_SetTranslucent(0.4,0)
		JUGY A 3 A_SetTranslucent(0.3,0)
		JUGY A 3 A_SetTranslucent(0.2,0)
		JUGY A 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("KilledJugulum",1)
		TNT1 A 1
		TNT1 A 0 A_NoBlocking
		TNT1 A 0 A_Gravity
		TNT1 A 0 A_CustomMissile("ArchvileFirex2", 0,0,random(0,360), 2,0)
		TNT1 A 0 A_CustomMissile("ArchvileFirex2", 0,0,random(0,360), 2,0)
		TNT1 A 0 A_CustomMissile("ArchvileFirex2", 0,0,random(0,360), 2,0)
		TNT1 A 0 A_CustomMissile("ArchvileFirex2", 0,0,random(0,360), 2,0)
		TNT1 A 0 A_CustomMissile("ArchvileFirex2", 0,0,random(0,360), 2,0)
		NULL A 0 A_PlaySound("Caroline/SoulGibbage")
		NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
		NULL A -1
		Stop
	Death.MarineShotgun:
	JUGY Z 0 A_GiveToTarget("grenadeammo",1)
	JUGY Z 0 A_GiveToTarget("shell",3)
	JUGY Z 0 A_GiveToTarget("clip1",20)
	Goto DeathAnim
	Death.Marinemachinegun:
	JUGY Z 0 A_GiveToTarget("grenadeammo",1)
	JUGY Z 0 A_GiveToTarget("shell",3)
	JUGY Z 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
	Death.Marinepistol:
	JUGY Z 0 A_GiveToTarget("grenadeammo",1)
	JUGY Z 0 A_GiveToTarget("shell",3)
	JUGY Z 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
	Death.CrapPlasma:
		JUGY Z 0 A_GiveToTarget("Unlock9",1)
		Goto DeathAnim
	Death.Grenade:
		JUGY Z 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
	Death.Ice2:
		JUGY Z 0 A_GiveToTarget("KilledIce2",1)
		Goto DeathAnim
	Death.Fire2:
		JUGY Z 0 A_GiveToTarget("KilledFire2",1)
		Goto DeathAnim
	Death.Railgun:
		JUGY Z 0 A_GiveToTarget("KilledLightning",1)
		Goto DeathAnim
	Death.GhostTrap:
		JUGY A 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
	Death.AltFire2:
		JUGY A 0 A_GiveToTarget("KilledAltFire2",1)
		Goto Death.Fire2
	Death.AltIce2:
		JUGY A 0 A_GiveToTarget("KilledAltIce2",1)
		Goto Death.Ice2
	Death.AltGrenade:
		JUGY A 0 A_GiveToTarget("KilledAltG",1)
		Goto Death.Grenade
	Death.Fire3:
		JUGY A 0 A_GiveToTarget("KilledFire3",1)
		Goto DeathAnim
	Death.Ice3:
		JUGY A 0 A_GiveToTarget("KilledIce3",1)
		Goto DeathAnim
	Death.Grenade2:
		JUGY A 0 A_GiveToTarget("KilledG2",1)
		Goto DeathAnim
	Pain.Drainer:
		JUGY A 0 A_GiveToTarget("Health",10)
		Goto Pain
	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 ArchvileFirexJugulum : ArchvileFirex2
{
	-NOGRAVITY
	+CLIENTSIDEONLY
	visibletoteam 0
	Gravity 1.0
	Renderstyle Translucent
	Alpha 0.6
	States
	{
	Spawn:
		FIRE A 1 BRIGHT  A_StartFire
		FIRE BAB 1 BRIGHT  A_Fire
		FIRE C 1 BRIGHT  A_FireCrackle
		FIRE BCBCDCDCDEDED 1 BRIGHT  A_Fire
		FIRE E 1 BRIGHT  A_FireCrackle
		FIRE FEFEFGHGHGH 1 BRIGHT  A_Fire
		Stop
	}
}

Actor JugulumTeeth : Weapon
{
	Weapon.SlotNumber 1
	Weapon.SelectionOrder 350
	Inventory.PickupSound ""
	Inventory.PickupMessage ""
	Inventory.Icon "JUGUATT"
	Weapon.Kickback 0
	Weapon.YAdjust 0
	Weapon.AmmoType "JugulumLavaAmmo"
	Weapon.AmmoUse 0
	+WEAPON.NOALERT
	+INVENTORY.UNDROPPABLE
	+WEAPON.NOAUTOAIM
	+WEAPON.DONTBOB
	+NOAUTOFIRE
	States
	{
	Spawn:
		JGTT A 1
		Stop
	Ready:
		JGTT A 10 A_WeaponReady
		TNT1 A 0 A_JumpIfInventory("CyborgDashCheck",1,"JugulumTrapCheck")
		Loop
	Deselect:
		JGTT A 1 A_Lower
		Loop
	Select:
		JGTT A 1 A_Raise
		Goto Select
	Fire:
		JGTT A 0 A_FireCustomMissile("JugulumBall",0,0,0,-6)
		JGTT A 0 A_GiveInventory("JugulumTrapAmmo",1)
		Goto JuggyFireEnd
		JuggyFireEnd:
		JGTT A 1
		JGTT A 1 offset (-10, 55) 
		JGTT A 0 offset (-20, 75) 
		JGTT A 1 offset (-30, 95) 
		JGTT A 0 offset (-40, 115) 
		JGTT A 1 offset (-50, 135) A_WeaponReady(WRF_NOSWITCH)
		JGTT A 0 offset (-40, 115) A_WeaponReady(WRF_NOSWITCH)
		JGTT A 1 offset (-30, 95) A_WeaponReady(WRF_NOSWITCH)
		JGTT A 0 offset (-20, 75) A_WeaponReady(WRF_NOSWITCH)
		JGTT A 1 offset (-10, 55) A_WeaponReady(WRF_NOSWITCH)
		JGTT A 0 offset (0, 32) A_WeaponReady(WRF_NOSWITCH)
		JGTT A 1 offset (0, 0) A_WeaponReady(WRF_NOSWITCH)
		JGTT A 0 A_ReFire
		Goto Ready
	AltFire:
		JGTT A 1 A_GiveInventory("JugLav",1)
		JGTT A 2 offset (-10, 55) A_PlayWeaponSound("JUGLAVA")
		JGTT A 2 offset (-20, 75)
		JGTT A 2 offset (-30, 95)
		JGTT A 2 offset (-40, 115)
	AltHold:
		JGTT A 0 A_JumpIfInventory("JugulumLavaAmmo",1,1)
		goto Nope
		JGTT A 0 A_TakeInventory("JugulumLavaAmmo",1)
		JGTT A 0 A_PlayWeaponSound("JUGLAVA")
		JGTT AAAAAAAA 2 offset (-50, 135) bright A_FireCustomMissile("JugulumLava",random(-20,20),0,0,-6)
		JGTT A 2 offset (-40, 115) A_Refire
	Nope:
		JGTT A 2 offset (-30, 95)
		JGTT A 2 offset (-20, 75)
		JGTT A 2 offset (-10, 55)
		JGTT A 2 offset (0, 32)
		JGTT A 32 offset (0, 0) A_TakeInventory("JugLav",999)
		Goto Ready
	JugulumTrapCheck:
		JGTT A 0 A_TakeInventory("CyborgDashCheck",999)
		JGTT A 0 A_JumpIfInventory("JugulumTrapAmmo",25,"SpawnJugulumTrap")
		Goto Ready
	SpawnJugulumTrap:
		JGTT A 1
		JGTT A 1 offset (-10, 55) 
		JGTT A 0 offset (-20, 75) 
		JGTT A 1 offset (-30, 95) 
		JGTT A 0 offset (-40, 115) A_PlaySound("Gauna/FireWeapon", CHAN_AUTO)
		JGTT A 1 offset (-50, 135) A_FireCustomMissile("JugulumTrapLaunch",0,0,0)
		JGTT A 0 offset (-40, 115) A_TakeInventory("JugulumTrapAmmo",25)
		JGTT A 1 offset (-30, 95) 
		JGTT A 0 offset (-20, 75) 
		JGTT A 1 offset (-10, 55) 
		JGTT A 0 offset (0, 32) 
		JGTT A 1 offset (0, 0)
		Goto Ready
	}
}

Actor JugulumTrapLaunch
{
	
	Speed 10
	Height 5
	Radius 5
	Scale 0.5
	Damage (0)
	Obituary "%o got their feet burnt by %k."
	Deathsound "JugulumTrapSoundSplosion"
	DamageType "Juglava"
	PROJECTILE
	-NOGRAVITY
	+BLOODLESSIMPACT
	+RIPPER
	+PIERCEARMOR
	States
	{
	Spawn:
		JGCD A 1 A_JumpIf(WaterLevel == 2, "Death2")
		JGCD A 0 A_GiveInventory("Clip",1)
		JGCD A 0 A_JumpIfInventory("Clip", 100, "Death2")
		Loop
	Death:
		JGCD A 0 A_CustomMissile("JugulumTrapThing", 0, 0, 0, 0)
		Stop
	Death2:
		JGCD A 1
		Stop
	}
}

Actor JugulumTrapThing
{	
	Height 5
	Radius 5
	Scale 1.1
	Speed 0
	Damage (0)
	ReactionTime 1050
	Obituary "%o got their feet burnt by %k."
	Deathsound "JugulumTrapSoundSplosion"
	DamageType "Juglava"
	DamageFactor "Jitterskull", 0.0
	DamageFactor "SjasScream", 0.0
	PROJECTILE
	Species "Ghoul"
	+NOCLIP
	-NOGRAVITY
	+PIERCEARMOR
	+FRIENDLY
	+THRUSPECIES
	States
	{
	Spawn:
		JGCD AB 10
		JGCD A 0 A_ChangeFlag("NOCLIP",0)
		JGCD A 1 A_CountDown
		JGCD A 0 A_SpawnItemEx("SawyerTarpTrail",random(-5,5),random(-5,5),0,0,0,5)
		Goto Spawn+3
	XDeath:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		Goto Death
	Death:
		JGCD BBBBBBBBBBBBBB 1 A_CustomMissile("JugulumLavaStay",0,0,random(0,360),CMF_TRACKOWNER|CMF_AIMDIRECTION,random(20,65))
		Stop
	FadeOut:
		JGCD A 10 A_FadeOut(0.1)
		Loop
	}
}

actor JugulumTrapAmmo : CustomInventory
{
  inventory.amount 100
  inventory.maxamount 100
  inventory.icon "GHOULAMM"
  +INVENTORY.IGNORESKILL
  +INVBAR
  states
  {
  Spawn:
    TNT1 A -1
    stop
  Use:
	TNT1 A 0 A_GiveInventory("CyborgDashcheck",1)
	Fail
  }
}



Actor JugulumLavaAmmo : Ammo
{
	Inventory.PickupMessage ""
	Inventory.Amount 30
	Inventory.MaxAmount 30
	Inventory.Icon "LVASB0"
	Ammo.BackPackAmount 30
	Ammo.BackPackMaxAmount 30
	+INVENTORY.IGNORESKILL
	States
	{
	Spawn:
		TNT1 A -1
		Stop
	}
}

Actor JugLav : Inventory
{
	Inventory.amount 1
	Inventory.maxamount 1
}

Actor JugulumBall
{
	Radius 6
	Height 16
	Speed 44
	Alpha 1
	RenderStyle Add
	Damage (0)
	DamageType "SjasScream"
	SeeSound "JugulumAttack"
	Obituary "%o was roasted alive by %k."
	DeathSound "Imp/ShotX"
	Decal "Scorch"
	PROJECTILE
	+RANDOMIZE
	+STRIFEDAMAGE
	+SEEKERMISSILE
	States
	{
	Spawn:
		MANF AAA 1 bright A_SpawnItemEx("JuggPuff", -8, 0, 0, random(0 ,1), random(0 ,1), random (-1, 1), 0, 176)
		MANF BBB 1 bright A_SpawnItemEx("JuggPuff", -8, 0, 0, random(0 ,1), random(0 ,1), random (-1, 1), 0, 176)	
		Loop
	XDeath:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		TNT1 A 0 A_Jump(256,"DeathCont")
		Goto DeathCont
	Death:
		TNT1 A 0 A_ChangeFlag("NOINTERACTION",1)
		TNT1 A 0 A_Stop
		TNT1 A 0 A_SeekerMissile(0,0,SMF_LOOK|SMF_CURSPEED,256)
		TNT1 A 0 A_JumpIfTargetInLOS("SplashBeep",360,JLOSF_PROJECTILE,113)
		TNT1 A 0 A_Jump(256,"DeathCont")
		Goto DeathCont
	SplashBeep:
		TNT1 A 0 A_GiveToTarget("HitBeep",1)
		TNT1 A 0 A_Jump(256,"DeathCont")
		Goto DeathCont
	DeathCont:
		MISL B 0 A_PlaySound("Vile/FireCrkl")
        MISL B 0 A_CustomMissile("JugulumLavaStay",0,0,random(0,360),CMF_TRACKOWNER|CMF_AIMDIRECTION,random(20,65))
        MISL B 0 A_CustomMissile("JugulumLavaStay",0,0,random(0,360),CMF_TRACKOWNER|CMF_AIMDIRECTION,random(20,65))
		MISL B 8 bright A_Explode(8,80,0)
		MISL C 6 bright
		MISL D 4 bright
		Stop
	}
}

Actor JuggPuff : BulletPuff
{
  +CLIENTSIDEONLY
  Renderstyle Translucent
  Alpha 0.2
  states
  {
  Spawn:
    LVAS GHI 4 A_Jump(64,"Death")
	stop
  Death:
	LVAS JK 4
	stop
  }
}

Actor JugulumLava
{
	PROJECTILE
	+RIPPER
	+BLOODLESSIMPACT
	-NOGRAVITY
	Damagetype "Juglava"
	Damage (random(3,4))
	Height 8
	Radius 12
	Speed 1
	
	scale 0.4
	DeathSound "JUGLAVA2"
	Obituary "%k gave %o a hot shower."
	renderstyle add
	
	states
	{
	Spawn:
		TNT1 A 0
		TNT1 A 0 A_Recoil(-random(12,16))
		TNT1 A 0 A_Jump(256,"S1","S2","S3","S4","S5")
	S1:
		JLFL ABCD 1 bright
		JLFL A 0 A_SpawnItemEx("JuggPuff", -8, 0, 0, random(0 ,1), random(0 ,1), random (-1, 1), 0, 176)
		loop
	S2:
		JLFL EFGH 1 bright
		JLFL A 0 A_SpawnItemEx("JuggPuff", -8, 0, 0, random(0 ,1), random(0 ,1), random (-1, 1), 0, 176)
		loop
	S3:
		JLFL IJKL 1 bright
		JLFL A 0 A_SpawnItemEx("JuggPuff", -8, 0, 0, random(0 ,1), random(0 ,1), random (-1, 1), 0, 176)
		loop
	S4:
		JLFL MNOP 1 bright
		JLFL A 0 A_SpawnItemEx("JuggPuff", -8, 0, 0, random(0 ,1), random(0 ,1), random (-1, 1), 0, 176)
		loop
	S5:
		JLFL QRST 1 bright
		JLFL A 0 A_SpawnItemEx("JuggPuff", -8, 0, 0, random(0 ,1), random(0 ,1), random (-1, 1), 0, 176)
		loop
	Death:
		LVAS A 0 A_Explode(10,32,0)
		LVAS AA 0 A_SpawnItemEx("JuggPuff", -8, 0, 0, random(0 ,1), random(0 ,1), random (-1, 1), 0, 176)
		LVAS ABC 4 bright A_CustomMissile("JugulumLavaStay",0,0,random(0,360),CMF_TRACKOWNER|CMF_AIMDIRECTION,random(20,65))
		LVAS DEF 4 bright
		stop
	}
}

Actor JugulumLavaStay
{
	PROJECTILE
	-NOGRAVITY
	+FORCERADIUSDMG
	Speed 8
	Damage 1
	radius 6
	height 7
	Damagetype "Juglava"
	Obituary "%o burnt his feet on %k's lava."
	
	states
	{
	Spawn:
		VTFB AB 4 bright
		loop
	Death:
		TNT1 A 0 A_Explode(2,20,0)
		SFFI ABABAB 2 bright
		TNT1 A 0 A_Explode(2,20,0)
		SFFI CBCDCD 2 bright
		TNT1 A 0 A_Explode(2,20,0)
		SFFI CDEDED 2 bright
		TNT1 A 0 A_Explode(2,20,0)
		SFFI EDEFEF 2 bright
		stop
	}
}

Actor JugulumBite
{
	Speed 10
	Radius 2
	Height 2
	Obituary "%o was swallowed whole by %k."
	Damagetype "Jitter"
	Damage 0
	+NOGRAVITY
	+THRUGHOST
	+FORCERADIUSDMG
	+RIPPER
	States
	{
	Spawn:
		TNT1 A 0
		TNT1 A 1
		Goto Death
	Death:
		TNT1 A 1 A_Explode(20, 95, 0)
		Stop
	}
}		