• 🏆 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!

Maintenance v1.1

Mental Omega: Maintenance
(With this, our base can recover at light speed, Commander)
IMPORT GUIDE :
1. Import TimedSpellEffect to your map (you can use the one from the test map, but I recommend grabbing the one I linked)
2. Import the Maintenance ability from Ability Editor (Object Editor) to your map
3. Import the Maintenance folder from Trigger Editor to your map
4. Configure the Maintenance Config trigger
5. Optionally, if you need the effect used in the test map, just import them from Import Manager to your map (CREDIT @iron_warrior if you use any of the sample effects used in the map!)
SPELL DESCRIPTION :
Heal buildings in an area within the target point for a few seconds.
SPELL INFORMATION :
Based on Maintenance ability from Mental Omega. The code is based on Force Shield codes with adjustments.
The Gear Aura has around two seconds delay when removed. Since I'm not a model maker, I suggest you ask for help in the Request section if this bothers you.
MEDIA SHOWCASE :

CHANGELOG :
Version 1.1: Fixed unit scaling
Version 1.0: Released
CREDIT :
Mentalmeisters - Original Idea
@Nichilus - Bug Fixing for Force Shield
@iron_warrior - Gear Aura model
Contents

Maintenance v1.1 (Map)

Reviews
Wrda
This spell suffers in a similar way of another one I've already reviewed. The effect scale on units is too big due to Set VariableSet TSEScale = MaintenanceScale[MaintenanceLevel] instead of Set VariableSet TSEScale =...

Wrda

Spell Reviewer
Level 25
Joined
Nov 18, 2012
Messages
1,864
This spell suffers in a similar way of another one I've already reviewed. The effect scale on units is too big due to
  • Set VariableSet TSEScale = MaintenanceScale[MaintenanceLevel]
instead of
  • Set VariableSet TSEScale = MaintenanceScaleUnit[MaintenanceLevel]
in "pick every unit" action in Maintenance Start trigger.
According to the tooltip, I would expect the ability to work on buildings (or units) which aren't initially inside the area to start to get healed when they in and to stop healing otherwise.

The ability is simple and works. Seems like a more configurable fountain of health ability.
I'm approving under the assumption this will be fixed relatively quickly.

Approved
 
Level 38
Joined
Feb 27, 2007
Messages
4,951
@Daffa @Nichilus
The Gear Aura has around two seconds delay when removed. Since I'm not a model maker, I suggest you ask for help in the Request section if this bothers you.
There's an easy way to get around this:
JASS:
library RemoveEffect
  //Destroying an effect always plays its death animation and any associated sounds.
  //This library fixes it in a simple way: move the effect to a location where nobody can see or hear it.

  //By Pyrogasm, additional help by Bribe
  //v1.1

  globals
    private real SAFE_X = -3900.
    private real SAFE_Y =  3900.
    private real SAFE_Z = -1000.

    private real TIMESCALE = 10. //doesn't really matter what this is but we set it to > 0 so the animations actually finish
  endglobals

  function RemoveEffect takes effect e returns nothing
    call BlzSetSpecialEffectAlpha(e, 255)
    call BlzSetSpecialEffectZ(e, SAFE_Z)
    call BlzSetSpecialEffectPosition(e, SAFE_X, SAFE_Y, SAFE_Z)
    call BlzSetSpecialEffectTimeScale(e, TIMESCALE)
    call DestroyEffect(e)
  endfunction
endlibrary
 
Top