Login
Register
Menu
Home
Forum
JassDoc
Types
Functions
Variables
Help
Chat
Media
Search
Search posts
WC3 Modding Information Center
For your WC3 needs...
WC3 Modding Information Center
Forum
Warcraft (WC3) Modding
Warcraft III Resources
Warcraft III Spells and Systems
Knockback 2D
Warcraft III:
Maps
Models
Skins
Icons
Spells / Systems
Tools
Tutorials
Snippets
JASS vJASS Spells and Systems
Tutorials
Chat @Discord
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
Knockback 2D
Warcraft III Spells and Systems
Started by
radamantus
Views
8511
Replies
2
Users
3
1
1
1
Pages:
1
Go Down
0 Members and 2 Guests are viewing this topic.
radamantus
Newbie - level 2
Posts:
16
WC3 Models: 0
WC3 Tutorials: 0
WC3 Tools: 0
WC3 Maps: 0
WC3 Skins: 0
WC3 Icons: 0
WC3 Spells: 0
Reputation:
0
Damn Spell Coder
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
eubz
Da Shaman
Recognized User
Posts:
75
WC3 Models: 4
WC3 Tutorials: 0
WC3 Tools: 0
WC3 Maps: 1
WC3 Skins: 0
WC3 Icons: 1
WC3 Spells: 0
Reputation:
7
Wired...
Knockback 2D
Reply #1 on:
June 25, 2013, 07:02:55 PM
Spell is sweet. Approved with 4/5 rating.
Lowpoly Workshop
moyack
Site Owner
Administrator
Posts:
971
WC3 Models: 20
WC3 Tutorials: 17
WC3 Tools: 19
WC3 Maps: 12
WC3 Skins: 0
WC3 Icons: 1
WC3 Spells: 16
Reputation:
1153
Site Admin - I love fix things
Knockback 2D
Reply #2 on:
June 25, 2013, 07:03:54 PM
Quote from: eubz on June 25, 2013, 07:02:55 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.
WC3 Modding Information Center
Print
Pages:
1
Go Up
« previous
next »
WC3 Modding Information Center
Forum
Warcraft (WC3) Modding
Warcraft III Resources
Warcraft III Spells and Systems
Knockback 2D
Random Spells & Systems
PortaMx-SEF 1.54
|
PortaMx © 2008-2015
,
PortaMx corp.
Search
Username
Password
Always stay logged in
Forgot your password?