actor DynamoTendrilWep_NormalBar : NormalBar { args 4, 229 }

actor DynamoTendrilWep : BaseMM8BDMWep
{
Weapon.AmmoUse 2
Weapon.AmmoGive 28
Weapon.SlotNumber 2
Inventory.Pickupmessage "$PU_DYNAMOTENDRIL"
Obituary "$OB_DYNAMOTENDRIL"
Tag "$TAG_DYNAMOTENDRIL"
weapon.ammotype "DynamoTendrilAmmo"
inventory.icon "XTR0WI_P"
States
{
SpawnLoop:
XWI0 P -1
loop

Deselect:
XH0P A 0
goto DeselectSwap
Select:
XH0P A 0
goto SelectSwap

Ready:
XH0P A 0 ACS_NamedExecuteWithResult("core_weaponcolor",DYE_DYNAMOTENDRIL)
XH0P A 1 A_WeaponReady
wait

Fire:
XH0P A 0 A_JumpIfNoAmmo("NoAmmo")
XH0P B 0 A_PlaySoundEx("weapon/magnetmissile","Weapon")
XH0P B 0 A_FireCustomMissile("DynamoTendril",0,1,8,0)
XH0P BC 2
XH0P C 8
XH0P CB 2
XH0P A 2
XH0P A 0 A_Refire
Goto Ready+1
NoAmmo:
XH0P A 1 ACS_NamedExecuteAlways("core_noammo",0)
Goto Ready+1
}
}

actor DynamoTendrilAmmo : Ammo
{
inventory.amount 1
inventory.maxamount 28
+INVENTORY.IGNORESKILL
}

