mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
New merc (somewhat): Similar to Larry's two personalities, Buns now has an alternate personality as well.
For more info, see http://thepit.ja-galaxy-forum.com/index.php?t=tree&th=23806&goto=354149&#msg_354149 Requires GameDir >= r2430. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8588 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -2231,6 +2231,25 @@ BOOLEAN LuaCallsToDoDialogueStuff( UINT8 ubProfile, INT32 iFaceIndex, const char
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
// Flugente: play sound file like normal dialogue or, if someone else is already talking, just play the sound
|
||||
void SpecialDialogue( SOLDIERTYPE* pSoldier, STR8 azSoundString, STR16 azTextString )
|
||||
{
|
||||
// if possible, set up a proper dialogue. Otherwise just play the file
|
||||
if ( !DialogueActive() && pSoldier->ubProfile != NO_PROFILE )
|
||||
{
|
||||
gpCurrentTalkingFace = &gFacesData[pSoldier->iFaceIndex];
|
||||
gubCurrentTalkingID = pSoldier->ubID;
|
||||
|
||||
SetQuoteStr( azTextString );
|
||||
|
||||
LuaCallsToDoDialogueStuff( pSoldier->ubProfile, pSoldier->iFaceIndex, azSoundString );
|
||||
}
|
||||
else
|
||||
{
|
||||
PlayJA2SampleFromFile( azSoundString, RATE_11025, SoundVolume( MIDVOLUME, pSoldier->sGridNo ), 1, SoundDir( pSoldier->sGridNo ) );
|
||||
}
|
||||
}
|
||||
|
||||
void CreateTalkingUI( INT8 bUIHandlerID, INT32 iFaceIndex, UINT8 ubCharacterNum, SOLDIERTYPE *pSoldier, STR16 zQuoteStr )
|
||||
{
|
||||
// Show text, if on
|
||||
|
||||
Reference in New Issue
Block a user