Changing default sounds
Quote from GameBurger on December 22, 2014, 7:53 amOkay, so if .vpk files have higher priority then files in the game folder, is there a way to pack a .vpk file to a map with pakrat so it would only change default sounds in my custom map?
Sorry for these frequent and nooby questions ^^
Thanks!
Okay, so if .vpk files have higher priority then files in the game folder, is there a way to pack a .vpk file to a map with pakrat so it would only change default sounds in my custom map?
Sorry for these frequent and nooby questions ^^
Thanks!
Quote from CamBen on December 22, 2014, 3:46 pmSadly, no. Vpk files cannot be packed into a map. What sound are you trying to replace? There may be a workaround.
Sadly, no. Vpk files cannot be packed into a map. What sound are you trying to replace? There may be a workaround.
Aperture Science: We do our science asbestos we can!
Quote from GameBurger on December 23, 2014, 4:00 amCamBen wrote:Sadly, no. Vpk files cannot be packed into a map. What sound are you trying to replace? There may be a workaround.Still trying to change the default footsteps on grass. I do not suppose there is a way to change that in hammer or anything?
P.S. It does not have to be grass. I just picked it so it would not mess up anything in the future as noone uses grass textures in portal (afaik). Basically just beed to change the footsteps sound for one entire map.
Still trying to change the default footsteps on grass. I do not suppose there is a way to change that in hammer or anything?
P.S. It does not have to be grass. I just picked it so it would not mess up anything in the future as noone uses grass textures in portal (afaik). Basically just beed to change the footsteps sound for one entire map.
Quote from RustyDios on December 23, 2014, 7:21 amI think the footstep sounds come from the material type that is set in the Valve Material File (.vmt) for that texture. The line is "$surfaceprop""glass" for example. (This tells the engine what set of sounds to use for footsteps, collisions or portal gun bounces... I think).
I'm not sure where the sounds for these are located, or even what/where the sounds are defined for the different $surfaceprop types. Maybe this is something you could look at changing/modding, I'd love to go searching for you but <Insert Holiday Season Here> has me pretty limited for time at the moment... You may be able to create your own type pointing to your custom/changed sounds...
I think the footstep sounds come from the material type that is set in the Valve Material File (.vmt) for that texture. The line is "$surfaceprop""glass" for example. (This tells the engine what set of sounds to use for footsteps, collisions or portal gun bounces... I think).
I'm not sure where the sounds for these are located, or even what/where the sounds are defined for the different $surfaceprop types. Maybe this is something you could look at changing/modding, I'd love to go searching for you but <Insert Holiday Season Here> has me pretty limited for time at the moment... You may be able to create your own type pointing to your custom/changed sounds...
Quote from Lpfreaky90 on December 23, 2014, 11:46 amRustyDios wrote:I think the footstep sounds come from the material type that is set in the Valve Material File (.vmt) for that texture. The line is "$surfaceprop""glass" for example. (This tells the engine what set of sounds to use for footsteps, collisions or portal gun bounces... I think).Absolutely correct.
the sounds are defined in surfaceproperties.txt located in portal2/portal2/scripts
it should be possible to modify this and have like own surfaceprops, to get a new entry in here if you really want to, but then again you have the problem that the script has to be loaded prior to the map.
Absolutely correct.
the sounds are defined in surfaceproperties.txt located in portal2/portal2/scripts
it should be possible to modify this and have like own surfaceprops, to get a new entry in here if you really want to, but then again you have the problem that the script has to be loaded prior to the map.
Quote from RustyDios on December 23, 2014, 7:18 pmGreat.. well then... this now depends on if the "new" footsteps sounds is custom or already "default".... for example you could create/use a new .vmt with an adjusted $surfaceprop line to make grass sound like metal (the texture would still look like grass but behave like metal) .... it really depends on what GameBurger is trying to achieve. If he wanted to, with the simple method of changing/paking a few .vmt's the entire map could -sound- like he was walking on -whatever- property (providing it was one that is already defined in that script file)...
And thank you LPfreaky90 for confirming that I AM learning "stuff"... I still feel like a complete Hammer noob almost 2yrs after first using it...
Great.. well then... this now depends on if the "new" footsteps sounds is custom or already "default".... for example you could create/use a new .vmt with an adjusted $surfaceprop line to make grass sound like metal (the texture would still look like grass but behave like metal) .... it really depends on what GameBurger is trying to achieve. If he wanted to, with the simple method of changing/paking a few .vmt's the entire map could -sound- like he was walking on -whatever- property (providing it was one that is already defined in that script file)...
And thank you LPfreaky90 for confirming that I AM learning "stuff"... I still feel like a complete Hammer noob almost 2yrs after first using it...
Quote from GameBurger on December 24, 2014, 6:02 amBut in order for people to have that new surface ill have to pack the txt file in the bsp file. Will that work?
But in order for people to have that new surface ill have to pack the txt file in the bsp file. Will that work?
Quote from Lpfreaky90 on December 25, 2014, 7:44 amGameBurger wrote:But in order for people to have that new surface ill have to pack the txt file in the bsp file. Will that work?nop
your best bet is to replace the sounds and pack them into your map.
I believe that that overwrites the default game sounds. (if they have the same name and path ofc!)
nop
your best bet is to replace the sounds and pack them into your map.
I believe that that overwrites the default game sounds. (if they have the same name and path ofc!)
Quote from GameBurger on December 25, 2014, 8:45 amLpfreaky90 wrote:GameBurger wrote:But in order for people to have that new surface ill have to pack the txt file in the bsp file. Will that work?nop
your best bet is to replace the sounds and pack them into your map.
I believe that that overwrites the default game sounds. (if they have the same name and path ofc!)Sadly, they do not. Not in Portal 2.
But thanks, everyone!
nop
your best bet is to replace the sounds and pack them into your map.
I believe that that overwrites the default game sounds. (if they have the same name and path ofc!)
Sadly, they do not. Not in Portal 2.
But thanks, everyone!