323 {
324 switch ( ctrl )
325 {
327 float newValue = 0;
329 {
330 newValue += 0.25;
331 }
332
334 {
335 newValue += 0.25;
336 }
337
339 {
340 newValue += 0.25;
341 }
342
344 {
345 newValue += 0.25;
346 }
347
348 return Math.Clamp(newValue, 0, 1);
349 break;
350 }
351
352 return super.OnSound(ctrl, oldValue);
353 }
CarSoundCtrl
Car's sound controller list. (native, do not change or extend)
override int GetCarDoorsState(string slotType)