Add show_name and untargetable to npc_types fixes #637

Note the bodytype hack is still there since I was having issues with
some npcs still showing names
This commit is contained in:
Michael Cook (mackal)
2017-07-19 02:17:08 -04:00
parent 20b6c2f556
commit ec77e3a6fd
12 changed files with 27 additions and 10 deletions
+4
View File
@@ -659,6 +659,8 @@ void EntityList::AddNPC(NPC *npc, bool SendSpawnPacket, bool dontqueue)
QueueClients(npc, app);
npc->SendArmorAppearance();
npc->SetAppearance(npc->GetGuardPointAnim(),false);
if (!npc->IsTargetable())
npc->SendTargetable(false);
safe_delete(app);
} else {
auto ns = new NewSpawn_Struct;
@@ -799,6 +801,8 @@ void EntityList::CheckSpawnQueue()
NPC *pnpc = it->second;
pnpc->SendArmorAppearance();
pnpc->SetAppearance(pnpc->GetGuardPointAnim(), false);
if (!pnpc->IsTargetable())
pnpc->SendTargetable(false);
}
safe_delete(outapp);
iterator.RemoveCurrent();