noxworld-dev / opennox

OpenNox main repository.
GNU General Public License v3.0
451 stars 25 forks source link

Activate elevators next to charmed creatures #570

Open al0fdf opened 1 year ago

al0fdf commented 1 year ago

In the original Nox, and in OpenNox right now, the elevators only begin moving when you are close to them. When you leave a charmed creature next to an elevator, and walk far enough, the elevator stops moving. This makes it possible for charmed creatures to get stuck. It would be better if the elevators would activate when players, or other charmed creatures were near them.

dennwc commented 1 year ago

As an option, we can make it work similar to Pixies - if the creature cannot reach you, it will be teleported. But I agree that properly enabling elevators would be better.

On a note, it might actually be map-dependent. I think on con01a there a script that disables all creatures in the second cave and re-enables them back once the character actives an elevator to that part of the map. I think it's an optimization that developers did to let the engine skip creatures that are not relevant right now. Maybe it's the same story with elevators?

Evengard commented 1 year ago

I actually never witnessed that behaviour in online play... Conj creatures were always able to go from one side of the map to the other through any elevators etc. no matter if there were players or not around

dennwc commented 1 year ago

Maybe it's only the case in single player? :man_shrugging: In any case, would need to check this.