Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Nutcracker Fire Warning
Changes the Nutcracker's color before it fires: white while aiming, red just before the shot.
CHANGELOG
更新日志 / Changelog
中文
1.1.0
- 模型颜色调整为:巡逻和追击时原色,瞄准时白色,即将开枪时红色。
- 修复预警时机不准,以及远距离模型不变色的问题。
- 移除竖条 UI 和描边效果,只保留模型变色。
- 配置项精简为 6 项。
- 支持 LethalConfig 局内设置,检测到 LC Chinese Project 时自动显示中文。
- 降低运行开销。
- 许可证由 MIT 调整为 GPL-3.0。
1.0.6
- 新生成的配置默认启用
EnableModelStateTint,默认关闭EnableModelOutlineFireWindow。 - 明确配置说明:
EnableModelStateTint是推荐的白色追击、红色开火模型预警,EnableModelOutlineFireWindow是可选的开火窗口叠加效果。 - 新增默认模型预警组合的测试。
1.0.5
- 新增可选的模型状态染色:追击目标时白色,最终开火窗口红色。
- 保留世界空间 UI 预警和红白模型脉冲、轮廓预警,均可通过配置开关。
- 新增
EnableModelStateTint以及追击、开火窗口染色的透明度和强度配置。 - 检测到 LC Chinese Project 时自动使用简体中文配置说明。
- LC Chinese Project 通过稳定的插件 GUID 或安装的 DLL 路径检测,不依赖版本号。
- 新增配置语言检测和模型预警阶段选择的测试。
1.0.4
- 新增默认开启的总开关
EnableMod。 - 延迟到瞄准、换弹或预瞄危险检测需要时才创建预警对象,降低空闲开销。
- 用缓存的 Harmony 字段引用替代每帧反射读取。
- 移除
GetType().Name渲染器检查,改用强类型检查。 - 通过限频视线检测和更轻量的角度过滤,减少预瞄危险检测开销。
- 缓存倒计时文本,减少内存分配。
- 缓存符合条件的模型渲染器,用于屏幕框边界和网格预警更新。
- 提高备用监视器的默认扫描间隔,降低扫描频率。
1.0.3
- 修复
EnableUiFireWindow=false只关闭最终红白脉冲的问题,现在会隐藏整个世界空间竖条。 - 允许将
PreAimMaxDistance设为 0 或更低,以关闭黄色预瞄危险条。 - 更新配置说明,使其与实际 UI 行为一致。
1.0.2
- 插件更名为 Nutcracker Fire Warning。
- 新增可配置的模型预警模式:
SourcePulse、CloneShell、Both。 - 新增可配置的模型脉冲强度和透明度。
- 新增模型预警距离过滤和可选的相机可见性过滤。
- 新增可配置的备用监视器扫描间隔。
- 新增可配置的预瞄预警距离。
- 改进预警结束、组件禁用或敌人移除时的材质恢复。
- 默认模型预警方式改为
SourcePulse,在不可读的游戏网格上更可靠。
1.0.1
- 新增世界空间胡桃夹子霰弹枪预警条。
- 新增最终开火窗口 UI 脉冲和倒计时。
- 新增胡桃夹子模型开火窗口预警。
- 新增调试日志和渲染器审计输出。
- 新增用于观察胡桃夹子战斗状态的备用监视器。
1.0.0
- 初始内部实现。
English
1.1.0
- Model colors are now original while patrolling and chasing, white while aiming, and red just before firing.
- Fixed inaccurate warning timing and the model not changing color at range.
- Removed the side bar UI and outline effects, leaving only the model color.
- Reduced the config to 6 entries.
- Added LethalConfig in-game settings, shown in Chinese when LC Chinese Project is detected.
- Reduced runtime overhead.
- Changed the license from MIT to GPL-3.0.
1.0.6
- Changed the default model warning setup so
EnableModelStateTintis enabled andEnableModelOutlineFireWindowis disabled for newly generated configs. - Clarified config descriptions:
EnableModelStateTintis the recommended white-chase/red-fire model warning, whileEnableModelOutlineFireWindowis an optional extra fire-window overlay. - Added tests covering the intended default model warning combination.
1.0.5
- Added optional model state tint warnings: white while a Nutcracker is chasing a target, red during the final fire window.
- Kept the existing world-space UI warning and red-white model pulse/outline warning available through config.
- Added
EnableModelStateTint, chase tint alpha/intensity, and fire-window tint alpha/intensity config entries. - Added automatic Simplified Chinese config descriptions when LC Chinese Project is detected.
- LC Chinese Project detection uses the stable plugin GUID or installed DLL path and does not depend on version numbers.
- Added lightweight source tests for config language detection and model warning phase selection.
1.0.4
- Added
EnableModas a default-on master enable option. - Reduced idle overhead by delaying warning object creation until aiming, reloading, or pre-aim danger tracking is relevant.
- Replaced per-frame reflection value reads with cached Harmony field references.
- Removed
GetType().Namerenderer checks and switched to strong renderer type checks. - Reduced pre-aim danger checks by throttling line-of-sight tests and using cheaper angle filtering.
- Reduced countdown text allocations by caching countdown labels.
- Cached eligible model renderers for screen-box bounds and mesh warning updates.
- Increased fallback monitor defaults to reduce scan frequency.
1.0.3
- Fixed
EnableUiFireWindow=falseso it hides the entire world-space side warning bar instead of only disabling the final red-white pulse. - Allowed
PreAimMaxDistance=0or lower to disable the yellow pre-aim danger bar. - Updated config descriptions to match the actual UI behavior.
1.0.2
- Renamed the plugin to Nutcracker Fire Warning.
- Added configurable model warning modes:
SourcePulse,CloneShell, andBoth. - Added configurable model pulse intensity and alpha.
- Added model warning distance filtering and optional camera-visibility filtering.
- Added configurable fallback monitor scan intervals.
- Added configurable pre-aim warning distance.
- Improved material restoration when warning states end, components are disabled, or enemies are removed.
- Changed the default model warning path to
SourcePulsefor better runtime reliability with non-readable game meshes.
1.0.1
- Added a world-space Nutcracker shotgun warning bar.
- Added final fire-window UI pulse and countdown.
- Added Nutcracker model fire-window warning support.
- Added debug logging and renderer audit output.
- Added fallback monitor support for observing Nutcracker combat state.
1.0.0
- Initial internal implementation.