oberien / refunct-tas

Tool for Tool assisted Speedruns for the game Refunct
31 stars 8 forks source link

Practice states don't remove underwater audio effect #287

Closed MiningPie closed 9 months ago

MiningPie commented 1 year ago

https://github.com/oberien/refunct-tas/assets/95598570/9d5d0d80-6034-4194-90d5-ac1095d5f300

Resetting a practice state does not clear the underwater audio effect. In the video above you can hear how the sounds are still muffled until I re-exit the water to clear the effect.

LukeSaward1 commented 1 year ago

I think the only way to do this would be to set the EQ values, which is piss-easy to do. Or I might be able to call a function. Testing the latter rn.

LukeSaward1 commented 1 year ago

I can just disable the underwater EQ entirely to make it consistent across every platform.

LukeSaward1 commented 1 year ago

Well this is the easiest fix of my fucking life.

if class_name == "SoundMix" {
    object.get_field("bApplyEQ").unwrap::<BoolValueWrapper>().set(false);
}

So fucking easy.