Sign in to follow this  

HL2 Mod Script Problem

This topic is 3628 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, I am trying to change the sound a weapon makes when it fires using a .wav file called laugh.wav, the file is located in the "C:\Program Files\Valve\Steam\SteamApps\SourceMods\SoundCorruption\sound" of my mods folder. I am trying to do it through the game_sounds_weapons.txt found in the C:\Program Files\Valve\Steam\SteamApps\SourceMods\SoundCorruption\scripts directory. Here is my code: // weapon_crowbar.txt "Weapon_Crowbar.Single" { "channel" "CHAN_WEAPON" "volume" "0.55" "soundlevel" "SNDLVL_105dB" "pitch" "95,100" "wave" "sound/laugh.wav" } "Weapon_Crowbar.Melee_Hit" { "channel" "CHAN_WEAPON" "volume" "1.0" "soundlevel" "SNDLVL_105dB" "pitch" "98,102" "rndwave" { "wave" "sound/laugh.wav" "wave" "sound/laugh.wav" "wave" "sound/laugh.wav" } } "Weapon_Crowbar.Melee_HitWorld" { "channel" "CHAN_WEAPON" "volume" "0.7" "soundlevel" "SNDLVL_90dB" "pitch" "90,120" "rndwave" { "wave" "sound/laugh.wav" "wave" "sound/laugh.wav" } } At the moment, when i run the mod, it just makes no sound. So i suspect its a problem with the file path, but i don't know the syntax. Any help would be awesome! Thanks, Dan.

Share this post


Link to post
Share on other sites

This topic is 3628 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this