1. Join other hivers in a friendly concept-art contest. The contestants have to create a genie coming out of its container. We wish you the best of luck!
    Dismiss Notice
  2. The Melee Mapping Contest #4: 2v2 - Results are out! Step by to congratulate the winners!
    Dismiss Notice
  3. We're hosting the 15th Mini-Mapping Contest with YouTuber Abelhawk! The contestants are to create a custom map that uses the hidden content within Warcraft 3 or is inspired by any of the many secrets within the game.
    Dismiss Notice
  4. The 20th iteration of the Terraining Contest is upon us! Join and create exquisite Water Structures for it.
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice

[Trigger] Delete leak from lightingbolt?

Discussion in 'Triggers & Scripts' started by Fakuspakus, Jan 8, 2019.

  1. Fakuspakus

    Fakuspakus

    Joined:
    Dec 25, 2018
    Messages:
    75
    Resources:
    0
    Resources:
    0
    • Special Effect - Create a special effect at point using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
      • Sound - Play ThunderBoltMissileDeath <gen> at 100.00% volume, attached to (Picked unit)
      • Wait 0.30 seconds
      • Special Effect - Destroy (Last created special effect)
    How can I get rid of this?: Untitled.png
     
  2. Sir Moriarty

    Sir Moriarty

    Joined:
    Jun 13, 2016
    Messages:
    315
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    This is not a leak, has nothing to do with leaks. It's a visual artifact of WC3's graphical engine that happens when there's too many lighting effects in close proximity - torches, lights, and lightnings.

    Make sure your graphical setting of "Lights" is set to high, and make sure you don't have too many lights in one place.
     
  3. Fakuspakus

    Fakuspakus

    Joined:
    Dec 25, 2018
    Messages:
    75
    Resources:
    0
    Resources:
    0
    I already have it set to max, so is there no way to use this model for my spell?(I want many lighting bolts around caster)
    Can I somehow disable "Lights" effect from lightingbolt model?
     
  4. Sir Moriarty

    Sir Moriarty

    Joined:
    Jun 13, 2016
    Messages:
    315
    Resources:
    2
    Spells:
    1
    Tutorials:
    1
    Resources:
    2
    You can't disable it through triggers as far as I know. The only way would be to edit the model directly, or to pick another, but this is not something I can help you with, unfortunately.
     
  5. PurgeandFire

    PurgeandFire

    Code Moderator

    Joined:
    Nov 11, 2006
    Messages:
    7,420
    Resources:
    18
    Icons:
    1
    Spells:
    4
    Tutorials:
    9
    JASS:
    4
    Resources:
    18
    sir moriarty is probably right about it being a graphical issue, but I wonder if it is also possible that you are leaking the effects. (Last created special effect) can change within that 0.3 second window.

    there are a lot of ways to get over that, but the easiest way is probably with local variable shadowing:
    • Custom script: local effect udg_TempEffect
    • Special Effect - Create a special effect at point using Doodads\Cinematic\Lightningbolt\Lightningbolt.mdl
    • Custom script: set udg_TempEffect = bj_lastCreatedEffect
    • Sound - Play ThunderBoltMissileDeath <gen> at 100.00% volume, attached to (Picked unit)
    • Wait 0.30 seconds
    • Special Effect - Destroy TempEffect


    Deleting the light off the lightning bolt model is also a good idea. Use a CascViewer tool to extract the lightning bolt model and then use Magos' Model Editor to open up the model. Go to Windows > Node Manager and then delete the light source, if you can find it. Then save the model, import it to your map, update the effect path and you're good to go!