Jump to content

How to disable the "collect_resource" sound?


pr1me

Recommended Posts

I realize this sounds awfully ungrateful but I have a hearing issue that makes this particular sound almost painful to hear after a few minutes.

 

I asked about this during beta and was instructed to comment out "containergotitem" and "gotnewitem" lines from dont_starve\data\scripts\prefabs\player_common.lua: 

--inst:ListenForEvent( "containergotitem", function(it, data) inst.SoundEmitter:PlaySound("dontstarve/HUD/collect_resource")            end)        --inst:ListenForEvent( "gotnewitem", function(it, data)                 if data.slot then                 Print(VERBOSITY.DEBUG, "gotnewitem: ["..data.item.prefab.."]")                     inst.SoundEmitter:PlaySound("dontstarve/HUD/collect_resource")                end            end)

This worked for some time but either I'm doing it wrong or it just doesn't work the same anymore.

 

I clearly don't have any coding knowledge but I'm willing to research if someone could kindly point me in the right direction. I have to play with the sound off most of the time because of this one thing. I'd love to be able to hear the rest of the game though.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...