ethanmoffat / EndlessClient

An open source client for Endless Online written in C#
MIT License
34 stars 16 forks source link

Improve rendering offset accuracy for effects #239

Closed ethanmoffat closed 1 year ago

ethanmoffat commented 1 year ago

Similar to PR #237 - adds effect metadata to gfx024.egf, with a default lookup table if the data is not present that matches the hard-coded values from the v28 client.

Also includes a complete overhaul of effect rendering code, using the universal offset formula derived from the vanilla client.

As a minor change, sfx IDs are now 1-based so they match the actual file names instead of 0-based like they were before (which was only done for ease of indexing into the SFX array).

Partially implements #216