Advertisement
Traggered

Doubled siren invehicle

Sep 20th, 2024 (edited)
112
0
302 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 7.39 KB | Gaming | 0 0
  1. class CfgVehicles
  2. {
  3.     class Car_F;
  4.     class Offroad_01_base_F: Car_F
  5.     {
  6.         class Sounds
  7.         {
  8.             soundSets[]=
  9.             {
  10.                 "Van_02_PoliceSiren_01_Ext_SoundSet",
  11.                 "Van_02_PoliceSiren_01_Int_SoundSet"
  12.             };
  13.             soundSetsInt[]=
  14.             {
  15.                 "Offroad_01_Engine_RPM0_INT_SoundSet",
  16.                 "Offroad_01_Engine_RPM1_INT_SoundSet",
  17.                 "Offroad_01_Engine_RPM2_INT_SoundSet",
  18.                 "Offroad_01_Engine_RPM3_INT_SoundSet",
  19.                 "Offroad_01_Engine_RPM4_INT_SoundSet",
  20.                 "Offroad_01_Rattling_INT_SoundSet",
  21.                 "Offroad_01_Stress_INT_SoundSet",
  22.                 "Offroad_01_Rain_INT_SoundSet",
  23.                 "Offroad_01_Tires_Rock_Fast_OPEN_SoundSet",
  24.                 "Offroad_01_Tires_Grass_Fast_OPEN_SoundSet",
  25.                 "Offroad_01_Tires_Sand_Fast_OPEN_SoundSet",
  26.                 "Offroad_01_Tires_Gravel_Fast_OPEN_SoundSet",
  27.                 "Offroad_01_Tires_Mud_Fast_OPEN_SoundSet",
  28.                 "Offroad_01_Tires_Asphalt_Fast_OPEN_SoundSet",
  29.                 "Offroad_01_Tires_Water_Fast_OPEN_SoundSet",
  30.                 "Offroad_01_Tires_Rock_Slow_OPEN_SoundSet",
  31.                 "Offroad_01_Tires_Grass_Slow_OPEN_SoundSet",
  32.                 "Offroad_01_Tires_Sand_Slow_OPEN_SoundSet",
  33.                 "Offroad_01_Tires_Gravel_Slow_OPEN_SoundSet",
  34.                 "Offroad_01_Tires_Mud_Slow_OPEN_SoundSet",
  35.                 "Offroad_01_Tires_Asphalt_Slow_OPEN_SoundSet",
  36.                 "Offroad_01_Tires_Water_Slow_OPEN_SoundSet",
  37.                 "Offroad_01_Tires_Turn_Hard_OPEN_SoundSet",
  38.                 "Offroad_01_Tires_Turn_Soft_OPEN_SoundSet",
  39.                 "Offroad_01_Tires_Brake_Hard_OPEN_SoundSet",
  40.                 "Offroad_01_Tires_Brake_Soft_OPEN_SoundSet",
  41.                 "",
  42.                 "Tires_Movement_Dirt_Int_01_SoundSet"/* ,
  43.                 "Van_02_PoliceSiren_01_Int_SoundSet" */
  44.             };
  45.             soundSetsExt[]=
  46.             {
  47.                 "Offroad_01_Engine_RPM0_EXT_SoundSet",
  48.                 "Offroad_01_Engine_RPM1_EXT_SoundSet",
  49.                 "Offroad_01_Engine_RPM2_EXT_SoundSet",
  50.                 "Offroad_01_Engine_RPM3_EXT_SoundSet",
  51.                 "Offroad_01_Engine_RPM4_EXT_SoundSet",
  52.                 "Offroad_01_Rattling_EXT_SoundSet",
  53.                 "Offroad_01_Stress_EXT_SoundSet",
  54.                 "Offroad_01_Rain_EXT_SoundSet",
  55.                 "Offroad_01_Tires_Rock_Fast_EXT_SoundSet",
  56.                 "Offroad_01_Tires_Grass_Fast_EXT_SoundSet",
  57.                 "Offroad_01_Tires_Sand_Fast_EXT_SoundSet",
  58.                 "Offroad_01_Tires_Gravel_Fast_EXT_SoundSet",
  59.                 "Offroad_01_Tires_Mud_Fast_EXT_SoundSet",
  60.                 "Offroad_01_Tires_Asphalt_Fast_EXT_SoundSet",
  61.                 "Offroad_01_Tires_Water_Fast_EXT_SoundSet",
  62.                 "Offroad_01_Tires_Rock_Slow_EXT_SoundSet",
  63.                 "Offroad_01_Tires_Grass_Slow_EXT_SoundSet",
  64.                 "Offroad_01_Tires_Sand_Slow_EXT_SoundSet",
  65.                 "Offroad_01_Tires_Gravel_Slow_EXT_SoundSet",
  66.                 "Offroad_01_Tires_Mud_Slow_EXT_SoundSet",
  67.                 "Offroad_01_Tires_Asphalt_Slow_EXT_SoundSet",
  68.                 "Offroad_01_Tires_Water_Slow_EXT_SoundSet",
  69.                 "Offroad_01_Tires_Turn_Hard_EXT_SoundSet",
  70.                 "Offroad_01_Tires_Turn_Soft_EXT_SoundSet",
  71.                 "Offroad_01_Tires_Brake_Hard_EXT_SoundSet",
  72.                 "Offroad_01_Tires_Brake_Soft_EXT_SoundSet",
  73.                 "",
  74.                 "Tires_Movement_Dirt_Ext_01_SoundSet"/* ,
  75.                 "Van_02_PoliceSiren_01_Ext_SoundSet" */
  76.             };
  77.         };
  78.     };
  79.     class Truck_F;
  80.     class Van_02_base_F: Truck_F
  81.     {
  82.         class Sounds
  83.         {
  84.             soundSets[]=
  85.             {
  86.                 "Van_02_PoliceSiren_01_Int_SoundSet",
  87.                 "Van_02_PoliceSiren_01_Ext_SoundSet"
  88.             };
  89.             soundSetsInt[]=
  90.             {
  91.                 "Van_02_Eng_01_Idle_Int_SoundSet",
  92.                 "Van_02_Eng_01_Rpm_01_Int_SoundSet",
  93.                 "Van_02_Eng_01_Rpm_02_Int_SoundSet",
  94.                 "Van_02_Eng_01_Rpm_03_Int_SoundSet",
  95.                 "Van_02_Eng_01_Rpm_04_Int_SoundSet",
  96.                 "Van_02_Eng_01_Rpm_05_Int_SoundSet",
  97.                 "Van_02_Noise_Hard_01_Int_SoundSet",
  98.                 "Van_02_Tires_Gravel_01_Int_SoundSet",
  99.                 "Van_02_Tires_Asphalt_01_Int_SoundSet",
  100.                 "Van_02_Tires_Grass_Mud_01_Int_SoundSet",
  101.                 "Van_02_Tires_Sand_01_Int_SoundSet",
  102.                 "Van_02_Tires_Rock_01_Int_SoundSet",
  103.                 "Van_02_Tires_Water_01_Int_SoundSet",
  104.                 "Van_02_Brakes_Asphalt_01_Int_SoundSet",
  105.                 "Van_02_TurnLeft_Asphalt_01_Int_SoundSet",
  106.                 "Van_02_TurnRight_Asphalt_01_Int_SoundSet",
  107.                 "Van_02_Brakes_Dirt_01_Int_SoundSet",
  108.                 "Van_02_Tires_Movement_Dirt_Int_01_SoundSet",
  109.                 "Van_02_Rain_01_Int_SoundSet"/* ,
  110.                 "Van_02_PoliceSiren_01_Int_SoundSet" */
  111.             };
  112.             soundSetsExt[]=
  113.             {
  114.                 "Van_02_Eng_01_Idle_Ext_SoundSet",
  115.                 "Van_02_Eng_01_Rpm_01_Ext_SoundSet",
  116.                 "Van_02_Eng_01_Rpm_02_Ext_SoundSet",
  117.                 "Van_02_Eng_01_Rpm_03_Ext_SoundSet",
  118.                 "Van_02_Eng_01_Rpm_04_Ext_SoundSet",
  119.                 "Van_02_Eng_01_Rpm_05_Ext_SoundSet",
  120.                 "Van_02_Tires_Gravel_01_Ext_SoundSet",
  121.                 "Van_02_Tires_Asphalt_01_Ext_SoundSet",
  122.                 "Van_02_Tires_Grass_Mud_01_Ext_SoundSet",
  123.                 "Van_02_Tires_Sand_01_Ext_SoundSet",
  124.                 "Van_02_Tires_Rock_01_Ext_SoundSet",
  125.                 "Van_02_Tires_Water_01_Ext_SoundSet",
  126.                 "Van_02_Brakes_Asphalt_01_Ext_SoundSet",
  127.                 "Van_02_TurnLeft_Asphalt_01_Ext_SoundSet",
  128.                 "Van_02_TurnRight_Asphalt_01_Ext_SoundSet",
  129.                 "Van_02_Brakes_Dirt_01_Ext_SoundSet",
  130.                 "Van_02_TurnLeft_Dirt_01_Ext_SoundSet",
  131.                 "Van_02_TurnRight_Dirt_01_Ext_SoundSet",
  132.                 "Van_02_Tires_Movement_Dirt_Ext_01_SoundSet",
  133.                 "Van_02_Rain_01_Ext_SoundSet"/* ,
  134.                 "Van_02_PoliceSiren_01_Ext_SoundSet" */
  135.             };
  136.         };
  137.     };
  138.     class Van_02_medevac_base_F: Van_02_base_F
  139.     {
  140.         class Sounds
  141.         {
  142.             soundSets[]=
  143.             {
  144.                 "Van_02_AmbulanceSiren_01_Int_SoundSet",
  145.                 "Van_02_AmbulanceSiren_01_Ext_SoundSet"
  146.             };
  147.             soundSetsInt[]=
  148.             {
  149.                 "Van_02_Eng_01_Idle_Int_SoundSet",
  150.                 "Van_02_Eng_01_Rpm_01_Int_SoundSet",
  151.                 "Van_02_Eng_01_Rpm_02_Int_SoundSet",
  152.                 "Van_02_Eng_01_Rpm_03_Int_SoundSet",
  153.                 "Van_02_Eng_01_Rpm_04_Int_SoundSet",
  154.                 "Van_02_Eng_01_Rpm_05_Int_SoundSet",
  155.                 "Van_02_Noise_Hard_01_Int_SoundSet",
  156.                 "Van_02_Tires_Gravel_01_Int_SoundSet",
  157.                 "Van_02_Tires_Asphalt_01_Int_SoundSet",
  158.                 "Van_02_Tires_Grass_Mud_01_Int_SoundSet",
  159.                 "Van_02_Tires_Sand_01_Int_SoundSet",
  160.                 "Van_02_Tires_Rock_01_Int_SoundSet",
  161.                 "Van_02_Tires_Water_01_Int_SoundSet",
  162.                 "Van_02_Brakes_Asphalt_01_Int_SoundSet",
  163.                 "Van_02_TurnLeft_Asphalt_01_Int_SoundSet",
  164.                 "Van_02_TurnRight_Asphalt_01_Int_SoundSet",
  165.                 "Van_02_Brakes_Dirt_01_Int_SoundSet",
  166.                 "Van_02_Tires_Movement_Dirt_Int_01_SoundSet",
  167.                 "Van_02_Rain_01_Int_SoundSet"/* ,
  168.                 "Van_02_AmbulanceSiren_01_Int_SoundSet" */
  169.             };
  170.             soundSetsExt[]=
  171.             {
  172.                 "Van_02_Eng_01_Idle_Ext_SoundSet",
  173.                 "Van_02_Eng_01_Rpm_01_Ext_SoundSet",
  174.                 "Van_02_Eng_01_Rpm_02_Ext_SoundSet",
  175.                 "Van_02_Eng_01_Rpm_03_Ext_SoundSet",
  176.                 "Van_02_Eng_01_Rpm_04_Ext_SoundSet",
  177.                 "Van_02_Eng_01_Rpm_05_Ext_SoundSet",
  178.                 "Van_02_Tires_Gravel_01_Ext_SoundSet",
  179.                 "Van_02_Tires_Asphalt_01_Ext_SoundSet",
  180.                 "Van_02_Tires_Grass_Mud_01_Ext_SoundSet",
  181.                 "Van_02_Tires_Sand_01_Ext_SoundSet",
  182.                 "Van_02_Tires_Rock_01_Ext_SoundSet",
  183.                 "Van_02_Tires_Water_01_Ext_SoundSet",
  184.                 "Van_02_Brakes_Asphalt_01_Ext_SoundSet",
  185.                 "Van_02_TurnLeft_Asphalt_01_Ext_SoundSet",
  186.                 "Van_02_TurnRight_Asphalt_01_Ext_SoundSet",
  187.                 "Van_02_Brakes_Dirt_01_Ext_SoundSet",
  188.                 "Van_02_TurnLeft_Dirt_01_Ext_SoundSet",
  189.                 "Van_02_TurnRight_Dirt_01_Ext_SoundSet",
  190.                 "Van_02_Tires_Movement_Dirt_Ext_01_SoundSet",
  191.                 "Van_02_Rain_01_Ext_SoundSet"/* ,
  192.                 "Van_02_AmbulanceSiren_01_Ext_SoundSet" */
  193.             };
  194.         };
  195.     };
  196. };
  197. class CfgSoundShaders
  198. {
  199.     class Van_02_PoliceSiren_01_Ext_SoundShader
  200.     {
  201.         volume="camPos * 1  * 0.7 * CustomSoundController1";
  202.     };
  203.     class Van_02_PoliceSiren_01_Int_SoundShader
  204.     {
  205.         volume="(1-camPos) * 1  * 1 * CustomSoundController1";
  206.     };
  207.     class Van_02_AmbulanceSiren_01_Ext_SoundShader
  208.     {
  209.         volume="camPos * 1  * 0.7 * CustomSoundController1";
  210.     };
  211.     class Van_02_AmbulanceSiren_01_Int_SoundShader
  212.     {
  213.         volume="(1-camPos) * 1  * 1 * CustomSoundController1";
  214.     };
  215. };
Tags: T159347
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement