|
|
@ -90,6 +90,7 @@
|
|
|
|
#include "game_share/position_or_entity_type.h"
|
|
|
|
#include "game_share/position_or_entity_type.h"
|
|
|
|
#include "nel/misc/vector.h"
|
|
|
|
#include "nel/misc/vector.h"
|
|
|
|
#include "nel/misc/entity_id.h"
|
|
|
|
#include "nel/misc/entity_id.h"
|
|
|
|
|
|
|
|
#include "entity_cl.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define OLD_STRING_SYSTEM
|
|
|
|
#define OLD_STRING_SYSTEM
|
|
|
@ -3576,14 +3577,22 @@ void impulsePlaySoundTrigger(NLMISC::CBitMemStream& impulse)
|
|
|
|
SoundMngr->spawnSource(SoundId, SoundPosition.getPosition());
|
|
|
|
SoundMngr->spawnSource(SoundId, SoundPosition.getPosition());
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
NLMISC::CVector pos;
|
|
|
|
NLMISC::CVectorD pos;
|
|
|
|
TDataSetIndex compressedIndex = SoundPosition.getEntityId();
|
|
|
|
TDataSetIndex compressedIndex = SoundPosition.getEntityId();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CEntityCL *entity = EntitiesMngr.getEntityByCompressedIndex(compressedIndex);
|
|
|
|
|
|
|
|
if (!entity)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
nlwarning("<impulsePlaySoundTrigger> invalid entity with compressed id %d", compressedIndex);
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
pos = entity->pos();
|
|
|
|
SoundMngr->spawnSource(SoundId, pos);
|
|
|
|
SoundMngr->spawnSource(SoundId, pos);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void impulseCameraAnimationPlay(NLMISC::CBitMemStream& impulse)
|
|
|
|
void impulseCameraAnimationPlay(NLMISC::CBitMemStream& impulse)
|
|
|
|
{
|
|
|
|
{
|
|
|
|