• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Help reduce lag (probably leaks!)

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
Down Go 1
Up Go 1
Use skip remaining actions:

  • Items Buffs
    • Events
      • Unit - A unit Acquires an item
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Body Armor
          • (Mana of Hero_Walker) Less than 100.00
        • Then - Actions
          • Item - Remove (Item being manipulated)
          • Unit - Set mana of Hero_Walker to 100.00
          • Game - Display to (All players) the text: +100 Body Armor
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Item-type of (Item being manipulated)) Equal to Advanced Body Armor
          • (Mana of Hero_Walker) Less than 200.00
        • Then - Actions
          • Item - Remove (Item being manipulated)
          • Unit - Set mana of Hero_Walker to 200.00
          • Game - Display to (All players) the text: +200 Body Armor
        • Else - Actions

Instead of creatind/destroying unit groups in Bullets, use a global group that you never destroy. Add bullets into it when they are created, remove hen destroyed. You can change 0.02 to 0.03.
Bullet boom should be combined with Bullets.
Shell and Shell Boom -> combine. Use 0.03 seconds.
Same for others.
The best solution would be to use a projectile system that handles all types of projectiles.
Attack 4 leaks.
Teleport leaks.
Tick lava and acid leaks special effects.
 
Level 11
Joined
Feb 23, 2009
Messages
577
Thanks a lot Maker I will work on all those issues.

The best solution would be to use a projectile system that handles all types of projectiles.
Do you mean one that you know of? If so mind showing me which one would be good? Or do you mean to put all the missiles into one trigger (ex. bullets, shells etc.)?

Also if you don't mind explaining the first part more into details about unit groups, I think I get it but wouldn't want to mess anything up ;)...

Thanks again for your time.
 
Status
Not open for further replies.
Top