[DiscordArchive] Maybe we could have a Unit::GetDisplayRace() method?
[DiscordArchive] Maybe we could have a Unit::GetDisplayRace() method?
Archived author: Natrist • Posted: 2023-10-28T13:40:48.337000+00:00
Original source
Maybe we could have a Unit::GetDisplayRace() method?
Archived author: sudlud • Posted: 2023-10-28T13:42:10.500000+00:00
Original source
Ah now I see where you’re going. So although the actual values for races / display races are the same, you’d like to differentiate it in the unit
Archived author: Natrist • Posted: 2023-10-28T13:43:06.864000+00:00
Original source
Well, the reason why I think we should differentiate the two is because I don't think they're ultimately the same thing.
Archived author: sudlud • Posted: 2023-10-28T13:43:49.732000+00:00
Original source
True
Archived author: sudlud • Posted: 2023-10-28T13:44:17.645000+00:00
Original source
So the displayrace would always update when the modelid changes
Archived author: Natrist • Posted: 2023-10-28T13:44:34.439000+00:00
Original source
Yes, but not the actual race, for example
Archived author: Natrist • Posted: 2023-10-28T13:45:03.933000+00:00
Original source
I'm going to dig a bit more into the client and see if I can find anything interesting.
Archived author: Natrist • Posted: 2023-10-28T13:45:32.890000+00:00
Original source
So far it seems to me like all units have a race field but in *modern* clients, the display race is being used for NPCs.
Archived author: Natrist • Posted: 2023-10-28T13:46:07.817000+00:00
Original source
So we can assume that's what Blizzard does on the server side also. NPCs don't really have a race other than that "fake" value.
Archived author: sudlud • Posted: 2023-10-28T13:46:44.635000+00:00
Original source
So Unit could get an _displayRace field that’s updated on model change