Skip to content

Commit

Permalink
Configure dialog tick sound
Browse files Browse the repository at this point in the history
  • Loading branch information
Hammie committed Oct 2, 2023
1 parent 6fb2ac6 commit 648748d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 36 deletions.
62 changes: 26 additions & 36 deletions PROGRAM/dialog.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,24 +127,7 @@ void StartDialogMain()

DelEventHandler("frame", "StartDialogMain");

// KK -->
CreateEntity(&Dialog, "LegacyDialog");
if (bNewInterface)
{
Dialog.texture = "dialog/Dialg2.tga";
}
else
{
if (DIALOGCOLOUR == 1)
{
Dialog.texture = "dialog/Dialg1.tga";
}
else
{
Dialog.texture = "dialog/dialog.tga";
}
}
// KK <--
CreateDialog();

Log_SetActiveAction("Nothing");//MAXIMUS
LogsVisible(false); // KK
Expand Down Expand Up @@ -262,24 +245,9 @@ void SelfDialog(ref Character)
//Запускаем диалог
Dialog.CurrentNode = CharacterRef.Dialog.CurrentNode;
//Trace("SelfDialog: dialog path for self character <" + Character.id + "> = " + FullDialogPath);
// KK -->
CreateEntity(&Dialog, "LegacyDialog");
if (bNewInterface)
{
Dialog.texture = "dialog/Dialg2.tga";
}
else
{
if (DIALOGCOLOUR == 1)
{
Dialog.texture = "dialog/Dialg1.tga";
}
else
{
Dialog.texture = "dialog/dialog.tga";
}
}
// <-- KK

CreateDialog();

Log_SetActiveAction("Nothing");//MAXIMUS
LogsVisible(false); // KK
Dialog.headModel = CharacterRef.headModel; // KK
Expand Down Expand Up @@ -865,3 +833,25 @@ void DialogCorpseExit(ref char)
if(DIALOG_CAMERA>0.0) locCameraFollow();//MAXIMUS
}
//MAXIMUS <--

void CreateDialog()
{
CreateEntity(&Dialog, "LegacyDialog");
if (bNewInterface)
{
Dialog.texture = "dialog/Dialg2.tga";
}
else
{
if (DIALOGCOLOUR == 1)
{
Dialog.texture = "dialog/Dialg1.tga";
}
else
{
Dialog.texture = "dialog/dialog.tga";
}
}

Dialog.tickSound = "dialog_tick";
}
3 changes: 3 additions & 0 deletions RESOURCE/INI/ALIASES/sound_alias.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1819,3 +1819,6 @@ maxDistance = 3.0
volume = 0.3
name = NATURE\cricket.wav
name = NATURE\cricket2.wav

[dialog_tick]
name = interface\ok.flac

0 comments on commit 648748d

Please sign in to comment.