Solved Method offset Hooking help

Status
Not open for further replies.

Aciloc

Platinian
// RVA: 0x3233e88 VA: 0x7b47c5ee88
public ObscuredFloat get_ReloadTimeMax() { }

Any idea how to make this work
 
float yourValue = 0.0001f;

float (*old_RTM)(void* instance);
float RTM(void* instance){
if (instance != nullptr){
return yourValue;
}
old_RTM(instance);
}

Use MSHookFunction/A64HookFunction to hook your method offset.
 
float yourValue = 0.0001f;

float (*old_RTM)(void* instance);
float RTM(void* instance){
if (instance != nullptr){
return yourValue;
}
old_RTM(instance);
}

Use MSHookFunction/A64HookFunction to hook your method offset.
Won't work. There's a difference between Float and ObscuredFloat. The latter's value is encrypted, though I recall that there's a template online to work with it.
 
this is ObscuredFloat Struct
Inherits IFormattable, IEquatable< ObscuredFloat >, IEquatable< float >, IComparable< ObscuredFloat >, IComparable< float >, IComparable, IObscuredType, ISerializableObscuredType, and ISerializationCallbackReceiver.
so,
Public Member Functions
int GetEncrypted (out int key)
void SetEncrypted (int encrypted, int key)
float GetDecrypted ()
void RandomizeCryptoKey ()
and the static is :
Static Public Member Functions
static int Encrypt (float value, int key)
static float Decrypt (int value, int key)
static ObscuredFloat FromEncrypted (int encrypted, int key)
static int GenerateKey ()

the function Encrypt()
Code:
Encrypt()
static int Encrypt    (    float     value,
int     key
)

which simply Encrypts passed value using passed key.
Key can be generated automatically using GenerateKey().
Code:
 Decrypt()
static float Decrypt    (    int     value,
int     key
)

Decrypts passed value you got from Encrypt() using same key.
so to explain more, you will need to create a struct for it , and hook it with that new struct,
for more info , go to the main website of them
 
This thread will be set to "solved" and the thread will be locked.
If you feel like that the answers you got are not solving your problem or answering your question, please feel free to contact me and I'll re-open this thread for you.
 
Status
Not open for further replies.
Back
Top Bottom