FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Black Hole Script

    Scheduled Pinned Locked Moved Modding & Tools
    2 Posts 1 Posters 516 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      Resin_Smoker
      last edited by Resin_Smoker

      As requested...

      4D_ProjectileSuperClass.zip

      Singularity_Helper.zip

      Same files are inside the 4DC main. Be aware, that the projectile impacts the ground then calls on a system of helpers to pull the targets in. There are calls and checks in place to prevent it running in the event that the "self", target, or player is no longer valid. Most things all have comments saying what does what, as the process jumps from projectile, to unit, to helper and slides everything inside. To put it bluntly, this is the single most powerful weapon I ever created for the game. Not only did it clear up entire battlefields (including all reclaimables), it also gave the firing player all the mass / energy that was hovered up too. We even had a version that would alter the terrain as well, and could very easily turn an entire map into an ocean!

      Only real limiting factor was the DoNotTargetsList was Parced (ParseEntityCategory) to filter out unwanted unit types we'd rather not suck into a Blackhole.

      	DoNotTargetList = {
      		-- Unit restrictions
      		'BLACKHOLE',
      		'COMMAND',
      		'ECONOMIC',
      		'EXPERIMENTAL',
      		'FACTORY',
      		'GATE',
      		'HOLOGRAM',
      		'PHASING',
      		'POD',
      		'PROJECTILE',
      		'SIZE12',
      		'SIZE20',
      		'SUBCOMMANDER',
      		'UNTARGETABLE',
      	},
      
      

      Resin

      Kykhu Oss https://youtu.be/JUgyGTgeZb8
      Unit Thrower https://youtu.be/iV8YBXVxxeI
      Beam Tentacle https://youtu.be/le5SNwHvC4c
      Blackhole https://www.youtube.com/watch?v=D9NGQC5rr0c
      Resurection https://www.youtube.com/watch?v=WdbIQ4vHkMs

      1 Reply Last reply Reply Quote 0
      • R Offline
        Resin_Smoker
        last edited by Resin_Smoker

        Was looking over the script for this after 10 years and I wondered how I could write this complex script while so intoxicated.

        Kykhu Oss https://youtu.be/JUgyGTgeZb8
        Unit Thrower https://youtu.be/iV8YBXVxxeI
        Beam Tentacle https://youtu.be/le5SNwHvC4c
        Blackhole https://www.youtube.com/watch?v=D9NGQC5rr0c
        Resurection https://www.youtube.com/watch?v=WdbIQ4vHkMs

        1 Reply Last reply Reply Quote 2
        • First post
          Last post