- merge USDF branch into trunk.
- add USDF spexs. SVN r2561 (trunk)
This commit is contained in:
parent
6f82db47b8
commit
b452bec0ee
23 changed files with 1226 additions and 273 deletions
|
|
@ -3006,6 +3006,36 @@ FUNC(LS_StartConversation)
|
|||
return false;
|
||||
}
|
||||
|
||||
FUNC(LS_Thing_SetConversation)
|
||||
// Thing_SetConversation (tid, dlg_id)
|
||||
{
|
||||
int dlg_index = -1;
|
||||
FStrifeDialogueNode *node = NULL;
|
||||
|
||||
if (arg1 != 0)
|
||||
{
|
||||
dlg_index = GetConversation(arg1);
|
||||
if (dlg_index == -1) return false;
|
||||
node = StrifeDialogues[dlg_index];
|
||||
}
|
||||
|
||||
if (arg0 != 0)
|
||||
{
|
||||
FActorIterator iterator (arg0);
|
||||
while ((it = iterator.Next()) != NULL)
|
||||
{
|
||||
it->ConversationRoot = dlg_index;
|
||||
it->Conversation = node;
|
||||
}
|
||||
}
|
||||
else if (it)
|
||||
{
|
||||
it->ConversationRoot = dlg_index;
|
||||
it->Conversation = node;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
lnSpecFunc LineSpecials[256] =
|
||||
{
|
||||
|
|
@ -3088,7 +3118,7 @@ lnSpecFunc LineSpecials[256] =
|
|||
/* 76 */ LS_TeleportOther,
|
||||
/* 77 */ LS_TeleportGroup,
|
||||
/* 78 */ LS_TeleportInSector,
|
||||
/* 79 */ LS_NOP,
|
||||
/* 79 */ LS_Thing_SetConversation,
|
||||
/* 80 */ LS_ACS_Execute,
|
||||
/* 81 */ LS_ACS_Suspend,
|
||||
/* 82 */ LS_ACS_Terminate,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue