Add Enable Peaking ;)

hehehe
This commit is contained in:
Joaquin
2022-06-18 19:41:42 -06:00
parent f70d515295
commit 4955c6e599
7 changed files with 123 additions and 1 deletions

View File

@ -52,6 +52,7 @@
<ClInclude Include="src\user\cheat\teleport\CustomTeleports.h" /> <ClInclude Include="src\user\cheat\teleport\CustomTeleports.h" />
<ClInclude Include="src\user\cheat\visuals\Browser.h" /> <ClInclude Include="src\user\cheat\visuals\Browser.h" />
<ClInclude Include="src\user\cheat\visuals\CameraZoom.h" /> <ClInclude Include="src\user\cheat\visuals\CameraZoom.h" />
<ClInclude Include="src\user\cheat\visuals\EnablePeaking.h" />
<ClInclude Include="src\user\cheat\visuals\FPSUnlock.h" /> <ClInclude Include="src\user\cheat\visuals\FPSUnlock.h" />
<ClInclude Include="src\user\cheat\visuals\HideUI.h" /> <ClInclude Include="src\user\cheat\visuals\HideUI.h" />
<ClInclude Include="src\user\cheat\visuals\NoFog.h" /> <ClInclude Include="src\user\cheat\visuals\NoFog.h" />
@ -167,6 +168,7 @@
<ClCompile Include="src\user\cheat\GenshinCM.cpp" /> <ClCompile Include="src\user\cheat\GenshinCM.cpp" />
<ClCompile Include="src\user\cheat\visuals\Browser.cpp" /> <ClCompile Include="src\user\cheat\visuals\Browser.cpp" />
<ClCompile Include="src\user\cheat\visuals\CameraZoom.cpp" /> <ClCompile Include="src\user\cheat\visuals\CameraZoom.cpp" />
<ClCompile Include="src\user\cheat\visuals\EnablePeaking.cpp" />
<ClCompile Include="src\user\cheat\visuals\FPSUnlock.cpp" /> <ClCompile Include="src\user\cheat\visuals\FPSUnlock.cpp" />
<ClCompile Include="src\user\cheat\visuals\HideUI.cpp" /> <ClCompile Include="src\user\cheat\visuals\HideUI.cpp" />
<ClCompile Include="src\user\cheat\visuals\NoFog.cpp" /> <ClCompile Include="src\user\cheat\visuals\NoFog.cpp" />

View File

@ -240,6 +240,9 @@
<ClInclude Include="src\user\cheat\world\MusicEvent.h"> <ClInclude Include="src\user\cheat\world\MusicEvent.h">
<Filter>Header Files</Filter> <Filter>Header Files</Filter>
</ClInclude> </ClInclude>
<ClInclude Include="src\user\cheat\visuals\EnablePeaking.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Font Include="res\Ruda-Bold.ttf" /> <Font Include="res\Ruda-Bold.ttf" />
@ -438,6 +441,9 @@
<ClCompile Include="src\user\cheat\world\MusicEvent.cpp"> <ClCompile Include="src\user\cheat\world\MusicEvent.cpp">
<Filter>Source Files</Filter> <Filter>Source Files</Filter>
</ClCompile> </ClCompile>
<ClCompile Include="src\user\cheat\visuals\EnablePeaking.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<ResourceCompile Include="res\res.rc"> <ResourceCompile Include="res\res.rc">

View File

@ -138,6 +138,7 @@ DO_APP_FUNC(0x0292C7F0, void, MoleMole_FishingModule_onFishChosenNotify, (void*
// Visuals // Visuals
DO_APP_FUNC(0x013FC090, void, MoleMole_SCameraModuleInitialize_SetWarningLocateRatio, (SCameraModuleInitialize* __this, double deltaTime, CameraShareData* data, MethodInfo* method)); DO_APP_FUNC(0x013FC090, void, MoleMole_SCameraModuleInitialize_SetWarningLocateRatio, (SCameraModuleInitialize* __this, double deltaTime, CameraShareData* data, MethodInfo* method));
DO_APP_FUNC(0x01B8DC20, void, MoleMole_VCBaseSetDitherValue_set_ManagerDitherAlphaValue, (MoleMole_VCBaseSetDitherValue* __this, float value, MethodInfo* method));
// Chest Indicator | RyujinZX#6666 // Chest Indicator | RyujinZX#6666
DO_APP_FUNC(0x04C9B450, bool, MoleMole_LCIndicatorPlugin_DoCheck, (LCIndicatorPlugin* __this, MethodInfo* method)); DO_APP_FUNC(0x04C9B450, bool, MoleMole_LCIndicatorPlugin_DoCheck, (LCIndicatorPlugin* __this, MethodInfo* method));

View File

@ -11814,6 +11814,40 @@ namespace app {
struct MusicMetaInfo__Fields fields; struct MusicMetaInfo__Fields fields;
}; };
struct MoleMole_VCBaseSetDitherValue__Fields {
void* _;
bool _usingDitherAlpha;
float _ditherAlphaValue;
float _managerDitherAlphaValue;
float _localDitherAlphaValue;
bool IBKAJMBMGAE;
struct MoleMole_VCBaseModel* _modelComponent;
float _showStartDitherDuration;
bool _needStartDitherAction;
float _detectDitherRangeBetweenCameraAndAvatar;
float _detectDitherRangeNormalBetweenCamera;
float _detectDitherRangeNormalBetweenCameraInTimeLine;
bool GCEGGKLBFPG;
struct List_1_MoleMole_BaseDither_* _dithers;
bool _isDitherChangeStarted;
float _spd;
float _fromValue;
float _toValue;
struct Action* _changeFinishHandler;
bool _triggerUpdateDitherShow;
bool _prevUsingDitherAlpha;
float _prevDitherAlphaValue;
float _prevTextureBias;
bool _prevInMotionVectorMode;
bool _isVisible;
};
struct MoleMole_VCBaseSetDitherValue {
struct MoleMole_VCBaseSetDitherValue__Class* klass;
MonitorData* monitor;
struct MoleMole_VCBaseSetDitherValue__Fields fields;
};
#if !defined(_GHIDRA_) && !defined(_IDA_) #if !defined(_GHIDRA_) && !defined(_IDA_)
} }
#endif #endif

View File

@ -47,6 +47,7 @@
#include <cheat/visuals/PaimonFollow.h> #include <cheat/visuals/PaimonFollow.h>
#include <cheat/visuals/HideUI.h> #include <cheat/visuals/HideUI.h>
#include <cheat/visuals/Browser.h> #include <cheat/visuals/Browser.h>
#include <cheat/visuals/EnablePeaking.h>
#include "GenshinCM.h" #include "GenshinCM.h"
@ -105,7 +106,8 @@ namespace cheat
FEAT_INST(ProfileChanger), FEAT_INST(ProfileChanger),
FEAT_INST(PaimonFollow), FEAT_INST(PaimonFollow),
FEAT_INST(HideUI), FEAT_INST(HideUI),
FEAT_INST(Browser) FEAT_INST(Browser),
FEAT_INST(EnablePeaking)
}); });
#undef FEAT_INST #undef FEAT_INST

View File

@ -0,0 +1,52 @@
#include "pch-il2cpp.h"
#include "EnablePeaking.h"
#include <helpers.h>
namespace cheat::feature
{
static void MoleMole_VCBaseSetDitherValue_set_ManagerDitherAlphaValue_Hook(app::MoleMole_VCBaseSetDitherValue* __this, float value, MethodInfo* method);
EnablePeaking::EnablePeaking() : Feature(),
NF(f_Enabled, "Enable Peaking", "Visuals::EnablePeaking", false)
{
HookManager::install(app::MoleMole_VCBaseSetDitherValue_set_ManagerDitherAlphaValue, MoleMole_VCBaseSetDitherValue_set_ManagerDitherAlphaValue_Hook);
}
const FeatureGUIInfo& EnablePeaking::GetGUIInfo() const
{
static const FeatureGUIInfo info{ "EnablePeaking", "Visuals", false };
return info;
}
void EnablePeaking::DrawMain()
{
ConfigWidget(f_Enabled, ";)");
}
bool EnablePeaking::NeedStatusDraw() const
{
return f_Enabled;
}
void EnablePeaking::DrawStatus()
{
ImGui::Text("Enable Peaking");
}
EnablePeaking& EnablePeaking::GetInstance()
{
static EnablePeaking instance;
return instance;
}
static void MoleMole_VCBaseSetDitherValue_set_ManagerDitherAlphaValue_Hook(app::MoleMole_VCBaseSetDitherValue* __this, float value, MethodInfo* method)
{
EnablePeaking& EnablePeaking = EnablePeaking::GetInstance();
if (EnablePeaking.f_Enabled)
value = 1;
CALL_ORIGIN(MoleMole_VCBaseSetDitherValue_set_ManagerDitherAlphaValue_Hook, __this, value, method);
}
}

View File

@ -0,0 +1,25 @@
#pragma once
#include <cheat-base/cheat/Feature.h>
#include <cheat-base/config/config.h>
namespace cheat::feature
{
class EnablePeaking : public Feature
{
public:
config::Field<config::Toggle<Hotkey>> f_Enabled;
static EnablePeaking& GetInstance();
const FeatureGUIInfo& GetGUIInfo() const override;
void DrawMain() override;
virtual bool NeedStatusDraw() const override;
void DrawStatus() override;
private:
EnablePeaking();
};
}