Skip to content

feat: 新增脚步声音效标签支持和AudioUtils工具类 (v1.8.4)#12

Merged
BAKAOLC merged 1 commit into
mainfrom
develop
Nov 18, 2025
Merged

feat: 新增脚步声音效标签支持和AudioUtils工具类 (v1.8.4)#12
BAKAOLC merged 1 commit into
mainfrom
develop

Conversation

@BAKAOLC

@BAKAOLC BAKAOLC commented Nov 18, 2025

Copy link
Copy Markdown
Collaborator

更新内容

  • 新增脚步声音效标签支持,支持为不同材质(有机、机械、危险、无声)和不同状态(轻/重步行、轻/重跑步)配置自定义脚步声
  • 新增16个脚步声音效标签:footstep_organic_walk_lightfootstep_organic_walk_heavyfootstep_organic_run_lightfootstep_organic_run_heavy
  • 新增 AudioUtils 工具类,用于播放音频并自动清理临时对象
  • 新增 AudioManagerOnFootStepSoundPatch 补丁,处理自定义脚步声
  • 改进死亡音效播放逻辑,使用临时对象确保音效正确播放和清理

版本更新

  • 更新版本号至 v1.8.4
  • 更新 CHANGELOG.md 和 CHANGELOG_EN.md
  • 更新 README.md 和 README_EN.md,添加脚步声音效标签说明

Copilot AI review requested due to automatic review settings November 18, 2025 10:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds footstep sound customization support to the mod, allowing modelers to configure custom footstep sounds for different ground materials and movement states. The update introduces 16 new sound tags covering organic, mechanical, danger, and no-sound materials, each with light/heavy walking and running variants.

  • Added AudioUtils utility class for playing audio with automatic temporary object cleanup
  • Implemented AudioManagerOnFootStepSoundPatch to intercept and replace footstep sounds with custom variants
  • Improved death sound playback to use temporary objects for proper cleanup

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
DuckovCustomModel/Utils/AudioUtils.cs New utility class for playing audio with automatic cleanup of temporary GameObject
DuckovCustomModel/MonoBehaviours/ModelHandler.cs Updated death sound handler to use AudioUtils for proper cleanup
DuckovCustomModel/HarmonyPatches/AudioManagerPatches.cs Added footstep sound patch and renamed existing patches for clarity
DuckovCustomModel.Core/Data/SoundTags.cs Added 16 new footstep sound tag constants for different materials and movement states
DuckovCustomModel/Constant.cs Updated version to 1.8.4
README.md & README_EN.md Added documentation for footstep sound tags and trigger mechanism
CHANGELOG.md & CHANGELOG_EN.md Added v1.8.4 release notes

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread DuckovCustomModel/Utils/AudioUtils.cs Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread DuckovCustomModel/Utils/AudioUtils.cs Outdated
Comment thread DuckovCustomModel/Utils/AudioUtils.cs Outdated
Comment thread DuckovCustomModel/Utils/AudioUtils.cs
- 新增16个脚步声音效标签,支持不同材质和状态的脚步声配置
- 新增AudioUtils工具类,用于播放音频并自动清理临时对象
- 新增AudioManagerOnFootStepSoundPatch补丁,处理自定义脚步声
- 改进死亡音效播放逻辑,使用临时对象确保正确播放和清理
- 改进AudioUtils错误处理和代码健壮性
- 更新版本号至 v1.8.4
- 更新 CHANGELOG 和 README
Copilot AI review requested due to automatic review settings November 18, 2025 11:15
@BAKAOLC BAKAOLC merged commit b2658b3 into main Nov 18, 2025
5 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants