Originally Posted by telkostrasz
Yes, using NPC Ids is a solution we though about, but that means we have to map all npcID from the game to a race? How much IDs does that represents? How could this be easily maintenable?
|
It looks like you can actually just call
model:GetModelFileID() as a drop-in replacement for GetModel. You'll just have to map out the IDs for the different races.
Some quick numbers..
Lua Code:
ModelFileIDs = {
female = {
human = 1000764,
orc = 949470,
dwarf = 950080,
nightelf = 921844,
undead = 997378,
tauren = 986648,
gnome = 940356,
troll = 1018060,
goblin = 119369,
bloodelf = 110258,
draenei = 1022598,
},
male = {
human = 1011653,
orc = 917116,
dwarf = 878772,
nightelf = 974343,
undead = 959310,
tauren = 968705,
gnome = 900914,
troll = 1022938,
goblin = 119376,
bloodelf = 1100087,
draenei = 1005887,
}
}