Facebook
From Big Rhinoceros, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 223
  1. attenuationEffectType = "CarAttenuation"; //Attenuation in interior (Link to Attenuation.hpp in folder SOUNDS_F)
  2.  
  3. soundGetIn[]={"A3\Sounds_F\vehicles\soft\Hatchback_01\Hatchback_01_door",db-5,1};
  4. soundGetOut[]={"A3\Sounds_F\vehicles\soft\Hatchback_01\Hatchback_01_door",db-5,1, 40};
  5. soundDammage[]={"", db-5, 1};
  6. soundEngineOnInt[] = {"AlessioC63\sounds\int_start.wav", db-18, 1.0};
  7. soundEngineOnExt[] = {"AlessioC63\sounds\ext_start.wav", db-1, 1.0, 200};
  8. soundEngineOffInt[] = {"AlessioC63\sounds\int_stop.wav", db-8, 1.0};
  9. soundEngineOffExt[] = {"AlessioC63\sounds\ext_stop.wav", db-7, 1.0, 200};
  10. /* ---- CRASHES START ---- */
  11.  
  12. buildCrash0[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_default_ext_1", db0, 1,200};
  13. buildCrash1[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_default_ext_2", db0, 1,200};
  14. buildCrash2[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_default_ext_3", db0, 1,200};
  15. buildCrash3[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_default_ext_4", db0, 1,200};
  16. soundBuildingCrash[]={buildCrash0, 0.25, buildCrash1, 0.25, buildCrash2, 0.25, buildCrash3, 0.25};
  17.  
  18. WoodCrash0[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_wood_ext_1", db0, 1,200};
  19. WoodCrash1[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_wood_ext_1", db0, 1,200};
  20. WoodCrash2[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_wood_ext_1", db0, 1,200};
  21. WoodCrash3[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_wood_ext_1", db0, 1,200};
  22. soundWoodCrash[]={woodCrash0, 0.25, woodCrash1, 0.25, woodCrash2, 0.25, woodCrash3, 0.25};
  23.  
  24. armorCrash0[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_default_ext_1", db0, 1,200};
  25. armorCrash1[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_default_ext_2", db0, 1,200};
  26. armorCrash2[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_default_ext_3", db0, 1,200};
  27. armorCrash3[]={"A3\Sounds_F\vehicles\crashes\cars\cars_coll_big_default_ext_4", db0, 1,200};
  28. soundArmorCrash[]={ArmorCrash0, 0.25, ArmorCrash1, 0.25, ArmorCrash2, 0.25, ArmorCrash3, 0.25};
  29.  
  30. /* ---- CRASHES  END ---- */
  31.  
  32. class Sounds
  33. {
  34.  
  35.         // warp factor
  36.         #define FACTOR(val,from,to)     (val factor[from,to])
  37.         // RANGE(val,   begin, band, end,       band)
  38.         #define RANGE(val,from,band0,to,band1) FACTOR2(val,from,(from+band0),to,(to+band1))
  39.         // FACTOR2(val, 0, 400, 1200,   2000)
  40.         #define FACTOR2(val,from0,to0,from1,to1) (FACTOR(val,from0,to0) *       FACTOR(val,to1,from1))
  41.  
  42.         // redRpm
  43.         #define MAX_RPM 6900
  44.         // scaled       rpm     to 0 - 1
  45.         #define RPM(rpm) (rpm/MAX_RPM)
  46.  
  47.         // specialized FACTOR for rpm
  48.         #define FACTOR_RPM(from,to)     FACTOR(RPM(rpm),RPM(from),RPM(to))
  49.         // specialized peak     for     rpm
  50.         #define FACTOR2_RPM(from0,to0,from1,to1) (FACTOR_RPM(from0,to0) *       FACTOR_RPM(to1,from1))
  51.         // specialized peak, different definition, version for rpm
  52.         #define RANGE_RPM(from,band0,to,band1) FACTOR2_RPM(from,(from+band0),to,(to+band1))
  53.  
  54.  
  55.         #define HZ_IDLE FACTOR_RPM(400,1150)
  56.         #define HZ_RPM1 FACTOR_RPM(900,2100)
  57.         #define HZ_RPM2 FACTOR_RPM(1300,3100)
  58.         #define HZ_RPM3 FACTOR_RPM(2200,4100)
  59.         #define HZ_RPM4 FACTOR_RPM(3300,4900)
  60.         #define HZ_RPM5 FACTOR_RPM(4200,6200)
  61.         #define HZ_RPM6 FACTOR_RPM(5100,6900)
  62.  
  63.         #define VOLUME_IDLE FACTOR2_RPM(400,700,900,1100)
  64.         #define VOLUME_RPM1 FACTOR2_RPM(870,1100,1300,2100)
  65.         #define VOLUME_RPM2 FACTOR2_RPM(1250,2050,2300,3100)
  66.         #define VOLUME_RPM3 FACTOR2_RPM(2250,3050,3300,4100)
  67.         #define VOLUME_RPM4 FACTOR2_RPM(3250,4050,4200,4870)
  68.         #define VOLUME_RPM5 FACTOR2_RPM(4150,4800,5150,6150)
  69.         #define VOLUME_RPM6 FACTOR_RPM(5100,6100)
  70.  
  71.         /*              hatchback external sounds without gas    */
  72.  
  73.         class Idle_ext
  74.         {
  75.                 sound[] =       {"AlessioC63\sounds\ext_idle.wav", db-1,        1, 150};
  76.                 frequency       =       0.9     +       HZ_IDLE*0.2;
  77.                 volume = engineOn*camPos*VOLUME_IDLE;
  78.         };
  79.         class Engine
  80.         {
  81.                 sound[] =       {"AlessioC63\sounds\ext_1000.wav",      db-11,1, 200};
  82.                 frequency       =       0.8     +       HZ_RPM1*0.2;
  83.                 volume = engineOn*camPos*VOLUME_RPM1;
  84.         };
  85.         class Engine1_ext
  86.         {
  87.                 sound[] =       {"AlessioC63\sounds\ext_2000.wav",      db-9,1, 240};
  88.                 frequency       =       0.8     +       HZ_RPM2*0.2;
  89.                 volume = engineOn*camPos*VOLUME_RPM2;
  90.         };
  91.         class Engine2_ext
  92.         {
  93.                 sound[] =       {"AlessioC63\sounds\ext_3000.wav",      db-8,1, 280};
  94.                 frequency       =       0.8     +       HZ_RPM3*0.2;
  95.                 volume = engineOn*camPos*VOLUME_RPM3;
  96.         };
  97.         class Engine3_ext
  98.         {
  99.                 sound[] =       {"AlessioC63\sounds\ext_4000.wav",      db-7,1, 320};
  100.                 frequency       =       0.8     +       HZ_RPM4*0.2;
  101.                 volume = engineOn*camPos*VOLUME_RPM4;
  102.         };
  103.         class Engine4_ext
  104.         {
  105.                 sound[] =       {"AlessioC63\sounds\ext_5000.wav",      db-6,1, 360};
  106.                 frequency       =       0.8     +       HZ_RPM5*0.2;
  107.                 volume = engineOn*camPos*VOLUME_RPM5;
  108.         };
  109.         class Engine5_ext
  110.         {
  111.                 sound[] =       {"AlessioC63\sounds\ext_6000.wav",      db-5,1, 420};
  112.                 frequency       =       0.95    +       HZ_RPM6*0.15;
  113.                 volume = engineOn*camPos*VOLUME_RPM6;
  114.         };
  115.         class Engine6_ext
  116.         {
  117.                 sound[] =       {"AlessioC63\sounds\ext_7000.wav",      db-4,1, 420};
  118.                 frequency       =       0.95    +       HZ_RPM6*0.15;
  119.                 volume = engineOn*camPos*VOLUME_RPM6;
  120.         };
  121.  
  122.                 /*   hatchback external sounds with gas  */
  123.  
  124.         class IdleThrust
  125.         {
  126.         sound[] = {"AlessioC63\sounds\ext_1000.wav", db-6,1, 200};
  127.                 frequency       =       0.9     +       HZ_IDLE*0.2;
  128.                 volume = engineOn*camPos*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_IDLE;
  129.         };
  130.         class EngineThrust
  131.         {
  132.         sound[] = {"AlessioC63\sounds\ext_2000.wav", db-5,1, 250};
  133.                 frequency       =       0.8     +       HZ_RPM1*0.2;
  134.                 volume = engineOn*camPos*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM1;
  135.         };
  136.         class Engine1_Thrust_ext
  137.         {
  138.         sound[] = {"AlessioC63\sounds\ext_3000.wav", db-4,1, 280};
  139.                 frequency       =       0.8     +       HZ_RPM2*0.2;
  140.                 volume = engineOn*camPos*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM2;
  141.         };
  142.         class Engine2_Thrust_ext
  143.         {
  144.         sound[] = {"AlessioC63\sounds\ext_4000.wav", db-3,1, 320};
  145.                 frequency       =       0.8     +       HZ_RPM3*0.2;
  146.                 volume = engineOn*camPos*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM3;
  147.         };
  148.         class Engine3_Thrust_ext
  149.         {
  150.         sound[] = {"AlessioC63\sounds\ext_5000.wav", db-2,1, 360};
  151.                 frequency       =       0.8     +       HZ_RPM4*0.2;
  152.                 volume = engineOn*camPos*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM4;
  153.         };
  154.         class Engine4_Thrust_ext
  155.         {
  156.         sound[] = {"AlessioC63\sounds\ext_6000.wav", db0,1, 400};
  157.                 frequency       =       0.8     +       HZ_RPM5*0.3;
  158.                 volume = engineOn*camPos*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM5;
  159.         };
  160.         class Engine5_Thrust_ext
  161.         {
  162.         sound[] = {"AlessioC63\sounds\ext_7000.wav", db2,1, 450};
  163.                 frequency       =       0.9     +       HZ_RPM6*0.2;
  164.                 volume = engineOn*camPos*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM6;
  165.         };
  166.  
  167.         /*  end external sounds with gas */
  168.  
  169.         /* hatchback internal sounds without gas */
  170.  
  171.         class Idle_int
  172.         {
  173.                 sound[] =       {"AlessioC63\sounds\int_idle.wav", db-15,       1};
  174.                 frequency       =       0.9     +       HZ_IDLE*0.2;
  175.                 volume = engineOn*(1-camPos)*VOLUME_IDLE;
  176.         };
  177.         class Engine_int
  178.         {
  179.                 sound[] =       {"AlessioC63\sounds\int_1000.wav",      db-14,1 };
  180.                 frequency       =       0.8     +       HZ_RPM1*0.2;
  181.                 volume = engineOn*(1-camPos)*VOLUME_RPM1;
  182.         };
  183.         class Engine1_int
  184.         {
  185.                 sound[] =       {"AlessioC63\sounds\int_2000.wav",      db-12,1 };
  186.                 frequency       =       0.8     +       HZ_RPM2*0.2;
  187.                 volume = engineOn*(1-camPos)*VOLUME_RPM2;
  188.         };
  189.         class Engine2_int
  190.         {
  191.                 sound[] =       {"AlessioC63\sounds\int_3000.wav",      db-11,1 };
  192.                 frequency       =       0.8     +       HZ_RPM3*0.2;
  193.                 volume = engineOn*(1-camPos)*VOLUME_RPM3;
  194.         };
  195.         class Engine3_int
  196.         {
  197.                 sound[] =       {"AlessioC63\sounds\int_4000.wav",      db-10,1 };
  198.                 frequency       =       0.8     +       HZ_RPM4*0.2;
  199.                 volume = engineOn*(1-camPos)*VOLUME_RPM4;
  200.         };
  201.         class Engine4_int
  202.         {
  203.                 sound[] =       {"AlessioC63\sounds\int_5000.wav",      db-9,1 };
  204.                 frequency       =       0.8     +       HZ_RPM5*0.2;
  205.                 volume = engineOn*(1-camPos)*VOLUME_RPM5;
  206.         };
  207.         class Engine5_int
  208.         {
  209.                 sound[] =       {"AlessioC63\sounds\int_6000.wav",      db-6,1 };
  210.                 frequency       =       0.95    +       HZ_RPM6*0.15;
  211.                 volume = engineOn*(1-camPos)*VOLUME_RPM6;
  212.         };
  213.         class Engine6_int
  214.         {
  215.                 sound[] =       {"AlessioC63\sounds\int_7000.wav",      db-5,1 };
  216.                 frequency       =       0.95    +       HZ_RPM6*0.15;
  217.                 volume = engineOn*(1-camPos)*VOLUME_RPM6;
  218.         };
  219.  
  220.                 /* hatchback internal sounds with gas */
  221.  
  222.         class IdleThrust_int
  223.         {
  224.         sound[] = {"AlessioC63\sounds\int_idle.wav", db-10,1 };
  225.                 frequency       =       0.9     +       HZ_IDLE*0.2;
  226.                 volume = engineOn*(1-camPos)*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_IDLE;
  227.         };
  228.         class EngineThrust_int
  229.         {
  230.         sound[] = {"AlessioC63\sounds\int_1000.wav", db-9,1 };
  231.                 frequency       =       0.8     +       HZ_RPM1*0.2;
  232.                 volume = engineOn*(1-camPos)*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM1;
  233.         };
  234.         class Engine1_Thrust_int
  235.         {
  236.         sound[] = {"AlessioC63\sounds\int_2000.wav", db-8,1 };
  237.                 frequency       =       0.8     +       HZ_RPM2*0.2;
  238.                 volume = engineOn*(1-camPos)*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM2;
  239.         };
  240.         class Engine2_Thrust_int
  241.         {
  242.         sound[] = {"AlessioC63\sounds\int_3000.wav", db-7,1 };
  243.                 frequency       =       0.8     +       HZ_RPM3*0.2;
  244.                 volume = engineOn*(1-camPos)*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM3;
  245.         };
  246.         class Engine3_Thrust_int
  247.         {
  248.         sound[] = {"AlessioC63\sounds\int_4000.wav", db-6,1 };
  249.                 frequency       =       0.8     +       HZ_RPM4*0.2;
  250.                 volume = engineOn*(1-camPos)*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM4;
  251.         };
  252.         class Engine4_Thrust_int
  253.         {
  254.         sound[] = {"AlessioC63\sounds\int_5000.wav", db-5,1 };
  255.                 frequency       =       0.8     +       HZ_RPM5*0.3;
  256.                 volume = engineOn*(1-camPos)*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM5;
  257.         };
  258.         class Engine5_Thrust_int
  259.         {
  260.         sound[] = {"AlessioC63\sounds\int_6000.wav", db-4,1 };
  261.                 frequency       =       0.9     +       HZ_RPM6*0.2;
  262.                 volume = engineOn*(1-camPos)*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM6;
  263.         };
  264.         class Engine6_Thrust_int
  265.         {
  266.         sound[] = {"AlessioC63\sounds\int_7000.wav", db-4,1 };
  267.                 frequency       =       0.9     +       HZ_RPM6*0.2;
  268.                 volume = engineOn*(1-camPos)*(0.4+(0.6*FACTOR(thrust,0.1,1)))*VOLUME_RPM6;
  269.         };
  270.         class Movement
  271.         {
  272.                 sound   =       "soundEnviron";
  273.                 frequency       =       "1";
  274.                 volume = "0";
  275.         };
  276.                 /*  end internal sounds with gas */
  277.  
  278.  
  279.         /*----------------------------------*/
  280.         /*-----------  TIRES EXT ---------*/
  281.         /*----------------------------------*/
  282.  
  283.         class TiresRockOut
  284.         {
  285.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\ext_tires_dirt_soft_1", db-6, 1.0, 60};
  286.                 frequency = "1";
  287.                 volume = "camPos*rock*(speed factor[2, 20])";
  288.         };
  289.         class TiresSandOut
  290.         {
  291.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\ext-tires-sand1", db-6, 1.0, 60};
  292.                 frequency = "1";
  293.                 volume = "camPos*sand*(speed factor[2, 20])";
  294.         };
  295.         class TiresGrassOut
  296.         {
  297.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\ext_tires_dirt_soft_2", db-6, 1.0, 60};
  298.                 frequency = "1";
  299.                 volume = "camPos*grass*(speed factor[2, 20])";
  300.         };
  301.         class TiresMudOut
  302.         {
  303.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\ext-tires-mud2", db-6, 1.0, 60};
  304.                 frequency = "1";
  305.                 volume = "camPos*mud*(speed factor[2, 20])";
  306.         };
  307.         class TiresGravelOut
  308.         {
  309.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\ext_tires_gravel_1", db-6, 1.0, 60};
  310.                 frequency = "1";
  311.                 volume = "camPos*gravel*(speed factor[2, 20])";
  312.         };
  313.         class TiresAsphaltOut
  314.         {
  315.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\ext_tires_asfalt_2", db-6, 1.0, 60};
  316.                 frequency = "1";
  317.                 volume = "camPos*asphalt*(speed factor[2, 20])";
  318.         };
  319.         class NoiseOut
  320.         {
  321.                 sound[] = {"A3\Sounds_F\vehicles\soft\noises\noise_ext_car_3", db-8, 1.0, 90};
  322.                 frequency = "1";
  323.                 volume = "camPos*(damper0 max 0.02)*(speed factor[0, 8])";
  324.         };
  325.  
  326.         /*----------------------------------*/
  327.         /*-----------  TIRES INT ---------*/
  328.         /*----------------------------------*/
  329.  
  330.         class TiresRockIn
  331.         {
  332.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\int_tires_dirt_soft_1", db-6, 1.0};
  333.                 frequency = "1";
  334.                 volume = "(1-camPos)*rock*(speed factor[2, 20])";
  335.         };
  336.         class TiresSandIn
  337.         {
  338.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\int-tires-sand2", db-6, 1.0};
  339.                 frequency = "1";
  340.                 volume = "(1-camPos)*sand*(speed factor[2, 20])";
  341.         };
  342.         class TiresGrassIn
  343.         {
  344.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\int_tires_dirt_soft_2", db-6, 1.0};
  345.                 frequency = "1";
  346.                 volume = "(1-camPos)*grass*(speed factor[2, 20])";
  347.         };
  348.         class TiresMudIn
  349.         {
  350.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\int-tires-mud2", db-6, 1.0};
  351.                 frequency = "1";
  352.                 volume = "(1-camPos)*mud*(speed factor[2, 20])";
  353.         };
  354.         class TiresGravelIn
  355.         {
  356.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\int_tires_gravel_1", db-6, 1.0};
  357.                 frequency = "1";
  358.                 volume = "(1-camPos)*gravel*(speed factor[2, 20])";
  359.         };
  360.         class TiresAsphaltIn
  361.         {
  362.                 sound[] = {"A3\Sounds_F\vehicles\soft\tires\int_tires_asfalt_2", db-6, 1.0};
  363.                 frequency = "1";
  364.                 volume = "(1-camPos)*asphalt*(speed factor[2, 20])";
  365.         };
  366.         class NoiseIn
  367.         {
  368.                 sound[] = {"A3\Sounds_F\vehicles\soft\noises\noise_int_car_3", db-12, 1.0};
  369.                 frequency = "1";
  370.                 volume = "(damper0 max 0.1)*(speed factor[0, 8])*(1-camPos)"; //Definition of inside sounds
  371.         };
  372.  
  373.         /*------------------------------------------------------------------*/
  374.         /*-------------- external sounds for screeching tires on the road -------------*/
  375.         /*------------------------------------------------------------------*/
  376.  
  377.         /* sounds on the road */
  378.  
  379.         class breaking_ext_road
  380.         {
  381.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_loop_04", db-3, 1, 80};
  382.                 frequency       =       1;
  383.                 volume = engineOn*camPos*asphalt*(LongSlipDrive Factor[-0.1, -0.4])*(Speed Factor[2, 15]);
  384.         };
  385.  
  386.         class acceleration_ext_road
  387.         {
  388.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_loop_02", db-3, 1, 80};
  389.                 frequency       =       1;
  390.                 volume = engineOn*camPos*asphalt*(LongSlipDrive Factor[0.1, 0.4])*(Speed Factor[15, 2]);
  391.         };
  392.         class turn_left_ext_road
  393.         {
  394.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_loop_02", db-3, 1, 80};
  395.                 frequency       =       1;
  396.                 volume = engineOn*camPos*asphalt*(latSlipDrive Factor[0.1, 0.4])*(Speed Factor[2, 15]);
  397.         };
  398.  
  399.         class turn_right_ext_road
  400.         {
  401.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_loop_02", db-3, 1, 80};
  402.                 frequency       =       1;
  403.                 volume = engineOn*camPos*asphalt*(latSlipDrive Factor[-0.1, -0.4])*(Speed Factor[2, 15]);
  404.         };
  405.  
  406.         /*-----------------------------------------------------------------*/
  407.         /* external sounds for screeching tires on other surfaces  */
  408.         /*-----------------------------------------------------------------*/
  409.  
  410.         class breaking_ext_dirt
  411.         {
  412.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_14_dirt_breaking", db-3, 1, 60};
  413.                 frequency       =       1;
  414.                 volume = engineOn*camPos*(1-asphalt)*(LongSlipDrive Factor[-0.1, -0.4])*(Speed Factor[1, 15]);
  415.         };
  416.         class acceleration_ext_dirt
  417.         {
  418.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_16_dirt_acceleration", db-3,  1, 60};
  419.                 frequency       =       1;
  420.                 volume = engineOn*camPos*(1-asphalt)*(LongSlipDrive Factor[0.1, 0.4])*(Speed Factor[15, 1]);
  421.         };
  422.         class turn_left_ext_dirt
  423.         {
  424.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_18_dirt", db-3, 1, 60};
  425.                 frequency       =       1;
  426.                 volume = engineOn*camPos*(1-asphalt)*(latSlipDrive Factor[0.1, 0.4])*(Speed Factor[1, 15]);
  427.         };
  428.         class turn_right_ext_dirt
  429.         {
  430.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_18_dirt", db-3, 1, 60};
  431.                 frequency       =       1;
  432.                 volume = engineOn*camPos*(1-asphalt)*(latSlipDrive Factor[-0.1, -0.4])*(Speed Factor[1, 15]);
  433.         };
  434.  
  435.  
  436.         /*---------------------------------------------------------------------------*/
  437.         /*-------------- internal sounds for screeching tires on the road --------------*/
  438.         /*---------------------------------------------------------------------------*/
  439.  
  440.         class breaking_int_road
  441.         {
  442.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_loop_04_int", db-10, 1};
  443.                 frequency       =       1;
  444.                 volume = engineOn*asphalt*(1-camPos)*(LongSlipDrive Factor[-0.1, -0.4])*(Speed Factor[2, 15]);
  445.         };
  446.         class acceleration_int_road
  447.         {
  448.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_loop_02_int", db-10, 1};
  449.                 frequency       =       1;
  450.                 volume = engineOn*asphalt*(1-camPos)*(LongSlipDrive Factor[0.1, 0.4])*(Speed Factor[15, 2]);
  451.         };
  452.         class turn_left_int_road
  453.         {
  454.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_loop_02_int", db-10, 1};
  455.                 frequency       =       1;
  456.                 volume = engineOn*asphalt*(1-camPos)*(latSlipDrive Factor[0.1, 0.4])*(Speed Factor[2, 15]);
  457.         };
  458.         class turn_right_int_road
  459.         {
  460.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_loop_02_int", db-10, 1};
  461.                 frequency       =       1;
  462.                 volume = engineOn*asphalt*(1-camPos)*(latSlipDrive Factor[-0.1, -0.4])*(Speed Factor[2, 15]);
  463.         };
  464.  
  465.         /*--------------------------------------------------------------------------------------------*/
  466.         /*-------------- internal sounds for screeching tires on other surfaces -------------*/
  467.         /*--------------------------------------------------------------------------------------------*/
  468.         class breaking_int_dirt
  469.         {
  470.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_14_dirt_breaking_int", db-10, 1};
  471.                 frequency       =       1;
  472.                 volume = engineOn*(1-asphalt)*(1-camPos)*(LongSlipDrive Factor[-01, -0.4])*(Speed Factor[2, 15]);
  473.         };
  474.         class acceleration_int_dirt
  475.         {
  476.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_16_dirt_acceleration_int", db-10, 1};
  477.                 frequency       =       1;
  478.                 volume = engineOn*(1-asphalt)*(1-camPos)*(LongSlipDrive Factor[0.1, 0.4])*(Speed Factor[15, 2]);
  479.         };
  480.         class turn_left_int_dirt
  481.         {
  482.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_18_dirt_int", db-10,  1};
  483.                 frequency       =       1;
  484.                 volume = engineOn*(1-asphalt)*(1-camPos)*(latSlipDrive Factor[0.1, 0.4])*(Speed Factor[2, 15]);
  485.         };
  486.         class turn_right_int_dirt
  487.         {
  488.                 sound[] =       {"A3\Sounds_F\vehicles\soft\noises\slipping_tires_18_dirt_int", db-10,  1};
  489.                 frequency       =       1;
  490.                 volume = engineOn*(1-asphalt)*(1-camPos)*(latSlipDrive Factor[-0.1, -0.4])*(Speed Factor[2, 15]);
  491.         };
  492. };
  493.