actor DynamoTendril : ProjSpawnFuncActor
{
PROJECTILE
damagetype "DynamoTendril"
Obituary "$OB_DYNAMOTENDRIL"
damage (160)
Radius 12
Height 8
speed 24
scale 2.5
States
{
Spawn:
XH0P OP 6
Flying:
XH0P Q 0 A_SpawnItemEx("DynamoTendrilZap",0,0,0,momx/2+33*-sin(angle)    ,momy/2+33*cos(angle)    ,momz/2,-90,8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX3",0,0,0,momx/2+33*-sin(angle)    ,momy/2+33*cos(angle)    ,momz/2,-90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX2",0,0,0,momx/2+33*-sin(angle)*2/3,momy/2+33*cos(angle)*2/3,momz/2,-90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX1",0,0,0,momx/2+33*-sin(angle)/3  ,momy/2+33*cos(angle)/3  ,momz/2,-90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilZap",0,0,0,momx/2-33*-sin(angle)    ,momy/2-33*cos(angle)    ,momz/2,90,8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX3",0,0,0,momx/2-33*-sin(angle)    ,momy/2-33*cos(angle)    ,momz/2,90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX2",0,0,0,momx/2-33*-sin(angle)*2/3,momy/2-33*cos(angle)*2/3,momz/2,90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX1",0,0,0,momx/2-33*-sin(angle)/3  ,momy/2-33*cos(angle)/3  ,momz/2,90,1+8)
XH0P Q 1
XH0P Q 0 A_SpawnItemEx("DynamoTendrilZap",0,0,0,momx/2+33*-sin(angle)    ,momy/2+33*cos(angle)    ,momz/2,-90,8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX6",0,0,0,momx/2+33*-sin(angle)    ,momy/2+33*cos(angle)    ,momz/2,-90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX5",0,0,0,momx/2+33*-sin(angle)*2/3,momy/2+33*cos(angle)*2/3,momz/2,-90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX4",0,0,0,momx/2+33*-sin(angle)/3  ,momy/2+33*cos(angle)/3  ,momz/2,-90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilZap",0,0,0,momx/2-33*-sin(angle)    ,momy/2-33*cos(angle)    ,momz/2,90,8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX6",0,0,0,momx/2-33*-sin(angle)    ,momy/2-33*cos(angle)    ,momz/2,90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX5",0,0,0,momx/2-33*-sin(angle)*2/3,momy/2-33*cos(angle)*2/3,momz/2,90,1+8)
XH0P Q 0 A_SpawnItemEx("DynamoTendrilFX4",0,0,0,momx/2-33*-sin(angle)/3  ,momy/2-33*cos(angle)/3  ,momz/2,90,1+8)
XH0P Q 1
loop
Crash:
TNT1 A 1 A_SpawnItemEX("ElectrifyEffect")
stop
Death:
MMFX BCDE 3
stop
}
}

actor DynamoTendrilZap
{
PROJECTILE
damagetype "DynamoTendrilZap"
Obituary "$OB_DYNAMOTENDRIL"
+DONTREFLECT
+DONTBLAST
//+RIPPER
+SERVERSIDEONLY
damage (120)
Radius 6
Height 6
speed 24
States
{
Spawn:
TNT1 A 0
TNT1 A 1
stop
}
}

actor DynamoTendrilFX
{
+MISSILE
+NOGRAVITY
+THRUACTORS
+DONTREFLECT
+DONTBLAST
//+NONETID
+CLIENTSIDEONLY
+FORCEXYBILLBOARD
+BRIGHT
damage 0
Radius 6
Height 6
speed 24
scale 1.5
}

actor DynamoTendrilFX1 : DynamoTendrilFX
{
States
{
Spawn:
TNT1 A 0
TNT1 A 1 A_GiveInventory("MM8BDMProjSpawnFuncClient")
TNT1 A 0 A_SpawnItemEx("DynamoTendrilFX11",0,0,0,0,0,0,0,1)
stop
}
}
actor DynamoTendrilFX11 : DynamoTendrilFX
{
States
{
Spawn:
XH0P R 0
XH0P R 1
stop
}
}

actor DynamoTendrilFX2 : DynamoTendrilFX
{
States
{
Spawn:
TNT1 A 0
TNT1 A 1 A_GiveInventory("MM8BDMProjSpawnFuncClient")
TNT1 A 0 A_SpawnItemEx("DynamoTendrilFX22",0,0,0,0,0,0,0,1)
stop
}
}
actor DynamoTendrilFX22 : DynamoTendrilFX
{
States
{
Spawn:
XH0P S 0
XH0P S 1
stop
}
}

actor DynamoTendrilFX3 : DynamoTendrilFX
{
States
{
Spawn:
TNT1 A 0
TNT1 A 1 A_GiveInventory("MM8BDMProjSpawnFuncClient")
TNT1 A 0 A_SpawnItemEx("DynamoTendrilFX33",0,0,0,0,0,0,0,1)
stop
}
}
actor DynamoTendrilFX33 : DynamoTendrilFX
{
States
{
Spawn:
XH0P T 0
XH0P T 1
stop
}
}

actor DynamoTendrilFX4 : DynamoTendrilFX
{
States
{
Spawn:
TNT1 A 0
TNT1 A 1 A_GiveInventory("MM8BDMProjSpawnFuncClient")
TNT1 A 0 A_SpawnItemEx("DynamoTendrilFX44",0,0,0,0,0,0,0,1)
stop
}
}
actor DynamoTendrilFX44 : DynamoTendrilFX
{
States
{
Spawn:
XH0P U 0
XH0P U 1
stop
}
}

actor DynamoTendrilFX5 : DynamoTendrilFX
{
States
{
Spawn:
TNT1 A 0
TNT1 A 1 A_GiveInventory("MM8BDMProjSpawnFuncClient")
TNT1 A 0 A_SpawnItemEx("DynamoTendrilFX55",0,0,0,0,0,0,0,1)
stop
}
}
actor DynamoTendrilFX55 : DynamoTendrilFX
{
States
{
Spawn:
XH0P V 0
XH0P V 1
stop
}
}

actor DynamoTendrilFX6 : DynamoTendrilFX
{
States
{
Spawn:
TNT1 A 0
TNT1 A 1 A_GiveInventory("MM8BDMProjSpawnFuncClient")
TNT1 A 0 A_SpawnItemEx("DynamoTendrilFX66",0,0,0,0,0,0,0,1)
stop
}
}
actor DynamoTendrilFX66 : DynamoTendrilFX
{
States
{
Spawn:
XH0P W 0
XH0P W 1
stop
}
}
