loblao / libotp-nametags

Reverse-engineered libotp nametags
MIT License
23 stars 5 forks source link

margins: multiple popups with same object code #11

Open DissonancePM opened 5 years ago

DissonancePM commented 5 years ago

In certain scenarios, multiple nametags may be created for one object in game. Currently, these nametags are able to all show at the same time. However, this does not work in scenarios where there is intended to be one nametag showing for a building such as Toon HQ.

Here is how this looks currently: unknown

In Toontown Online, Toon HQ only occupied a single margin cell and the nametag popup switched between the doors as you got closer to one door or the other:

yes

It appears this behavior has been overlooked while writing margins. This behavior seems to depend on the object code of the nametags. For example, for the doors (Toon HQ has two doors):

self.nametag.setObjectCode(self.block)

theclashingfritz commented 5 years ago

I've never seen this happen on my server except with old outdated .pdna files. I will see if i can reproduce it though.