CreeperMods
Platinian
How to hook m???
Here’s my hook:
Correct???
C#:
public class Player : MonoBehavior
{
// Fields
private float m_baseSpeed; // 0x68
}
Here’s my hook:
C++:
void (*old_m_baseSpeed)(void *instance);
void m_baseSpeed(void *instance) {
if (speed6 > 1) {
*(float *) ((uint32_t) instance + 0x68) = speed6;
}
return old_m_baseSpeed(instance);
}
Correct???