noxworld-dev / opennox

OpenNox main repository.
GNU General Public License v3.0
446 stars 24 forks source link

NS4: Allow changing object lifetime #619

Open dennwc opened 12 months ago

dennwc commented 12 months ago

So that it's possible to capture FoN/DeathBall mid-flight and prolong its lifetime.

dennwc commented 11 months ago

Intermediate result - FoN is created as a regular object without any lifetime. Instead, the spell that runs it has a duration, as if it was channeled. When duration runs out - it destroys the ball. So for this use case to work we'll need to expose DurationSpell, which is a bit too deep (implementation detail).

If above will be confirmed, we should make a NS4 sub-package for exposing spells with custom parameters. That way we could expose FoN lifetime as a spell configuration.