• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Help With FrictionSlide

Status
Not open for further replies.
Level 12
Joined
Aug 20, 2007
Messages
866
I made a FrictionSlide system, that doesn't use Unit Custom Values

It's probably been done a million times in JASS (KnockBack), but I wanted to do it in GUI, to see what it would look like

Now, I worked on it, and I *thought* I got all the bugs, but for some reason it gets fucked up, and so does the unit models :weekani::weekani::weekani:

If anybody could help to point out the bugs, or any improvements, that'd be helpful


________________________
Edit #1

I edited it a little more, but it still bugs when you use the "thunder clap"

If anybody who knows a sh*tload about programming could tell me why, that'd be awesome

________________________
Edit #2

I changed things a bit more, and I had to sell out to using the JASS loops ><
I'm a little pissed off, because the effect didn't happen the way I wanted it to
 

Attachments

  • FrictionSlide.w3x
    20.6 KB · Views: 60
Last edited:
Level 9
Joined
May 27, 2006
Messages
498
You didn`t add any event in AddtoSlide trigger. So W3 cant do these:
  • Set Sliders[SlidersMax] = (Triggering unit)
  • Set SlideCauser[SlidersMax] = (Damage source)
  • Set SlideDirection[SlidersMax] = (Facing of (Damage source))
  • Set SlideDamage[SlidersMax] = (Damage taken)
  • Unit Group - Add (Triggering unit) to CheckforSliders
  • Unit - Add Invulnerable (Neutral) to (Triggering unit)
  • Animation - Change (Triggering unit)'s animation speed to 100000.00% of its original speed
  • Animation - Play (Triggering unit)'s death animation

You`d have to change the whole construction of this trigger, cause there is no "A unit takes damage" event for generic unit.
 
Level 12
Joined
Aug 20, 2007
Messages
866
I might've uploaded the wrong one

Lemme check if I uploaded the wrong one

____________________________________

Raft, look at the other triggers

It says "Attack Damage Slide" with the trigger "Attack Demo"

That adds the event

This newer version works fine, try testing it out

The only problem, is it happens too quickly, and the effect is pretty much lost
 
Level 9
Joined
May 27, 2006
Messages
498
It completely doesn`t work for me.... I think adding "(Attacked unit) takes damage" by other trigger doesn`t work, or i didn`t see the effect (all the creeps surrounded me... I think adding 0 collision to affected unit would be a good idea ;P)

And for "it happens too quickly" - i recommend you to change the timer in SlideBack to 0.05 or 0.04
 
Level 12
Joined
Aug 20, 2007
Messages
866
Hmmm

Heh, yeah I wish the collision worked like that

It's strange, it makes the affected unit NOT a collide able object, but everything else still is collide able, in other words, other stuff can go through it, but it can't go through them

And the .01 to .04/.05, that's not the problem, the first time you attack something, it goes just fine, but every other time, it's faster

Btw, try attacking the other heros, top right is purple, left is teal

It is much easier to see if you only attack one unit at a time :xxd:
 
Level 12
Joined
Aug 20, 2007
Messages
866
Sorry about double-post

I just remembered a much much much better way of doing the FrictionSlide without touching the targeted unit's custom value

Any admins who read this, you can delete this thread
 
Status
Not open for further replies.
Top