Actor Wendy : PlayerPawn
{
	Health 200
	Mass 1000
	Scale 0.4
	BloodColor "DarkRed"
	Species "Ghoul"
	Player.ForwardMove 1.2
	Player.SideMove 1.0
	Player.MaxHealth 200
	Player.DisplayName "Wendigo"
	Player.StartItem "SpecialAbility", 1
	Player.StartItem "IsGhoul", 1
	Player.StartItem "WendyClaw"
	Player.StartItem "WendigoAltAmmo", 10
	Player.SoundClass "MVWendigo"
	Player.ScoreIcon "WENDST"
	Damagefactor "Divine", 1.1
	Damagefactor "ThrottlePews", 0.8
	Damagefactor "Bluefire", 0.0
	Damagefactor "fire2", 1.1
	Damagefactor "RenegadeFire", 1.1
	Damagefactor "normal", 0.8
	Damagefactor "ChexWarrior", 0.8
	Damagefactor "Plasma", 0.9
	Damagefactor "proton", 0.9
	damagefactor "Ghosttrap", 0.9
	Damagefactor "InariPlasma", 0.9
	Damagefactor "Grenade", 1.1
	DamageFactor "CalebDynamite", 1.1
	Damagefactor "AntiAirBolt", 0.8
	Damagefactor "PistolBullets", 0.7
	Damagefactor "CalebRevolver", 0.7
	Damagefactor "ChexWarriorPistol", 0.7
	Damagefactor "KarStiglitz", 0.8
	Damagefactor "IlluPewpewRifle", 0.7
	Damagefactor "RevyRifleBullet", 0.7
	Damagefactor "ice2", 0.8
	Damagefactor "Altice2", 0.8
	Damagefactor "Ice", 0.8
	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
	+NOSKIN
	+NOICEDEATH
	+QUICKTORETALIATE
	States
	{
	Spawn:
        WNDZ A 0 A_StopSound(CHAN_6)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("WendigoStealthItem",1,"StealthSee")
		WNDA A 0 SetPlayerProperty(0,0,4)
		WNDZ A 3
		Loop
	See:
		WNDA A 0 A_JumpIfInventory("WendigoStealthItem",1,"StealthSee")
		WNDA A 0 A_JumpIfHealthLower(100,"INeedHealingSee")
        WNDA A 0 A_StopSound(CHAN_6)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		WNDA AABBCDDEEFGHHII 1 A_JumpIfInventory("WendigoStealthItem",1,"StealthSee")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		WNDA JKLLMNNOOPQRRS 1 A_JumpIfInventory("WendigoStealthItem",1,"StealthSee")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		Loop
	IneedHealingSee:
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
        WNDA A 0 A_StopSound(CHAN_6)
		WNDA A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		WNDA A 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		WNDA AABBCDDEEFGHHII 1 A_JumpIfInventory("WendigoStealthItem",1,"StealthSee")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		WNDA A 0 A_SpawnItemEx("GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		WNDA A 0 A_SpawnItemEx("64GhoulINeedHealingTrail",random(-20,20),random(-20,20),0,0,0,10)
		WNDA JKLLMNNOOPQRRS 1 A_JumpIfInventory("WendigoStealthItem",1,"StealthSee")
		Loop
	StealthSee:
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
        WNDA A 0 A_PlaySound("wendy/loop",CHAN_6,1,1)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 0 A_SpawnItemEx("WolfenBlut",random(-4,4),random(-4,4),18)
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 0 A_SpawnItemEx("WolfenBlut",random(-4,4),random(-4,4),18)
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 3 Bright
		WNDA A 0 A_JumpIfInventory("WendigoUnstealthItem",1,"See")
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA A 0 A_JumpIfInventory("GhoulDisableTrigger",15,"DisableTheGhoul")
		SEYE A 0 A_SpawnItemEx("WolfenBlut",random(-4,4),random(-4,4),18)
		TNT1 A 0 A_GiveInventory("WendigoStealthDamageItem",1)
		Loop
	Missile:
		WNDB A 0 A_JumpIfInventory("WendigoStealthItem",1,"RevealMissile")
        WNDB A 0 A_StopSound(CHAN_6)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		TNT1 A 0 A_PlaySound("wendy/pre_melee")
		WNDB AABCDDEFFGGHIJJKLLMMNOO 1
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		TNT1 A 0 A_PlaySound("wendy/melee")
		WNDB PQQRR 1 
		Goto See
	RevealMissile:
		WNDA A 0 A_print("Stealth Deactivated")
		WNDA A 0 A_PlaySound("Wendy/Reveal",CHAN_7)
		WNDB A 0 A_StopSound(CHAN_6)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		TNT1 A 0 A_PlaySound("wendy/pre_melee")
		WNDB AABCDDEFFGGHIJJKLLMMNOO 1
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		TNT1 A 0 A_PlaySound("wendy/melee")
		WNDB PQQRR 1 A_TakeInventory("WendigoStealthItem",1)
		WNDA A 0 A_TakeInventory("WendigoStealthDamageItem",1)
		Goto See
	DisableTheGhoul:
		WNDA A 0 A_Changeflag("shootable",false)
		WNDA A 0 A_Changeflag("shootable",false)
		WNDA A 0 Setplayerproperty(0,1,4)
		WNDA A 0 A_TakeInventory("GhoulDisableTrigger",15)
		WNDA A 90 Bright
		WNDA A 0 A_TakeInventory("GhoulDisableTrigger",15)
		WNDA A 0 A_Changeflag("shootable",true)
		WNDA A 0 A_Changeflag("shootable",true)
		WNDA A 0 Setplayerproperty(0,0,4)
		WNDA A 0 Setplayerproperty(0,0,4)
		WNDA A 0 A_TakeInventory("GhoulDisableTrigger",15)
		Goto Spawn
	Pain:
		TNT1 A 0 A_JumpIfInventory("WendigoStealthItem",1,"RevealPain")
		TNT1 A 0 A_GiveInventory("Creeperpainboost",1)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA Q 1 A_SetTranslucent(1.0)
		WNDA R 1 A_TakeInventory("WendigoStealthItem",1)
		WNDA S 1 A_Pain
		Goto See
	RevealPain:
		WNDA A 0 A_PlaySound("Wendy/Reveal",CHAN_7)
		TNT1 A 0 A_JumpIfInventory("GwenGoddessStack",100,"GwenGoddessDeath")
		WNDA Q 1 A_SetTranslucent(1.0)
		WNDA R 1 A_TakeInventory("WendigoStealthItem",1)
		WNDA S 1 a_print("Stealth Deactivated")
		Goto See
	Pain.Vivi:
	WNDA A 0 A_SetPitch(pitch - 3.0)
	WNDA A 0 A_SetAngle(angle + (random(-50,50)/10))
	Goto Pain
	Pain.ViviMine:
	WNDA 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.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")
		WNDA Q 0 Setplayerproperty(0,0,4)
		WNDA Q 0 A_Pain
		WNDA Q 20 Setplayerproperty(0,1,0)
		WNDA Q 2 Setplayerproperty(0,0,0)
		Goto See
	GwenGoddessDeath:
		TNT1 A 0 A_Changeflag("shootable",true)
		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",5,1,0,ATTN_NONE)
		WNDA Q 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")
		WNDA A 0 A_StopSound(Chan_Weapon)
		WNDA A 0 A_NoBlocking
		WNDA A 0 A_ChangeFlag ("TELESTOMP", 0)
		WNDA A 0 A_StopSoundEx("Voice")
		WNDA A 0 A_TakeInventory("KilledCount",999)
		WNDA A 0 A_GiveToTarget("KilledMe",1)
		WNDA A 0 A_GiveToTarget("KilledChoke",1)
		WNDA A 0 A_PlayerScream
        WNDB A 0 A_StopSound(CHAN_6)
		WNDC A 2
		WNDC B 1 A_NoBlocking
		WNDC D 2 
		WNDC EE 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC FF 1
		WNDC GG 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC HI 1
		WNDC JJ 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC KL 1
		WNDC LM 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC NNOPQQRSS 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC T -1 
		Stop
		DeathAnimAlt:
		TNT1 A 0 A_GiveToTarget("KillIndicator",1)
		TNT1 A 0 A_SpawnItemEx("AdditionalGhoulDeathVFX")
		WNDA A 0 A_StopSound(Chan_Weapon)
		WNDA A 0 A_NoBlocking
		WNDA A 0 A_ChangeFlag ("TELESTOMP", 0)
		WNDA A 0 A_StopSoundEx("Voice")
		WNDA A 0 A_TakeInventory("KilledCount",999)
		WNDA A 0 A_GiveToTarget("KilledMe",1)
		WNDA A 0 A_GiveToTarget("KilledChoke",1)
		WNDA A 0 A_PlayerScream
        WNDB A 0 A_StopSound(CHAN_6)
		WNDC A 2
		WNDC B 1 A_NoBlocking
		WNDC D 2 
		WNDC EE 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC FF 1
		WNDC GG 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC HI 1
		WNDC JJ 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC KL 1
		WNDC LM 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC NNOPQQRSS 1 A_CustomMissile("ArchvileFirex3", 0, 0, random(0, 360))
		WNDC T -1 
		Stop
	Death.ChexWarrior:
		WNDZ A 0 A_GiveToTarget("KillIndicator",1)
		WNDZ A 0 A_StopSound(Chan_Weapon)
		WNDZ A 0 A_NoBlocking
		WNDZ A 0 A_ChangeFlag ("TELESTOMP", 0)
		WNDZ A 0 A_StopSoundEx("Voice")
		WNDZ A 0 A_StopSound(CHAN_6)
		WNDZ A 0 A_TakeInventory("KilledCount",999)
		WNDZ A 0 A_GiveToTarget("KilledMe",1)
		WNDZ A 0 A_GiveToTarget("KilledChoke",1)
		WNDZ A 0 A_SpawnItemEx("ChexCereal",0,0,32,random(2,3),momy,random(8,12),random(-180,180))
		WNDZ A 0 A_GiveToTarget("ChexArmorBonus",25)
		WNDZ A 0 A_GiveToTarget("ChexBoop",1)
		WNDZ A 0 A_Stop
		WNDZ A 0 A_NoGravity
		WNDZ A 0 A_ChangeFlag("DONTGIB",1)
		WNDZ A 0 A_PlaySoundEx("Teleport/Chex",7)
		WNDZ A 3 A_SpawnItem("BigZorch")
		WNDZ A 3 A_SetTranslucent(0.9,0)
		WNDZ A 0 A_Scream
		WNDZ A 3 A_SetTranslucent(0.8,0)
		WNDZ A 0 A_NoBlocking
		WNDZ A 3 A_SetTranslucent(0.7,0)
		WNDZ A 3 A_SetTranslucent(0.6,0)
		WNDZ A 3 A_SetTranslucent(0.5,0)
		WNDZ A 3 A_SetTranslucent(0.4,0)
		WNDZ A 3 A_SetTranslucent(0.3,0)
		WNDZ A 3 A_SetTranslucent(0.2,0)
		WNDZ 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:
    WNDB A 0 A_GiveToTarget("KillBeep",1)
    WNDB A 0 A_StopSound(CHAN_6)
	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("KilledChoke",1)
	TNT1 A 1
	TNT1 A 0 A_NoBlocking
	TNT1 A 0 A_Gravity
	TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
	TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
	TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
	TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
	TNT1 A 0 A_CustomMissile("ArchvileFirex3", 0,0,random(0,360), 2,0)
	NULL A 1 A_SpawnItemEx("GIBBER", 0, 0, 0, 0, 0, 0, 0, 160, 0)
	NULL A -1
	Stop
	Death.MarineShotgun:
	WNDA A 0 A_GiveToTarget("grenadeammo",1)
	WNDA A 0 A_GiveToTarget("shell",3)
	WNDA A 0 A_GiveToTarget("clip1",20)
	Goto DeathAnim
	Death.Marinemachinegun:
	WNDA A 0 A_GiveToTarget("grenadeammo",1)
	WNDA A 0 A_GiveToTarget("shell",3)
	WNDA A 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
	Death.Marinepistol:
	WNDA A 0 A_GiveToTarget("grenadeammo",1)
	WNDA A 0 A_GiveToTarget("shell",3)
	WNDA A 0 A_GiveToTarget("clip1",20)
	Goto Deathanim
	Death.Grenade:
		WNDA A 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
	Death.CrapPlasma:
		WNDA A 0 A_GiveToTarget("Unlock9",1)
		Goto DeathAnim
	Death.Ice2:
		WNDA A 0 A_GiveToTarget("KilledIce2",1)
		Goto DeathAnim
	Death.Fire2:
		WNDA A 0 A_GiveToTarget("KilledFire2",1)
		Goto DeathAnim
	Death.Railgun:
		WNDA A 0 A_GiveToTarget("KilledLightning",1)
		Goto DeathAnim
	Death.GhostTrap:
		WNDA A 0 A_GiveToTarget("KilledG",1)
		Goto DeathAnim
	Death.AltFire2:
		WNDA A 0 A_GiveToTarget("KilledAltFire2",1)
		Goto Death.Fire2
	Death.AltIce2:
		WNDA A 0 A_GiveToTarget("KilledAltIce2",1)
		Goto Death.Ice2
	Death.AltGrenade:
		WNDA A 0 A_GiveToTarget("KilledAltG",1)
		Goto Death.Grenade
	Death.Fire3:
		WNDA A 0 A_GiveToTarget("KilledFire3",1)
		Goto DeathAnim
	Death.Ice3:
		WNDA A 0 A_GiveToTarget("KilledIce3",1)
		Goto DeathAnim
	Death.Grenade2:
		WNDA A 0 A_GiveToTarget("KilledG2",1)
		Goto DeathAnim
	Pain.Drainer:
		WNDA 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 WendyClaw : Weapon
{
  Obituary "%o didn't see %k." 
  Weapon.SelectionOrder 10
  Weapon.AmmoUse 0
  Weapon.AmmoUse2 10
  Weapon.AmmoType2 "WendigoAltAmmo"
  Inventory.icon "TNT1A0"
  +WEAPON.AMMO_OPTIONAL
  +WEAPON.ALT_AMMO_OPTIONAL
  //+WEAPON.NOALERT
  +WEAPON.CHEATNOTWEAPON
  States
  {
  Ready:
	CLA1 A 0 A_JumpIfInventory("WendigoStealthItem",1,"ReadyStealth")
	CLA1 A 0 A_JumpIfInventory("CyborgDashCheck",1,"StealthActivate")
    CLA1 A 1 A_WeaponReady
    loop
  ReadyStealth:
	TNT1 A 0 A_JumpIfInventory("CyborgDashCheck",1,"StealthActivate")
	TNT1 A 1 A_WeaponReady
	Loop
  Deselect:
    CLA1 A 1 A_Lower
    loop
  Select: 
    CLA1 A 1 A_Raise
    loop
  Fire:
	CLA1 B 0 A_JumpIfInventory("WendigoStealthDamageItem",1,"Fire2")
    CLA1 B 2
    CLA1 C 1
    CLA1 D 1
    TNT1 A 5
    CLA2 A 1
    CLA2 B 1
    CLA2 C 1 
    CLA2 D 1 A_SpawnItemEx("WendigoAttack", 0, 0 ,28, momx, momy, 0, 0, 40)
    TNT1 A 3
	CLA2 E 2
	CLA2 F 2
	CLA2 G 1
	CLA2 H 1 A_SpawnItemEx("WendigoAttack", 0, 0 ,28, momx, momy, 0, 0, 40)		
	CLA2 I 1
	TNT1 A 3
    CLA1 A 1 Offset (0,76)
    CLA1 A 1 Offset (0,72)
    CLA1 A 0 Offset (0,68)
    CLA1 A 0 Offset (0,64)
    CLA1 A 1 Offset (0,60)
    CLA1 A 0 Offset (0,56)
    CLA1 A 0 Offset (0,52)
    CLA1 A 1 Offset (0,48)
    CLA1 A 0 Offset (0,44)
    CLA1 A 0 Offset (0,40)
    CLA1 A 1 Offset (0,36)
	Goto Ready
	Fire2:
	CLA1 A 0 A_TakeInventory("WendigoStealthDamageItem",1)
    CLA1 B 2
    CLA1 C 1
    CLA1 D 1
    TNT1 A 5
    CLA2 A 1
    CLA2 B 1
    CLA2 C 1 
    CLA2 D 1 A_SpawnItemEx("WendigoStealthAttack", 0, 0 ,28, momx, momy, 0, 0, 40)
    TNT1 A 3
	CLA2 E 2
	CLA2 F 2
	CLA2 G 1
	CLA2 H 1 A_SpawnItemEx("WendigoStealthAttack", 0, 0 ,28, momx, momy, 0, 0, 40)		
	CLA2 I 1
	TNT1 A 3
    CLA1 A 1 Offset (0,76)
    CLA1 A 1 Offset (0,72)
    CLA1 A 0 Offset (0,68)
    CLA1 A 0 Offset (0,64)
    CLA1 A 1 Offset (0,60)
    CLA1 A 0 Offset (0,56)
    CLA1 A 0 Offset (0,52)
    CLA1 A 1 Offset (0,48)
    CLA1 A 0 Offset (0,44)
    CLA1 A 0 Offset (0,40)
    CLA1 A 1 Offset (0,36)
	Goto Ready
	Altfire:
	TNT1 A 0 A_JumpIfInventory("WendigoAltAmmo",10,"Altfire2")
	TNT1 A 0 A_JumpIfNoAmmo("AltfireFail")
	Goto Ready
	Altfire2:
	TNT1 A 0 A_ChangeVelocity(cos(pitch)*30.0,0,-sin(pitch)*30.0,CVF_RELATIVE)
	TNT1 A 0 A_TakeInventory("WendigoAltAmmo",10)
	//TNT1 A 0 A_ChangeVelocity(cos(pitch)*50.0,0,-sin(pitch)*50.0,CVF_RELATIVE)
    CLA1 B 2 ACS_ExecuteAlways(1950,0)
    CLA1 C 1
    CLA1 D 1
    TNT1 A 5
    CLA2 A 1
    CLA2 B 1
    CLA2 C 1 
    CLA2 D 1 A_SpawnItemEx("WendigoStealthAttack", 0, 0 ,28, momx, momy, 0, 0, 40)
    TNT1 A 3
	CLA2 E 2
	CLA2 F 2
	CLA2 G 1
	CLA2 H 1 A_SpawnItemEx("WendigoStealthAttack", 0, 0 ,28, momx, momy, 0, 0, 40)		
	CLA2 I 1
	TNT1 A 3
    CLA1 A 1 Offset (0,76)
    CLA1 A 1 Offset (0,72)
    CLA1 A 0 Offset (0,68)
    CLA1 A 0 Offset (0,64)
    CLA1 A 1 Offset (0,60)
    CLA1 A 0 Offset (0,56)
    CLA1 A 0 Offset (0,52)
    CLA1 A 1 Offset (0,48)
    CLA1 A 0 Offset (0,44)
    CLA1 A 0 Offset (0,40)
    CLA1 A 1 Offset (0,36)
	Goto Ready
	AltfireFail:
	CLA1 A 28 A_Print("On cooldown")
	Goto Ready
	StealthActivate:
	TNT1 A 0 A_TakeInventory("CyborgDashCheck",999)
	TNT1 A 0 A_JumpIfInventory("WendigoStealthItem",1,"ClearStealth")
	TNT1 A 0 A_GiveInventory("WendigoStealthItem",1)
	TNT1 A 0 A_TakeInventory("WendigoUnstealthItem",1)
	CLA1 A 1 A_PlaySound("wendy/melee")
	CLA1 A 1 A_Print("Stealth Activated")
	CLA1 A 0 A_JumpIfInventory("WendigoStealthItem",1,"ReadyStealth")
	Goto Ready
	ClearStealth:
	CLA1 A 0 A_TakeInventory("WendigoStealthItem",1)
	CLA1 A 0 A_TakeInventory("WendigoStealthDamageItem",1)
	CLA1 A 0 A_GiveInventory("WendigoUnstealthItem",1)
	CLA1 A 10 a_print("Stealth Deactivated")
	Goto Ready
  }
}

Actor WendigoAttack : Loreshot
{
//PROJECTILE
+NOGRAVITY
+THRUGHOST
+FORCERADIUSDMG
+NOTELEPORT
+SEEKERMISSILE
Speed 25
Radius 2
Height 2
Obituary "%o didn't see %k." 
damagetype "Wendigo"
damage 0
States
{
Spawn:
TNT1 A 0
TNT1 A 1
Goto Death
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,85)
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:
TNT1 A 1 A_Explode(50, 60, 0)//65//52 range
Stop
}
}

Actor WendigoStealthItem : Inventory
{
	inventory.amount 0
	inventory.maxamount 1
}

Actor WendigoUnstealthItem : Inventory
{
	inventory.amount 0
	inventory.maxamount 1
}

Actor WendigoStealthDamageItem : Inventory
{
	inventory.amount 0
	inventory.maxamount 1
}

Actor WendigoAltAmmo : Ammo
{
  Inventory.PickupMessage ""
  Inventory.Amount 10
  Inventory.MaxAmount 20
  Ammo.BackpackAmount 1
  Ammo.BackpackMaxAmount 1
  States
  {
  Spawn:
    TNT1 A 3 Bright
    Loop
  }
}

Actor WendigoStealthAttack : WendigoAttack
{
States
{
Spawn:
TNT1 A 0
TNT1 A 1
Goto Death
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,92)
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:
TNT1 A 1 A_Explode(60, 65, 0)//65//52 range
Stop
}
}