Quote:
Originally Posted by jake13jake
Storm's damage system called the server twice to overcome lag. Once at the start of the swing and once at the end of the swing. From a scripting standpoint, however, the new one is much improved, and if Stefan will give us the event handlers we need, it would be much improved from an implementation standpoint as well.
|
No it didn't. It called it twice at the start of the swing, at slightly differing locations (one in the midst of the sword, one at the tip), which was somthing I added in to make the range of the swords more accurate, and at the time i was only supporting single ordinate points for hits rather than areas. The way I looked at it was that when you send the attack at the start of the swing, by the time the hit reaches the server/other player, it will 'visually' be at least halfway through the swing on you screen, which gives a nice behaviour.