I'm trying to add in Feign Death compability. So far, I've added the function in client_cpp, with two separate, working functions (GetFeigned, SetFeigned).
Now, I'm modifying NPC ai. I've gotten ignore feigned people when determining who to aggro working, HOWEVER, in NPC::Process (npcai.cpp):
if (hate_list.GetTop()->CastToClient()->GetFeigned() == 1) {
RemoveFromHateList(GetHateTop());
}
This compiles just fine, but whenever someone logs into a zone with mobs, the zone crashes. If I remove it, everything runs smoothly.
Second question:
Where in source is sitting defined? Aka hitting the "sit" button. It's for turning FD off.
