[DiscordArchive] Maybe we could have a Unit::GetDisplayRace() method?
[DiscordArchive] Maybe we could have a Unit::GetDisplayRace() method?
Archived author: sudlud • Posted: 2023-10-28T13:47:18.868000+00:00
Original source
This could also be stored for any units, also for players? As it’s not effecting any existing mechanisms
Archived author: Natrist • Posted: 2023-10-28T13:49:20.673000+00:00
Original source
I don't think we should create a new member variable. It's probably best to use the race field, but explicitly set it to the display race value for NPCs.
Archived author: sudlud • Posted: 2023-10-28T13:52:00.858000+00:00
Original source
Alright
Archived author: Natrist • Posted: 2023-10-28T13:54:25.342000+00:00
Original source
Actually, there seems to be display sex and display race variables under the unit class...
Archived author: Natrist • Posted: 2023-10-28T13:57:35.721000+00:00
Original source
I'm thinking they're probably part of a struct or class named DisplayInfo or something...
Archived author: Natrist • Posted: 2023-10-28T13:58:13.113000+00:00
Original source
So like you have your Unit class and within it you have a DisplayInfo class somewhere and that contains things like displaySex, displayRace, etc.
Archived author: sudlud • Posted: 2023-10-28T13:58:49.126000+00:00
Original source
Oh really? Those fields exist in the creaturedisplayinfoextra dbc
Archived author: Natrist • Posted: 2023-10-28T13:59:02.595000+00:00
Original source
Yeah, that's what I'm seeing from analysing the client.
Archived author: Natrist • Posted: 2023-10-28T13:59:57.989000+00:00
Original source
The NPC race/sex is just an emulation, if you will. That's what I'm getting from looking at it.
Archived author: Natrist • Posted: 2023-10-28T14:00:17.865000+00:00
Original source
It's used for things like emotes and animations.