1) How does the engine know how many hits landed?
The code for handling some of the abilities (like Riposte, Shield Pummel) checks if nHit is greater than 1 (or in some cases, equal to 2, etc to determine which hit we are handling).
a) How does the engine know that all hits connected? Is it tied to the animation and collision logic?
c) Or is the specific handling code called for each hit? In which case, it goes back to (a) again.
2) I want to code a Charge ability that will allow the warrior to charge through to the target - applying a movement speed modifier based on the distance between the attacker and target. Additionally, there should be a stamina decrease while he is moving and a damage bonus proportional to the amount of time he was moving.
This is designed as an activated ability but I am not sure if that is possible since there is a lag between the activation and the actual hit animation. So, if I set it up as an activated ability, will it work? If not, how can I do it?
Thanks!
Modifié par TimelordDC, 09 mars 2010 - 04:51 .





Retour en haut






