From 048839e00019446afdad8fdd0c0e6cba33ad4bfb Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Sun, 12 Aug 2018 17:31:18 +0200 Subject: [PATCH] Implement 018d --- rwengine/src/script/modules/GTA3ModuleImpl.inl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/rwengine/src/script/modules/GTA3ModuleImpl.inl b/rwengine/src/script/modules/GTA3ModuleImpl.inl index b2dd96c2..b83e490c 100644 --- a/rwengine/src/script/modules/GTA3ModuleImpl.inl +++ b/rwengine/src/script/modules/GTA3ModuleImpl.inl @@ -4296,11 +4296,11 @@ void opcode_018c(const ScriptArguments& args, ScriptVec3 coord, const ScriptSoun @arg sound1 */ void opcode_018d(const ScriptArguments& args, ScriptVec3 coord, const ScriptSoundType sound0, ScriptSound& sound1) { - RW_UNIMPLEMENTED_OPCODE(0x018d); - RW_UNUSED(coord); - RW_UNUSED(sound0); - RW_UNUSED(sound1); - RW_UNUSED(args); + auto world = args.getWorld(); + auto metaData = getSoundInstanceData(sound0); + auto bufferName = world->sound.createSfxInstance(metaData->sfx); + world->sound.playSfx(bufferName, coord, true, metaData->range); + sound1 = &world->sound.getSoundRef(bufferName); } /**