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

Gravity system v1.01

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
This is a simple system that increases the fly height of the unit and returns to the ground.

This system is MUI and not contains Leak.

Updeated -----

I know not do this calculation of parable, sorry.

  • Gravidade Call
    • Events
    • Conditions
    • Actions
      • Set GravidadeExe_Index = (GravidadeExe_Index + 1)
      • Set GravidadeExe_Count = (GravidadeExe_Count + 1)
      • Set GravidadeExe_Boolean[GravidadeExe_Index] = True
      • Set GravidadeExe_Down[GravidadeExe_Index] = False
      • Set GravidadeExe_Unidade[GravidadeExe_Index] = GravidadeCall_UnidadeCall
      • Set GravidadeExe_AlturaAtual[GravidadeExe_Index] = (Current flying height of GravidadeExe_Unidade[GravidadeExe_Index])
      • Set GravidadeExe_AlturaInicial[GravidadeExe_Index] = (Current flying height of GravidadeExe_Unidade[GravidadeExe_Index])
      • Set GravidadeExe_AlturaMaxima[GravidadeExe_Index] = GravidadeCall_AlturaMaximaCall
      • Set GravidadeExe_Velocidade[GravidadeExe_Index] = GravidadeCall_VelocidadeCall
      • Set GravidadeExe_VelocidadeReal[GravidadeExe_Index] = 0.00
      • Unit - Add Crow Form to GravidadeExe_Unidade[GravidadeExe_Index]
      • Unit - Remove Crow Form from GravidadeExe_Unidade[GravidadeExe_Index]
      • Trigger - Turn on Gravidade Execute <gen>
  • Gravidade Execute
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • For each (Integer GravidadeExe_Loop) from 1 to GravidadeExe_Index, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • GravidadeExe_Boolean[GravidadeExe_Loop] Equal to True
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • GravidadeExe_AlturaAtual[GravidadeExe_Loop] Less than or equal to GravidadeExe_AlturaMaxima[GravidadeExe_Loop]
                  • GravidadeExe_Down[GravidadeExe_Loop] Equal to False
                • Then - Actions
                  • Set GravidadeExe_VelocidadeReal[GravidadeExe_Loop] = (GravidadeExe_VelocidadeReal[GravidadeExe_Loop] + GravidadeExe_Velocidade[GravidadeExe_Loop])
                  • Animation - Change GravidadeExe_Unidade[GravidadeExe_Loop] flying height to GravidadeExe_VelocidadeReal[GravidadeExe_Loop] at 0.00
                  • Set GravidadeExe_AlturaAtual[GravidadeExe_Loop] = (Current flying height of GravidadeExe_Unidade[GravidadeExe_Loop])
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • GravidadeExe_AlturaInicial[GravidadeExe_Loop] Less than GravidadeExe_AlturaAtual[GravidadeExe_Loop]
                    • Then - Actions
                      • Set GravidadeExe_Down[GravidadeExe_Loop] = True
                      • Set GravidadeExe_VelocidadeReal[GravidadeExe_Loop] = (GravidadeExe_VelocidadeReal[GravidadeExe_Loop] - GravidadeExe_Velocidade[GravidadeExe_Loop])
                      • Animation - Change GravidadeExe_Unidade[GravidadeExe_Loop] flying height to GravidadeExe_VelocidadeReal[GravidadeExe_Loop] at 0.00
                      • Set GravidadeExe_AlturaAtual[GravidadeExe_Loop] = (Current flying height of GravidadeExe_Unidade[GravidadeExe_Loop])
                    • Else - Actions
                      • Set GravidadeExe_Count = (GravidadeExe_Count - 1)
                      • Set GravidadeExe_Boolean[GravidadeExe_Loop] = False
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • GravidadeExe_Count Equal to 0
        • Then - Actions
          • Set GravidadeExe_Index = 0
          • Trigger - Turn off (This trigger)
        • Else - Actions
Keywords:
System, Gravity, Gravity System, System Gravity, Height Fly, Height System, System Height, Fly Height.
Contents

Gravidade System (Map)

Reviews
12th Dec 2015 IcemanBo: Too long as NeedsFix. Rejected. The system doesn't recycle indexes correctly. Look at Bribe's unit indexer or Hanky's dynamic indexing. Both can be found at the spell section. The up and down movement could look better...

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long as NeedsFix. Rejected.

Maker, Gravity system v1.01, 10:35, 23rd Sep 2011

The system doesn't recycle indexes correctly. Look at Bribe's unit indexer or Hanky's dynamic indexing.
Both can be found at the spell section.
The up and down movement could look better, maybe use something like parabola equation or heght modulated with sin() function.
There's nothing gravity related per se in the system.
You need to add something more impressive to the system, now it is quite simple.

Needs fix.
 
Top