From 6862faa9923e2256d10cbb90e0ba77fc2a847629 Mon Sep 17 00:00:00 2001 From: Jan Date: Sun, 15 May 2022 15:55:37 +0200 Subject: [PATCH] Correctly mark unhandled constants as such --- .../Game/IW4/AssetDumpers/AssetDumperMaterial.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperMaterial.cpp b/src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperMaterial.cpp index 5a9472dd..1fb4d9b6 100644 --- a/src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperMaterial.cpp +++ b/src/ObjWriting/Game/IW4/AssetDumpers/AssetDumperMaterial.cpp @@ -1223,8 +1223,10 @@ namespace IW4 } else if (constant.nameHash == Common::R_HashString("envMapParms")) { - // TODO: Wrong, fix - m_constants_info.m_env_map_min = constant.literal[0]; + // TODO: Calculate actual values + m_constants_info.m_env_map_min = 0; + m_constants_info.m_env_map_max = 0; + m_constants_info.m_env_map_exponent = 0; } else if (constant.nameHash == Common::R_HashString("featherParms")) { @@ -1278,7 +1280,11 @@ namespace IW4 } else if (constant.nameHash == Common::R_HashString("falloffParms")) { - __asm nop; + // TODO: Calculate actual values + m_constants_info.m_falloff_begin_angle = 0.0f; + m_constants_info.m_falloff_end_angle = 0.0f; + m_constants_info.m_dist_falloff_begin_distance = 0.0f; + m_constants_info.m_dist_falloff_end_distance = 0.0f; } else if (constant.nameHash == Common::R_HashString("distortionScale")) {