PutdownSound
Tool to play sounds when putting down a valuable item.
模組介紹 作者原文
Putdown DLL for R.E.P.O.
This DLL provides an easy way to play putdown sounds for valuables you add to the game R.E.P.O. Add the DLL to your Unity project and attach the PutdownSoundComponent to a valuable's prefab to play one or more sounds when it's picked up by the player.
Supported scenario
- Attach per-prefab pickup sounds for valuables so a sound plays whenever a player picks one up.
Installation
- Copy the DLL into the Assets folder of your Unity project.
- If done correctly, it should look like this:
Usage (Editor)
- Open the prefab for the valuable you want to add a putdown sound to.
- In the Inspector, click Add Component and search for PutdownSoundComponent.
- Add the component to the prefab.
- Add your sound(s) to the component's Sounds field (see image below)
- Optionally adjust any exposed settings (volume, pitch, delay, spatial blend, etc.).
- Save the prefab.
At runtime, when the player drops that prefab, a random pickup sound will play automatically.
Notes & Troubleshooting
- If the component does not appear in the Add Component list:
- Try drag/dropping the PutdownSoundComponent in the components list of the prefab.
- If the sound doesn't play at runtime, check:
- The Sounds are not empty.
- The prefab instance in the scene uses the updated prefab with the component.
- The game audio isn't muted and the master/AudioSource volumes are reasonable.
Contact
If you have any other issues to report, please do using my various social media profiles:
- Discord (loray_guy)
- GitHub (LORAY-guy)
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。