actor Topman : CustWepClassBase
{
Player.ScoreIcon "C_03E0X"
player.displayname "Topman"
player.soundclass "topmanc"

player.maxhealth 850
health 850
player.jumpz 10
player.forwardmove 1.1, 1.1
player.sidemove 1.08, 1.08

player.startitem "CBM_BaseFlagPack"

player.startitem "Topman_W"


player.startitem "SuperArmWeakness"
player.startitem "HardKnuckleWeakness"//
player.startitem "PowerStoneWeakness"
player.startitem "AstroCrushWeakness"
player.startitem "DeepDiggerWeakness"

States
{
Spawn:
TOPM A 0
TOPM B 1
TOPM A 1
Goto Spawn+2
See:
TOPM BCDE 5
Goto Spawn
Missile:
TOPM F 5
TOPM G 4
goto Spawn

Missile:
TOPM F 0 A_JumpIfInventory("VivifyCycle1",9,"ARunT2")
TOPM F 0 A_JumpIfInventory("VivifyCycle1",8,"ARunT")
TOPM F 0 A_JumpIfInventory("VivifyCycle1",7,"ARunS")
TOPM F 0 A_JumpIfInventory("VivifyCycle1",6,"ARunR")
TOPM F 0 A_JumpIfInventory("VivifyCycle1",5,"ARunQ")
TOPM F 0 A_JumpIfInventory("VivifyCycle1",4,"ARunP")
TOPM F 0 A_JumpIfInventory("VivifyCycle1",3,"ARunO")
TOPM F 0 A_JumpIfInventory("VivifyCycle1",2,"ARunN")
TOPM F 0 A_JumpIfInventory("VivifyCycle1",1,"ARunM")
TOPM FF 1 A_JumpIfInventory("VivifyCycle1",1,"ARunM")
TOPM FFF 1
TOPM G 4
goto Spawn

ARunM:
TOPM M 2
Goto ARunX+1
ARunN:
TOPM N 2
Goto ARunX+2
ARunO:
TOPM O 2
Goto ARunX+3
ARunP:
TOPM P 2
Goto ARunX+4
ARunQ:
TOPM Q 2
Goto ARunX+5
ARunR:
TOPM R 2
Goto ARunX+6
ARunS:
TOPM S 2
Goto ARunX+7
ARunT:
TOPM T 2
Goto ARunX
ARunT2:
TOPM M 2 A_TakeInventory("VivifyCycle1",8)
Goto ARunX
ARunX:
TOPM MNOPQRST 1 A_JumpIfInventory("VivifyDelay10",1,"Missile")
loop

ClassPain:
TOPM H 0
goto MegamanPain
ClassDeath:
TOPM H 0
goto MegamanDeath
}
}