From 96de4961c447d7009ba52b6bf04d4b7bfe487ab1 Mon Sep 17 00:00:00 2001 From: boris Date: Wed, 28 Nov 2018 22:02:33 +1300 Subject: fixed emitsound hook --- cheat/internal_rewrite/visual_world.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'cheat/internal_rewrite/visual_world.cpp') diff --git a/cheat/internal_rewrite/visual_world.cpp b/cheat/internal_rewrite/visual_world.cpp index ea3d31d..b45aa3f 100644 --- a/cheat/internal_rewrite/visual_world.cpp +++ b/cheat/internal_rewrite/visual_world.cpp @@ -392,6 +392,22 @@ namespace features } } else if( is_sky ) { + // todo: make the sky look nice as opposed to gay + /* + // epic skybox fix (for 3d skybox fog fucking up) + offsets->m_skybox_mod = *pattern::first_code_match< uint32_t * >( + instance->m_chl->dll( ), + STR( "80 BE ? ? ? ? ? 5E 0F 95 C0" ), + 0x2 + ); + + // ... + auto &skybox_flag = *( uint8_t * )( ( uint32_t ) local_ptr + offsets->m_skybox_mod( ) ); + + if( config->visual->night_mode( ) ) + skybox_flag = 0; + */ + if( apply ) { new_color = fclr_t( 0.f, 0.f, 0.f ); } -- cgit v1.2.3