Right, so I know a couple ways to make the tennis effect work, but what I'm looking for here, is a function that will move an eweapon based on its trajectory, and the trajectory of an lweapon that hits it. That is, something that replicates some basic level of Newtonian physics, so that the direction, and velocity of the reflected eweapon, will be based on its initial direction and velocity, coupled with that of whatever impacted it.
It doesn't have to be spot on, but anything is better than randomising conditions.
The function needs to accept two pointers (lweapon and eweapon), and read the Step of each, and the Dir of each, to make its calculation. A Step of '0' must be allowed, and logical. I also plan to recycle this, at least in part, for determining custom enemy throwback, or custom throwback when an enemy weapon hits the player.
(Z3 had this, with soldiers, and swords, if you recall. When a soldier parried Link's attack, the enemy, and Link, bounced away from one another. Other games, such as the Gameboy series, also had similar effects when Link killed an enemy. )
If someone wants to, or is able to tackle this, I'd appreciate it very much indeed.
P.S. Please comment calcs, if possible; so that it's easier to modify to a specific application.
Edited by ZoriaRPG, 26 November 2015 - 07:42 AM.

