Retera / WarsmashModEngine

An emulation engine to improve Warcraft III modding
GNU Affero General Public License v3.0
192 stars 37 forks source link

Bug: Missing lightning effect among some units' attack. #33

Open bearU369 opened 1 year ago

bearU369 commented 1 year ago

Some units like Thunder Lizards and Bronze Dragons have a chain lightning effect when attacking a unit. These units have a passive ability called Lightning Attack that do this lightning effect. In Warsmash, that ability is not yet defined so these units have a missing lightning effect in their attacks.

Retera commented 1 year ago

In order to fix this issue, it will also be necessary to implement a Lightning Effect system into the render pipeline, which can spawn animated lightning art into the 3D scene based on Splats\LightningData.slk or whatever. The mathematics of a camera-centric geometric plane (or series of planes when using the 3D noise animation) that tilts along a particular axis to face the camera will most likely be similar to the mathematics of a ParticleEmitter2 that emits in TAIL mode, although the start and end point that form the axis are based on two designated locations instead of the particle outward velocity.