- added UMDF property to assign conversation dialogues to mapthings.

SVN r2567 (trunk)
This commit is contained in:
Christoph Oelckers 2010-08-22 17:18:46 +00:00
commit 883510efe2
5 changed files with 23 additions and 0 deletions

View file

@ -4394,6 +4394,17 @@ AActor *P_SpawnMapThing (FMapThing *mthing, int position)
mobj->AddToHash ();
mobj->PrevAngle = mobj->angle = (DWORD)((mthing->angle * UCONST64(0x100000000)) / 360);
// Check if this actor's mapthing has a conversation defined
if (mthing->Conversation > 0)
{
mobj->ConversationRoot = GetConversation(mthing->Conversation);
if (mobj->ConversationRoot != -1)
{
mobj->Conversation = StrifeDialogues[mobj->ConversationRoot];
}
}
mobj->BeginPlay ();
if (!(mobj->ObjectFlags & OF_EuthanizeMe))
{