Raised This Month: $51 Target: $400
 12% 

Sound replacements V. 1.2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   Brad (55)
Silencer123
Veteran Member
Join Date: Jul 2006
Old 06-01-2009 , 19:26   Sound replacements V. 1.2
Reply With Quote #1

Sound replacements

This is a simple plugin for replacing networked sounds.
It won't work for client side sound effects.

By default, have an sr.cfg in addons/amxmodx/configs,
in which every line covers the path to the sound file to
replace, then a space, and then the path to the sound
file to use as replacement.

Example:
Code:
weapons/cbar_hit1.wav weapons/explode3.wav
Supported modifications are all, except Sven Co-op 3.0
and 4.0, because they have too massive changes to HL's
sound engine.

This also automatically prevents the replaced sounds from precaching.
The support feature for modifications with an altered HL sound engine
or a completely different sound engine has been designed for Sven
Co-op, but ultimately fails its purpose in that mod. Maybe it works for
other modifications I don't know of yet.


Version history:
  • V. 1.2:
    • More optimizations.
    • More security checks.
    • More flexibility with the replacement file.
  • V. 1.1:
    • Some optimization for faster code.
  • V. 1.0:
    • Initial release.


Thanks to...
joaquimandrade ,
ConnorMcLeod ,
arkshine and
fysiks
...for some and much help on the way.


Enjoy.
Attached Files
File Type: cfg sr.cfg (1.1 KB, 2319 views)
File Type: sma Get Plugin or Get Source (sr.sma - 4223 views - 6.8 KB)
__________________
EAT YOUR VEGGIES

Last edited by Silencer123; 06-05-2009 at 14:21. Reason: Updated
Silencer123 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode