- added UMDF property to assign conversation dialogues to mapthings.
SVN r2567 (trunk)
This commit is contained in:
parent
96a8f1ceee
commit
883510efe2
5 changed files with 23 additions and 0 deletions
|
|
@ -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))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue