Move some patch code to external files

This commit is contained in:
redphx
2024-05-23 06:22:25 +07:00
parent 88df490c50
commit e18e05589a
6 changed files with 52 additions and 48 deletions

View File

@@ -0,0 +1,11 @@
if (!window.BX_ENABLE_CONTROLLER_VIBRATION) {
return void(0);
}
const intensity = window.BX_VIBRATION_INTENSITY;
if (intensity && intensity < 1) {
e.leftMotorPercent *= intensity;
e.rightMotorPercent *= intensity;
e.leftTriggerMotorPercent *= intensity;
e.rightTriggerMotorPercent *= intensity;
}