BlowaXD / ChickenAPI

OpenSource Nostale Private Server Emulator API, implemented by SaltyEmu
https://blowaxd.github.io/ChickenAPI/
GNU General Public License v3.0
41 stars 7 forks source link

Feature : Visibility for entities #11

Closed BlowaXD closed 6 years ago

BlowaXD commented 6 years ago

Is your feature request related to a problem? Please describe. We should provide something that would permit to get an Entity visibility or to set it

Describe the solution you'd like Based on what we know, we should approach two things :

VisibilitySystem should be a notifiable system (as on Nostale, the visibility is based on events)

VisibilityComponent should contain a boolean to set its own visibility

I'd suggest we also add some more options to that component for :

Additional context All infos i've got so far :

in packet is triggered : Entity enters the map Entity spawns (monsters/npcs) Entity has super powers that permit to set its own visibility (GM)

out packet is triggered when : Entity exit the map Entity is killed / despawn Entity has super powers that permit him to become invisibile (GM)

Scenarions to investigate : Invisibility on skill (as @friends111 said, it should cast a su packet)

friends111 commented 6 years ago

out packet is triggered when : Entity is killed / despawn

when the entity is killed in normal way, its removed with 'su' packet, there is argument which tells if the attacked is dead

Entity cast an invisibility skill

there is a packet for invisibility, it does not out the entity, i think it was 'cl'

in packet is triggered : Entity casted a invisibility skill and it timedout

also wrong, see before

BlowaXD commented 6 years ago

Incoming in the next sprint