Facebook
From Gray Plover, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 130
  1. // Halflife 2 custom sound mixers.
  2. // These Sound Mixers are referenced by name from Soundscapes, and are used to provide
  3. // custom volume control over various sound categories, called 'mix groups'
  4.  
  5. // "GROUPRULES" specifies the rules for inclusion of a sound in a mix group.
  6. // Rules are checked sequentially (from top to bottom). All fields must match
  7. // in a row in order for a sound to match the group.  A sound my be included
  8. // in up to 8 mix groups.
  9.  
  10. // LIMITS:
  11. //              up to 64 unique mix groups
  12. //              up to 76 group rules entries
  13. //              up to 32 sound mixers
  14. //              all strings are limited to 31 characters!
  15.  
  16. // NOTE2: at runtime, you can display the classname of the sound source by
  17. // setting snd_showclassname 1 in the console.
  18.  
  19. // NOTE3: main character dialog during critical scenes is ducked using a separate code path which, when
  20. // active, temporarilly disables mixer ducking (prevent double ducking).  
  21. // Lower priority sounds are ducked by higher priority sounds, if "is ducked" is enabled.
  22. // Only sounds with "causes ducking" enabled can cause a lower priority sound to be ducked.
  23. // Layer Triggers only work with substrings when the name of the wave file is included in the substring
  24.  
  25. "MixGroups"
  26. {
  27. // NOTE: order these from least general to most general
  28.  
  29.         //      directory or .wav       classname                                                                                                                                       Causes          Duck to         Ducker
  30.         //      group name              name substring          substring       chan                    sndlvl_min      sndlvl_max      priority Is Ducked      Ducking Percent Threshold
  31.         //  ---------                   ------------------              ---------       -----------             ----------      ----------              -------- --------       ------- -------  ---------
  32.        
  33.         "voip"                          "?VoiceSfx"             ""                      ""                      ""              ""      "60"            "0"     "0"             "100"           "40"
  34.  
  35.         "gamestartup"                   "gamestartup"           ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  36.  
  37.         "Explosions"                    "explo"                 ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  38.         "ExplosionsDistant"             "asdfaslj"                      ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  39.         "ExplosionsDecoy"               "Decoy2"                        ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  40.        
  41.         // all bullet bys and bullet impacts (referenced in op stack)
  42.         "BulletImpacts"                 "impact_bullet"         ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  43.        
  44.         // legacy bullet impact sounds and general debris impact
  45.         "BulletRicochets"               "weapons/fx/rics"       ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  46.        
  47.         "Physics"                               "nmnmnmnm"              ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  48.        
  49.         // distant weapon fire
  50.         "DistWeapons"                   ".SingleDistant"                ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  51.        
  52.         // first person weapon fire
  53.         "Weapons1"                      ".Single"                       "localPlayer"                   ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  54.        
  55.         // weapon reload, equip, handle etc
  56.         "FoleyWeapons"                  "asdasd"                        ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  57.         "C4Foley"                               "C4"                            ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  58.        
  59.         // master mix for all weapon sounds above, values are averaged. (referenced in op stack)
  60.         "AllWeapons"                    "weapons/"                      ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  61.  
  62.         "Ambient"                               "ambient/"                      ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  63.         "Survival"                              "survival/"                             ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  64.  
  65.         "PlayerFootsteps"               "footsteps/"            "localPlayer"   ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  66.         "GlobalFootsteps"               "footsteps/"            ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  67.  
  68.         "SelectedMusic"                 "selected_"                     ""                      ""                      ""              ""      "25"            "0"     "0"             "75"            "40"
  69.        
  70.         // referenced in op stack
  71.         "BuyMusic"                              "startround_"           ""                      ""                      ""              ""      "25"            "0"     "0"             "75"            "40"
  72.         "DuckingMusix"                  "asdadaf"                       ""                      ""                      ""              ""      "25"            "0"     "0"             "75"            "40"
  73.         "Music"                         "music/"                        ""                      ""                      ""              ""      "25"            "0"     "0"             "75"            "40"
  74.        
  75.         // tutorial voices
  76.         "Commander"                     "commander/"            ""                      ""                      ""              ""      "25"            "0"     "0"             "75"            "40"
  77.        
  78.         // campain voices
  79.         "CampaignVO"                    "coop_radio/"           ""                      ""                      ""              ""      "25"            "0"     "0"             "75"            "40"
  80.        
  81.         // all bot voices and player callouts
  82.         "Dialog"                                "vo/"                           ""                      ""                      ""              ""      "60"            "0"     "0"             "100"           "20"
  83.        
  84.         // winround and legacy radio callouts
  85.         "Radio"                         "radio"                 ""                      ""                      ""              ""      "60"            "0"     "0"             "100"           "20"
  86.        
  87.         // not in use
  88.         "Bot"                                   "bot/"                  ""                      ""                      ""              ""      "60"            "0"     "0"             "100"           "20"
  89.        
  90.         "Replay"                                "asdadaf"                       ""                      ""                      ""              ""      "25"            "0"     "0"             "75"            "40"
  91.  
  92.         "UI"                                    "ui/"                           ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  93.        
  94.         // referenced in op stack
  95.         "All"                                   ""                              ""                      ""                      ""              ""      "50"            "0"     "0"             "100"           "40"
  96. }
  97.  
  98.  
  99. "SoundMixers"
  100. {
  101.  
  102.         "Default_Mix"
  103.         {
  104.         //      mixgroup                        vol.  level  dsp
  105.                
  106.                 "voip"                          "0.7" "1.0" "0.0" "0.0" "0.0"
  107.  
  108.                 "gamestartup"           "0.25" "1.0" "1.0"  
  109.  
  110.                 "Explosions"                    "0" "1.0" "1.0"    
  111.                 "ExplosionsDistant"    "0" "1.0" "1.0"
  112.                 "ExplosionsDecoy"       "0.0" "1.0" "1.0"      
  113.                 "BulletImpacts"          "0.6" "1.0" "1.0"
  114.                 "BulletRicochets"               "0.4" "1.0" "1.0"
  115.                 "Physics"                       "0.8" "1.0" "1.0"
  116.  
  117.                 "DistWeapons"            "1.7" "1.0" "0.3"
  118.                 "Weapons1"              "0.3" "1.0" "1.0"
  119.                 "FoleyWeapons"         "1.4" "1.0" "1.0"
  120.                 "C4Foley"               "3.5" "1.0" "1.0"
  121.                 "AllWeapons"             "1.0" "1.0" "1.0"
  122.            
  123.                 "Ambient"                       "0.0" "1.0" "1.0"
  124.                 "Survival"                      "1.0" "1.0" "0.3"
  125.  
  126.                 "PlayerFootsteps"        "0.05" "1.0" "1.0"
  127.                 "GlobalFootsteps"        "2.5" "0.9" "0.9"
  128.  
  129.                 "SelectedMusic"         "0.6" "1.0" "1.0"
  130.                 "BuyMusic"                "0.8" "1.0" "0.0"
  131.                 "DuckingMusix"          "0.8" "1.0" "0.0"
  132.                 "Music"                         "1.0" "1.0" "0.0"
  133.                 "Commander"            "0.3" "1.0" "0.0"
  134.                 "CampaignVO"           "1.0" "1.0" "0.0"
  135.                 "Dialog"                        "0.1" "1.0" "0.0"
  136.                 "Radio"                         "0.2" "1.0" "0.0"
  137.                 "Bot"                           "0.2" "1.0" "0.5"
  138.  
  139.                 "Replay"                        "1.0" "1.0" "1.0"
  140.  
  141.                 "UI"                            "0.2" "1.0" "0.2"
  142.                
  143.                 "All"                           "1.0" "1.0" "1.0"
  144.         }
  145.  
  146.         "MainMenu_Mix"
  147.         {
  148.         //      mixgroup                        vol.  level  dsp
  149.                
  150.                 "voip"                          "0.7" "1.0" "0.0" "0.0" "0.0"
  151.  
  152.                 "gamestartup"           "0.25" "1.0" "1.0"  
  153.  
  154.                 "Explosions"                    "1.0" "1.0" "1.0"    
  155.                 "ExplosionsDistant"    "1.6" "1.0" "1.0"
  156.                 "ExplosionsDecoy"       "1.6" "1.0" "1.0"      
  157.                 "BulletImpacts"          "0.2" "1.0" "1.0"
  158.                 "BulletRicochets"               "0.4" "1.0" "1.0"
  159.                 "Physics"                       "0.8" "1.0" "1.0"
  160.  
  161.                 "DistWeapons"            "0.7" "1.0" "0.3"
  162.                 "Weapons1"              "0.7" "1.0" "1.0"
  163.                 "FoleyWeapons"         "0.7" "1.0" "1.0"
  164.                 "C4Foley"               "1.0" "1.0" "1.0"
  165.                 "AllWeapons"             "1.0" "1.0" "1.0"
  166.            
  167.                 "Ambient"                       "0.25" "1.0" "1.0"
  168.                 "Survival"                      "1.0" "1.0" "0.3"
  169.  
  170.                 "PlayerFootsteps"        "0.13" "1.0" "1.0"
  171.                 "GlobalFootsteps"        "1.0" "0.9" "0.9"
  172.  
  173.                 "SelectedMusic"         "0.6" "1.0" "1.0"
  174.                 "BuyMusic"                "0.8" "1.0" "0.0"
  175.                 "DuckingMusix"          "0.8" "1.0" "0.0"
  176.                 "Music"                         "1.0" "1.0" "0.0"
  177.                 "Commander"            "0.3" "1.0" "0.0"
  178.                 "CampaignVO"           "1.0" "1.0" "0.0"
  179.                 "Dialog"                        "0.1" "1.0" "0.0"
  180.                 "Radio"                         "0.2" "1.0" "0.0"
  181.                 "Bot"                           "0.2" "1.0" "0.5"
  182.  
  183.                 "Replay"                        "1.0" "1.0" "1.0"
  184.  
  185.                 "Replay"                        "1.0" "1.0" "1.0"
  186.  
  187.                 "UI"                            "1.0" "1.0" "0.9"
  188.                
  189.                 "All"                           "1.0" "1.0" "1.0"
  190.         }
  191.  
  192. }
  193.  
  194. "MixLayers"
  195. {
  196.         "SelectedMusicLayer"
  197.         {
  198.                 "SelectedMusic"         "1.0" "1.0" "1.0" "1.0" "0.0"
  199.                 "BuyMusic"                      "1.0" "1.0" "1.0" "1.0" "0.0"
  200.                 "UI"                            "1.0" "1.0" "1.0" "1.0" "0.0"
  201.         }
  202.         "DuckingMusixLayer"
  203.         {
  204.                 "DuckingMusix"          "1.0" "1.0" "1.0" "0.65" "0.0"
  205.                 "Music"                 "0.3" "1.0" "1.0" "0.0" "0.0"
  206.                 "Commander"             "1.0" "1.0" "1.0" "0.8" "0.0"
  207.                 "Dialog"                        "1.0" "1.0" "1.0" "0.8" "0.0"
  208.                 "Radio"                 "1.0" "1.0" "1.0" "0.8" "0.0"
  209.                 "Bot"                           "1.0" "1.0" "1.0" "0.8" "0.0"
  210.         }
  211.        
  212.         "CampaignVOLayer"
  213.         {
  214.                 "CampaignVO"            "1.0" "1.0" "1.0"
  215.                 "DistWeapons"                   "0.1" "1.0" "0.0"
  216.                 "Weapons1"              "0.1" "1.0" "0.0"
  217.                 "FoleyWeapons"           "0.05" "1.0" "0.0"
  218.                 "C4Foley"                       "0.05" "1.0" "0.0"
  219.                 "AllWeapons"            "0.1" "1.0" "1.0"
  220.                 "BulletImpacts"            "0.01" "1.0" "0.0"
  221.                 "BulletRicochets"               "0.01" "1.0" "0.0"
  222.                 "Physics"               "0.01" "1.0" "0.0"             
  223.                 "Music"                         "0.3" "1.0" "0.0"
  224.                 "Dialog"                        "0.3" "1.0" "0.0"
  225.                 "Radio"                         "0.3" "1.0" "0.0"
  226.                 "Bot"                           "0.1" "1.0" "0.0"
  227.                 "Explosions"                    "0.1" "1.0" "1.0"
  228.                 "ExplosionsDecoy"        "0.1" "1.0" "1.0"             
  229.                 "ExplosionsDistant"     "0.1" "1.0" "1.0"
  230.                 "Ambient"                       "0.1" "1.0" "1.0"
  231.                 "Ambient"                       "0.1" "1.0" "0.0"
  232.                 "PlayerFootsteps"               "0.2" "1.0" "1.0"
  233.                 "GlobalFootsteps"               "0.3" "0.9" "0.0"
  234.                
  235.         }
  236.        
  237.         // this layer is designed to be active for the duration of the replay feature
  238.         "ReplayLayer"
  239.         {
  240.                
  241.                 "AllWeapons"            "0.5" "0.9" "0.0"
  242.                 "Explosions"                    "1" "1.0" "1.0" "0.0" "0.0"
  243.                 "ExplosionsDistant"    "1" "1.0" "1.0" "0.0" "0.0"
  244.                 "DistWeapons"            "1" "1.0" "0.0" "0.0" "0.0"
  245.                 "Weapons1"               "1" "1.0" "0.0" "0.0" "0.0"
  246.                 "PlayerFootsteps"        "2.0" "1.0" "1.0"
  247.                 "GlobalFootsteps"        "1.0" "0.9" "0.0"
  248.                
  249.         }
  250.        
  251.         // this layer is designed to make these mixers fade to silent to bookend the replay feature
  252.         "ReplayBlinkLayer"
  253.         {
  254.                
  255.                 "BulletImpacts"            "0.01" "1.0" "0.0" "0.0" "0.0"
  256.                 "BulletRicochets"               "0.01" "1.0" "0.0" "0.0" "0.0"
  257.                 "Physics"               "0.01" "1.0" "0.0" "0.0" "0.0"
  258.                 "Explosions"                    "0.01" "1.0" "1.0" "0.0" "0.0"
  259.                 "ExplosionsDistant"     "0.01" "1.0" "1.0" "0.0" "0.0"
  260.                 "ExplosionsDecoy"       "0.01" "1.0" "1.0" "0.0" "0.0"
  261.                 "DistWeapons"                   "0.01" "1.0" "0.0" "0.0" "0.0"
  262.                 "Weapons1"              "1.0" "1.0" "0.0" "0.0" "0.0"
  263.                 "AllWeapons"                "0.01" "1.0" "1.0" "0.0" "0.0"
  264.                
  265.                 "PlayerFootsteps"               "0.01" "1.0" "1.0" "0.0" "0.0"
  266.                 "GlobalFootsteps"               "0.01" "0.9" "0.0" "0.0" "0.0"
  267.                 "Ambient"                       "0.01" "1.0" "1.0" "0.0" "0.0"
  268.                 "Survival"                      "0.5" "1.0" "1.0" "0.0" "0.0"
  269.                 "UI"                            "1.0" "1.0" "0.0"
  270.                
  271.                 "Music"                         "0.01" "1.0" "0.0" "0.0" "0.0"
  272.                 "Dialog"                        "0.01" "1.0" "0.0" "0.0" "0.0"
  273.                 "Radio"                         "0.01" "1.0" "0.0" "0.0" "0.0"
  274.                 "Bot"                           "0.01" "1.0" "0.0" "0.0" "0.0"
  275.         }
  276.        
  277.         "DecoyLayer"
  278.         {
  279.                 "GlobalFootsteps"               "0.01" "1.0" "0.0"
  280.                 "PlayerFootsteps"               "0.01" "1.0" "0.0"
  281.                 "C4Foley"                       "0.01" "1.0" "0.0"
  282.         }
  283.        
  284. }
  285.  
  286. "LayerTriggers"
  287. {
  288.         "SelectedMusicLayer"    "SelectedMusic"         "0.0" "1.0" "0.0"   "0.50"
  289.         "DuckingMusixLayer"     "DuckingMusix"  "0.0" "1.0" "0.0"   "0.00"
  290.         "CampaignVOLayer"       "CampaignVO"    "0.0" "1.0" "0.5"   "0.50"
  291. }
  292.  
  293.