Fabio3rs / Pay-n-Spray-color-picker

Select your car color on Pay 'n' Spray - Grand Theft Auto San Andreas
MIT License
0 stars 0 forks source link

Car is still dirty after respraying. #1

Open vladvo-78 opened 1 month ago

vladvo-78 commented 1 month ago

I think // Dirt level (uint8_t )(playersVeh + 0x4B0) = 0;

should be replaced with

// Dirt level (uint8_t )(playersVeh + 0x4B0) = 0.0;

Fabio3rs commented 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?

vladvo-78 commented 1 month ago

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.