vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation - Zinc documentation - WC3 Optimizer documentation

* Random Spells & Systems

Double Spinning Blade v1.1.1

Views: 12775
Replies: 8
Posted by NocturnX
September 09, 2013, 01:07:44 AM

Advanced Streak System v5.1.1.0

Views: 8114
Replies: 2
Posted by Magtheridon96
June 25, 2013, 07:11:38 PM

HSS v1.3

Views: 8240
Replies: 4
Posted by radamantus
June 25, 2013, 05:29:22 AM

Knockback 2D

radamantus · 6450

0 Members and 1 Guest are viewing this topic.

Knockback 2D
on: June 25, 2013, 07:02:18 PM

This is the knockback system.
This features the following:
-Easy configuration for the spells
-Bouncing effect if the path is not walkable
-Features friction and velocity
-Destroy Trees and MUI
-Lagless effects(if not abused)
-Booleans like allow collision

To use:
Apply the configuration of your spell in the setup trigger then run the save trigger.
To use the cast save actions run the Init Knockback action then it will automatically start the loop.
You may also change the SFX if you want.

The speed is the one hard to calculate,so i would suggest use this method so you would understand the speed per interval:
(((Speed/Maxtime)x(Loopx2)) - (((Speed/Maxtime)x(Loopx2))/MaxTime)x(LoopxLoop))

Thats the formula.

The example in the map is:
(((1000/2)x(0.03x2)) - (((1000/2)x(0.03x2))/2)x(0.03x0.03))))
So.
((500x0.06) - ((500 x 0.06)/2) x (0.0009))
(30 - ( 30/2) x 0.0009)
((30 - (15 x 0.0009))
((30 - 0.0135))
SpeedInterval = 29.9865

So the Speed Interval is 29.9865
if the time is large and the speed is slow,hence,the unit wont be moved.

To apply knockback effect,make sure to follow the examples of how they are put.


To Import:
Copy the main trigger and variables



Knockback 2D
Reply #1 on: June 25, 2013, 07:02:55 PM

Spell is sweet. Approved with 4/5 rating.


Knockback 2D
Reply #2 on: June 25, 2013, 07:03:54 PM

Spell is sweet. Approved with 4/5 rating.
Because I need with the new rules to show the code, it's in the submission section until this resource accomplish the condition.


 

Power of Corruption - A Warcraft III altered melee map   Chaos Realm - The world of Game modders and wc3 addicts     WC3JASS.com - The JASS Vault   Jetcraft - A Starcraft II mod