301 {
302 switch (ctrl)
303 {
305 float newValue = 0;
307 {
308 newValue += 0.25;
309 }
310
312 {
313 newValue += 0.25;
314 }
315
317 {
318 newValue += 0.25;
319 }
320
322 {
323 newValue += 0.25;
324 }
325
326 return Math.Clamp(newValue, 0, 1);
327 break;
328 }
329
330 return super.OnSound(ctrl, oldValue);
331 }
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
override int GetCarDoorsState(string slotType)