From c16f56513642dc7bb9acdfdeba6b282de90a6161 Mon Sep 17 00:00:00 2001 From: Filip Gawin Date: Mon, 25 Sep 2017 21:05:41 +0200 Subject: [PATCH] Implement 02f6 02f7 --- rwengine/src/script/modules/GTA3ModuleImpl.inl | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/rwengine/src/script/modules/GTA3ModuleImpl.inl b/rwengine/src/script/modules/GTA3ModuleImpl.inl index e1b58e5e..9c841e28 100644 --- a/rwengine/src/script/modules/GTA3ModuleImpl.inl +++ b/rwengine/src/script/modules/GTA3ModuleImpl.inl @@ -8500,9 +8500,7 @@ void opcode_02f5(const ScriptArguments& args, const ScriptObject object, const S @arg xOffset X offset */ void opcode_02f6(const ScriptArguments& args, const ScriptFloat angle, ScriptFloat& xOffset) { - RW_UNIMPLEMENTED_OPCODE(0x02f6); - RW_UNUSED(angle); - RW_UNUSED(xOffset); + xOffset = glm::sin(glm::radians(angle)); RW_UNUSED(args); } @@ -8514,9 +8512,7 @@ void opcode_02f6(const ScriptArguments& args, const ScriptFloat angle, ScriptFlo @arg yOffset Y offset */ void opcode_02f7(const ScriptArguments& args, const ScriptFloat angle, ScriptFloat& yOffset) { - RW_UNIMPLEMENTED_OPCODE(0x02f7); - RW_UNUSED(angle); - RW_UNUSED(yOffset); + yOffset = glm::cos(glm::radians(angle)); RW_UNUSED(args); }