actor DrWily : CustWepClassBase
{
Player.ScoreIcon "C_02I0X"
player.displayname "DrWily"
player.soundclass "wilyc"

player.maxhealth 850
health 850
player.jumpz 10
player.forwardmove 0.8, 0.8
player.sidemove 0.78, 0.78

player.startitem "CBM_BaseFlagPack"

player.startitem "DrWily_W"
player.startitem "WahweeAmmo", 24
player.startitem "WiltCapuleAmmo", 21
player.startitem "WilySkullSuitItem"

player.weaponslot 1, "DrWily_W4"
player.weaponslot 2, "DrWily_W3"


player.startitem "ThunderBeamWeakness"
player.startitem "CrashBomberWeakness"//AtomicFire
player.startitem "TopSpinWeakness"
player.startitem "PharaohShotWeakness"
//StarCrash/Beat
player.startitem "SilverTomahawkWeakness"
player.startitem "WildCoilWeakness"
player.startitem "FlashBombWeakness"
player.startitem "MagicCardWeakness"
player.startitem "PlugBallWeakness"
player.startitem "ChillSpikeWeakness"
player.startitem "SaltWaterWeakness"//SparkChaser
+NOSKIN

States
{
Spawn:
W2CP A 0
W2CP B 1
W2CP A 1
W2CP A 210
W2CP XA 4
Goto Spawn+4
See:
W2CP BCDE 5
Goto Spawn
Missile:
W2CP F 5
W2CP G 4
goto Spawn
ClassPain:
W2CP H 0
goto MegamanPain
ClassDeath:
W2CP H 0 //A_GiveInventory("",1)
goto MegamanDeath
}
}

actor DrWilyGrovelCorpse
{
-SOLID
scale 2.5
States
{
Spawn:
W2CP R 0
W2CP R 0 A_JumpIfInventory("CriticalDeath",1,"SpawnCheckGib",2)
goto SpawnL
SpawnCheckGib:
W2CP R 0 A_GiveInventory("CriticalDeath",1)
goto SpawnL
SpawnL:
W2CP R 1 A_JumpIf(floorz-z==0,"Beg")
wait
Beg:
W2CP STSTSTSTST 7
W2CP UVUWUVUWU 5
TNT1 A 0 A_SpawnItemEx("FakeDeathFX",0,0,32,0,0,0,random(0,359))
TNT1 A 0 A_JumpIfInventory("CriticalDeath",1,2)
TNT1 A 2 A_PlaySoundEx("misc/devildeath","Weapon")
stop
TNT1 A 0 A_PlaySoundEX("misc/gib","SoundSlot6")
TNT1 A 2 A_SpawnItemEX("CriticalDeathSpawner",0,0,0,0,0,0,0,1)
stop
}
}
