summon PainElementalRune and perform a secondary fire.
I use an ACS script to terminate the morph.
Code: Select all
TNT1 A -1
{
A_Explode(1000,768,XF_NOTMISSILE,0,512);
A_SpawnItemEx("PainKamikazeExploFX",0,0,25,0,0,pitch,0,SXF_NOCHECKPOSITION);
ACS_NamedExecuteWithResult('ForceUnmorph',0,0,0,0);
}
Code: Select all
Script "ForceUnmorph" (void)
{
UnMorphActor(0,1);
}
Code: Select all
TNT1 A -1
{
A_Explode(1000,768,XF_NOTMISSILE,0,512);
A_SpawnItemEx("PainKamikazeExploFX",0,0,25,0,0,pitch,0,SXF_NOCHECKPOSITION);
let inv = PowerMorph(FindInventory("PowerMorph",true));
if (inv)
{
A_SetInventory("DemonTimerToken",0);
A_SetInventory("DemonTimerTotal",0);
inv.EffectTics = 0;
inv.EndEffect();
return;
}
}