mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
New Trait: Snitch (Trait 22) (by anv)
Every midnight snitches will give you a report about their collegues' opinions. Information includes: - merc whining about high death rate, - merc whining about player reputation, - merc whining about his low morale, - merc whining about some other merc (unliked, not only hated), - merc planning to quit (leave without renewing contract, only AIM mercs) next day, - merc whining about player inactivity, - merc whining about player owing them money (you can only owe money to MERC mercs). List of snitches (trait 22) Beth Bud Buzz Carp Ears Gary Hurl Lance Leon Weasel see: http://www.bears-pit.com/board/ubbthreads.php/topics/329412/Snitches_+_Externalised_morale.html git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6723 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -12,6 +12,8 @@
|
||||
#include "FileMan.h"
|
||||
#endif
|
||||
|
||||
SUBSEQUENTSOUNDS subsequentsounds;
|
||||
|
||||
#if 0
|
||||
static void AILCALLBACK timer_func( UINT32 user )
|
||||
{
|
||||
@@ -272,6 +274,33 @@ UINT32 PlayJA2GapSample( CHAR8 *zSoundFile, UINT32 usRate, UINT32 ubVolume, UINT
|
||||
return(SoundPlayStreamedFile( zSoundFile, &spParms));
|
||||
}
|
||||
|
||||
// anv: for playing multiple sounds in row (with one text)
|
||||
UINT32 PlayJA2MultipleGapSample( CHAR8 zSoundFiles[][64], UINT8 ubSoundsCount, UINT32 usRate, UINT32 ubVolume, UINT32 ubLoops, UINT32 uiPan, AudioGapList* pData )
|
||||
{
|
||||
SOUNDPARMS spParms;
|
||||
|
||||
memset(&spParms, 0xff, sizeof(SOUNDPARMS));
|
||||
|
||||
spParms.uiSpeed = usRate;
|
||||
spParms.uiVolume = (UINT32) ( ( ubVolume / (FLOAT) HIGHVOLUME ) * GetSpeechVolume( ) );
|
||||
spParms.uiLoop = ubLoops;
|
||||
spParms.uiPan = uiPan;
|
||||
spParms.uiPriority=GROUP_PLAYER;
|
||||
|
||||
subsequentsounds.ubSndCounter = 1;
|
||||
subsequentsounds.ubMaxSndCounter = ubSoundsCount;
|
||||
for( UINT8 i = 0; i < ubSoundsCount; i++ )
|
||||
{
|
||||
strcpy(subsequentsounds.zSoundFiles[i], zSoundFiles[i]);
|
||||
}
|
||||
subsequentsounds.spParams = spParms;
|
||||
|
||||
// Setup Gap Detection, if it is not null
|
||||
if( pData != NULL )
|
||||
AudioGapListInit( zSoundFiles[0], pData );
|
||||
|
||||
return( SoundPlayStreamedFile( zSoundFiles[0], &spParms));
|
||||
// rest of sounds (if there are any) will be called from HandleTalkingAutoFace when current one ends
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user