|
1 |
| -#include <script/ScriptTypes.hpp> |
2 |
| -#include <script/ScriptMachine.hpp> |
3 |
| -#include <script/SCMFile.hpp> |
4 |
| -#include <script/ScriptFunctions.hpp> |
5 |
| -#include <engine/GameWorld.hpp> |
6 |
| -#include <engine/GameState.hpp> |
7 |
| -#include <engine/GameData.hpp> |
8 |
| -#include <engine/Animator.hpp> |
| 1 | +#include <ai/PlayerController.hpp> |
| 2 | +#include <audio/SfxParameters.hpp> |
9 | 3 | #include <core/Logger.hpp>
|
10 |
| -#include <objects/CutsceneObject.hpp> |
| 4 | +#include <data/CutsceneData.hpp> |
| 5 | +#include <engine/Animator.hpp> |
| 6 | +#include <engine/GameData.hpp> |
| 7 | +#include <engine/GameState.hpp> |
| 8 | +#include <engine/GameWorld.hpp> |
11 | 9 | #include <objects/CharacterObject.hpp>
|
| 10 | +#include <objects/CutsceneObject.hpp> |
12 | 11 | #include <objects/InstanceObject.hpp>
|
13 | 12 | #include <objects/ObjectTypes.hpp>
|
14 | 13 | #include <objects/PickupObject.hpp>
|
15 | 14 | #include <objects/VehicleObject.hpp>
|
16 |
| -#include <ai/PlayerController.hpp> |
17 |
| -#include <data/CutsceneData.hpp> |
| 15 | +#include <script/SCMFile.hpp> |
| 16 | +#include <script/ScriptFunctions.hpp> |
| 17 | +#include <script/ScriptMachine.hpp> |
| 18 | +#include <script/ScriptTypes.hpp> |
18 | 19 |
|
19 | 20 | #include <boost/algorithm/string/predicate.hpp>
|
20 | 21 |
|
@@ -4280,10 +4281,10 @@ void opcode_018b(const ScriptArguments& args, const ScriptBlip blip, const Scrip
|
4280 | 4281 | @arg sound
|
4281 | 4282 | */
|
4282 | 4283 | void opcode_018c(const ScriptArguments& args, ScriptVec3 coord, const ScriptSoundType sound) {
|
4283 |
| - RW_UNIMPLEMENTED_OPCODE(0x018c); |
4284 |
| - RW_UNUSED(coord); |
4285 |
| - RW_UNUSED(sound); |
4286 |
| - RW_UNUSED(args); |
| 4284 | + auto world = args.getWorld(); |
| 4285 | + auto metaData = getSoundInstanceData(sound); |
| 4286 | + auto name = world->sound.createSfxInstance(metaData->sfx); |
| 4287 | + world->sound.playSfx(name, coord, false, metaData->range); |
4287 | 4288 | }
|
4288 | 4289 |
|
4289 | 4290 | /**
|
|
0 commit comments