And i want to port Shrinker, because it will be fun to smash this little bastards with your Mighty Foot.
I tried to do this through CustomInventory item, which was supposed to change enemies scale. But it's dont want to do anything.
Help please
Code: Select all
ACTOR Nuking_Shrink
{
Radius 7
Height 10
Speed 31
Damage 1
Scale 1
Decal "Scorch"
SeeSound ""
States
{
Spawn:
0011 A 1
Loop
Death:
TNT1 A 1 A_RadiusGive("Nuking_ShrinkingShit",12,RGF_NOTARGET|RGF_MONSTERS|RGF_CUBE|RGF_NOSIGHT,1)
Stop
}
ACTOR Nuking_ShrinkingShit : CustomInventory
{
States
{
Pickup:
TNT1 A 0 A_CheckFlag("ICECORPSE", "Failing")
TNT1 A 0 A_CheckFlag("BOSS", "Failing")
TNT1 A 0 A_CheckFlag("NOBLOOD", "Failing")
LetTheBodiesGetSmall:
TNT1 A 2 A_SetScale(0.95,0.95)
TNT1 A 2 A_SetScale(0.90,0.90)
TNT1 A 2 A_SetScale(0.85,0.85)
TNT1 A 2 A_SetScale(0.80,0.80)
TNT1 A 2 A_SetScale(0.70,0.70)
TNT1 A 2 A_SetScale(0.65,0.65)
TNT1 A 1 A_SetScale(0.60,0.60)
TNT1 A 1 A_SetScale(0.55,0.55)
TNT1 A 1 A_SetScale(0.25,0.25)
TNT1 A 1 A_SetScale(0.10,0.10)
Failing:
TNT1 A 0
Fail
}
}