SphereCommunity
Override drop and pickup sounds - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Override drop and pickup sounds (/Thread-Override-drop-and-pickup-sounds)



Override drop and pickup sounds - BestBG - 06-14-2017 04:40 PM

How can I change sounds like when moving something in my backpack? I've tried:

ON=@ItemDropOn_Self
sound blah blah
return 1

But returning 1 only allows me to pick it up, when placing the item it just goes back to its original spot.

Thanks


RE: Override drop and pickup sounds - Coruja - 06-14-2017 07:05 PM

to override the item drop sound you must set DROPSOUND=123 on the item created ingame or directly on the item script

there's no way to override pickup sound, but that's a nice idea. Since someone can need it and this can be done in just some seconds, I'll take a look on the code to check if it can be added on next commits


RE: Override drop and pickup sounds - BestBG - 06-15-2017 01:51 PM

Yeah that works, but I was looking for just changing the dropsound in the players backpack, when i use dropsound on an item it also plays the same sound when they drop it on the ground.

And I would have to add this new dropsound to every single item on my server?

Thanks man, that all worked perfect. Is there also a way to change pickup sound? And also, when I heal and my bloody bandages go into my backpack it makes the wrong sound. I've tried

ON=@ItemCreate
ARGO.DROPSOUND=

the above works, but the server gets an error "Undefined keyword 'ARGO.DROPSOUND'". Dont know why its doing that when its working.