PDA

View Full Version : weapon + env sounds



Dave
11-04-2009, 10:57 PM
i noticed alot of posts concerning the weapon sounds esp smokes. all of which just suggested to edit the sound file. which is illegal. im not sure if this occured to anyone, but hl2 has its own pitch/decibel + timing sound options. so modifying source sounds could be done through code. eg its how everything gets muted after being flashed in css.

so for example adding code like


{
"dsp" "1" //active dsp, 1 being full
"dsp_volume" "0.8" //overrides the volume of DSP effects

{
"soundlevel" //decibel sound level i believe the string for this is "SNDLVL_##dB" /"_NORM" /"_NONE" the hashes being the decibel number
}
{
"volume" "0.75" //0 being none, 1 being full
{
"wave" ".wav location"
}
}
}


another setting being its attenuation (higher = softer sounds), which also requires a position for the sound which would be directed from the weapon entity or "position 0" (the first entity)

so for example


{
"dsp" "1"
"dsp_volume" "0.5"
{
"wave" "weapons/rif_ak47/boltpull.wav" // i cant remember the actuall file atm lol
"volume" "1.0"
"pitch" "85"
"position" "0"
"attenuation" "4"
"soundlevel" "SNDLVL_100dB"
}

}

i think it looks right. im not actually infront of a pc with hl2 right now. but these would be attached to where ever the sound is being called from.

this is just a suggestion :P

j0lt
11-04-2009, 11:07 PM
Already done, viewtopic.php?f=16&t=691 (http://cspromod.com/community/viewtopic.php?f=16&t=691)

Dave
11-04-2009, 11:40 PM
im mainly implying the pitch and attenuation of the weapons, not decible and volume. source sounds pretty annoying compared to the 1.6 sounds, and if you decide to edit these you can get some highdetail 1.6 sounding weapons :)

haGisson
11-05-2009, 04:26 AM
hey, sounds good :)
i'm sure they can make the game sound better by altering pitch, speed, etc. :)

j0lt
11-05-2009, 05:49 AM
im mainly implying the pitch and attenuation of the weapons, not decible and volume. source sounds pretty annoying compared to the 1.6 sounds, and if you decide to edit these you can get some highdetail 1.6 sounding weapons :)

We've actually already messed around with those values and found we can get the M4 and Silenced USP pretty close to sounding like 1.6. Not sure about whether they're going to be included or not.

haGisson
11-05-2009, 06:02 AM
good to hear :)

Dave
11-05-2009, 08:01 PM
sounds awesome!





hopefully :P