Open vladvo-78 opened 1 month ago
Thanks. But I am not sure, this is an 1 byte value, so it is from 0 to 255, a normal float is 4 bytes
Maybe it is the size/type that is wrong?
IDA shows this : 0x4B0 m_fDirtLevel dd ? ; 0.0 - 15.0 In one of my mods I used float value. It worked perfectly and IDA shows it as "dd" as well.
I think // Dirt level (uint8_t )(playersVeh + 0x4B0) = 0;
should be replaced with
// Dirt level (uint8_t )(playersVeh + 0x4B0) = 0.0;