HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Felhounds?

01-01-2007, 05:02 PM#1
Don0ndrew
How do you make a unit "slide" whenever it turns, like on Hungry Hungry Felhounds, If possible can it be done in GUI? im just starting JASS if not its okay ill try the JASS, thanks =]]
01-01-2007, 05:29 PM#2
wyrmlord
Here's the trigger, probably from an older version of the map but it still works. It's in GUI so good luck interpreting this mess.
Trigger:
Demon Movement
Collapse Events
Time - Every 0.02 seconds of game time
Conditions
Collapse Actions
Collapse For each (Integer A) from 1 to intNumberOfActiveDemons, do (Actions)
Collapse Loop - Actions
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
((Execution count of (This trigger)) mod 20) Equal to 0
Collapse Then - Actions
Set reaDemonsAcceleration[(Integer A)] = (reaDemonsAcceleration[(Integer A)] + 0.01)
Else - Actions
Set pntTemp = (Position of untDemonUnits[(Integer A)])
Set pntTemp2 = (Position of untPlayerUnits[intPlayerBeingTargetted])
Trigger - Run Kill Foolish Elf <gen> (checking conditions)
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(X of pntTemp) Less than (X of pntTemp2)
Collapse Then - Actions
Set reaDemonsXVelocity[(Integer A)] = (reaDemonsXVelocity[(Integer A)] + reaDemonsAcceleration[(Integer A)])
Collapse Else - Actions
Set reaDemonsXVelocity[(Integer A)] = (reaDemonsXVelocity[(Integer A)] - reaDemonsAcceleration[(Integer A)])
Collapse If (All Conditions are True) then do (Then Actions) else do (Else Actions)
Collapse If - Conditions
(Y of pntTemp) Less than (Y of pntTemp2)
Collapse Then - Actions
Set reaDemonsYVelocity[(Integer A)] = (reaDemonsYVelocity[(Integer A)] + reaDemonsAcceleration[(Integer A)])
Collapse Else - Actions
Set reaDemonsYVelocity[(Integer A)] = (reaDemonsYVelocity[(Integer A)] - reaDemonsAcceleration[(Integer A)])
Trigger - Run Enforce Velocity Cap <gen> (checking conditions)
Unit - Move untDemonUnits[(Integer A)] instantly to (pntTemp offset by (reaDemonsXVelocity[(Integer A)], reaDemonsYVelocity[(Integer A)])), facing (Angle from pntTemp to pntTemp2) degrees
Custom script: call RemoveLocation(udg_pntTemp)
Custom script: call RemoveLocation(udg_pntTemp2)
01-01-2007, 05:54 PM#3
Don0ndrew
THANKS SO FREAKIN MUCH +Rep =]] thanks for the help again