Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Gustavo6046

Members
  • Content count

    1146
  • Joined

  • Last visited

5 Followers

About Gustavo6046

  • Rank
    Senior Member

Recent Profile Visitors

7679 profile views

Single Status Update

See all updates by Gustavo6046

  1. ZDCode now has macros and anonymous classes!

     

    class AaaSpawner {
        is NOGRAVITY;
    
        macro SpawnEither(A, B, C) {
            TNT1 A 0 A_SpawnItemEx(class extends TeleportFog {
                set Translation to "Ice";
            });
            TNT1 A 0 A_SpawnItemEx(class extends RandomSpawner {
                set DropItem to A, 128, 22;
                set DropItem to B, 200, 6;
                set DropItem to C, 255, 1;
            });
        };
    
        label Spawn {
            TNT1 A 35;
    
            x 3 {
                sometimes 60 inject SpawnEither("ChaingunGuy", "Revenant", "ArchVile");
                sometimes 60 inject SpawnEither("ChaingunGuy", "Revenant", "PainElemental");
            };
    
            Loop;
        };
    }

    Hell yeah!

×