
动态重载速度
战斗外缓慢而刻意的武器装填,枪战中恢复默认速度装填,运行时自动切换。涵盖所有手持枪械,包括LeMat、Navy和M1899,提供三个INI预设,无需LML/ymt编辑。
查看大图[center][i]╭─────────────────────────────────────────────────────────────────────────────────────────────────╮ [/i][/center]
[center][img width=340]https://i.ibb.co/KjxqfRDm/Reload-Start1.gif[/img][img width=340]https://i.ibb.co/S7yrPLzr/Reload-Start2.gif[/img][img width=340]https://i.ibb.co/20Dqwf9t/Reload-Start4.gif[/img]
[img width=340]https://i.ibb.co/99dNMLnC/Reload-Start5.gif[/img][img width=340]https://i.ibb.co/mKdHnbc/Reload-Start3.gif[/img][img width=340]https://i.ibb.co/8g1xyfZP/Reload-Start6.gif[/img][/center]
[center]╰─────────────────────────────────────────────────────────────────────────────────────────────────╯ [/center]
[center][size=5][b]Dynamic Reload Speed[/b][/size][/center]
[center][i]脱战时缓慢、从容地换弹——枪战中恢复原版换弹速度,在运行时实时切换。[/i][/center]
[quote][b]仅限单人模式——Red Dead Online 警告[/b]
进入 Red Dead Online 之前,请删除 [font=Courier New]DynamicReloadSpeed.asi[/font]。插件自行禁用并不会将该模块从游戏进程中移除。[/quote][b]官方下载来源:[/b] NexusMods 上的本模组页面(作者 [b]RedziYT[/b])。从任何其他来源获取的文件均不受支持。
[line]
[center][size=4][b]描述[/b][/size][/center]
在原版 Red Dead Redemption 2 中,在篝火旁从容换弹与在敌人火力下换弹的速度完全相同。通过 LML 替换 [font=Courier New]weapons.ymt[/font] 可以永久减慢换弹速度,但这样你在枪战中就不得不忍受迟缓的换弹——而且有五把手持武器([b]LeMat Revolver[/b]、[b]Navy Revolver[/b]、[b]M1899 Pistol[/b]、[b]Evans Repeater[/b] 和 [b]Elephant Rifle[/b])在 [font=Courier New]weapons.ymt[/font] 中根本没有对应的 [font=Courier New]CWeaponInfo[/font] 条目,因此任何文件修改都无法触及它们。
[b]Dynamic Reload Speed[/b] 在运行时干净利落地解决了这个问题,且不修改任何游戏文件。
[line]
[center][size=4][b]主要功能[/b][/size][/center]
[list]
[][b]两套实时换弹配置(CALM 与 COMBAT):[/b] 脱战时([font=Courier New]CALM[/font]),枪械切换为缓慢、从容的换弹节奏。一旦战斗开始([font=Courier New]COMBAT[/font]),枪械立即切换回原版(或已加载的)换弹速度。战斗结束后,可配置的 [font=Courier New]CooldownSeconds[/font] 计时器(默认 [font=Courier New]5.0[/font] 秒)会让战斗速度再保持一小段缓冲时间,然后才回到 [font=Courier New]CALM[/font]。在原版 [font=Courier New]weapons.ymt[/font] 安装和已被减慢的 [font=Courier New]weapons.ymt[/font] 配置下均有效。[/]
[][b]可触及文件模组无法触及的武器:[/b] 切换 INI 表中全部 59 个被追踪的手持枪械条目(左轮手枪、手枪、连发步枪、步枪、霰弹枪和狙击步枪)——包括 [b]LeMat Revolver[/b]、[b]Navy Revolver[/b]、[b]M1899 Pistol[/b]、[b]Evans Repeater[/b]、[b]Elephant Rifle[/b]、独特/具名剧情变体、[b]High Roller Double-Action Revolver[/b]([font=Courier New]WEAPON_REVOLVER_DOUBLEACTION_GAMBLER[/font])、双持配置,以及可选的 [font=Courier New]IncludeUnlistedGuns = 1[/font] 回退支持。[/]
[][b]秒表校准的时序模型:[/b] 19 个核心 [font=Courier New]weapons.ymt[/font] 枪械配置的脱战换弹速度,是通过经验证的换弹时序模型([font=Courier New]T = A/r + NL/(lrr) + Ntb[/font];已在 Varmint Rifle 上测试,目标 18.0 秒 ≈ 游戏中 18 秒)根据游戏内秒表测量解算得出。[b]LeMat[/b](平静 16.1 秒 / 战斗 7.9 秒)、[b]Navy[/b](平静 9.4 秒 / 战斗 6.1 秒)和 [b]M1899[/b](平静 3.5 秒 / 战斗 2.1 秒)已在游戏内通过秒表验证;[b]Evans Repeater[/b] 和 [b]Elephant Rifle[/b] 的脱战数值为估算值。[/]
[][b]亚毫秒级切换与内存安全:[/b] 一次性的后台启动扫描异步运行(约 2.6 秒),不会暂停游戏;在 [font=Courier New]CALM[/font] 和 [font=Courier New]COMBAT[/font] 之间切换全部约 59 个武器结构仅需 [b]0.02–0.09 毫秒[/b](低于 0.1 毫秒),无任何可察觉的卡顿。不修改任何游戏文件,也没有硬编码地址或字节模式——启动时,插件通过武器名称哈希、类共识和字段偏移共识在进程内存中定位 [font=Courier New]CWeaponInfo[/font] 结构,取得不可变的[b]启动快照[/b],默认情况下每把枪仅在运行时修补一个浮点字段([font=Courier New]AnimReloadRate[/font]——伤害、后坐力、散布、弹药容量和价格均不受影响)。在按下 [font=Courier New]F7[/font] 关闭、卸载、进程退出或检测到网络会话时,所有启动值都会通过回读验证干净地恢复。[/]
[/list][line]
[center][size=4][b]需求[/b][/size][/center]
[list]
[][url=https://www.nexusmods.com/reddeadredemption2/mods/1472]ScriptHookRDR2 V2[/url];[/]
[][url=https://github.com/ThirteenAG/Ultimate-ASI-Loader/releases]Ultimate ASI Loader[/url],或任何其他 ASI 加载器(例如我本人使用的 TitanBoost)。[/]
[/list][i](无需 Lenny's Mod Loader,无需修改 [font=Courier New]weapons.ymt[/font],无需额外的字体/本地化模组,也无需单独安装 Visual C++ Redistributable。)[/i]
[line]
[center][size=4][b]安装与卸载[/b][/size][/center]
[list=1]
[]将压缩包内容直接解压到 Red Dead Redemption 2 主文件夹(与 [font=Courier New]RDR2.exe[/font] 同级)——[b]不要[/b]放入 [font=Courier New]lml\[/font] 内:
• [font=Courier New]DynamicReloadSpeed.asi[/font]
• [font=Courier New]DynamicReloadSpeed.ini[/font]
• [font=Courier New]README.txt[/font]
• [font=Courier New]presets\[/font]([font=Courier New]subtle.ini[/font]、[font=Courier New]realistic.ini[/font]、[font=Courier New]hardcore.ini[/font])[/]
[]启动游戏(仅故事模式)。[/]
[/list][i]卸载时,只需删除 [font=Courier New]DynamicReloadSpeed.asi[/font](可选删除 [font=Courier New]DynamicReloadSpeed.ini[/font]、[font=Courier New]DynamicReloadSpeed.log[/font]、[font=Courier New]README.txt[/font] 和 [font=Courier New]presets\[/font])。不触及任何游戏文件,也无需恢复任何内容。[/i]
[line]
[center][size=4][b]什么算作战斗(战斗信号)[/b][/size][/center]
所有检测信号都位于 [font=Courier New]DynamicReloadSpeed.ini[/font] 中的 [font=Courier New][Signals][/font] 段:
[list]
[][b]HostileNearby = 1:[/b] 扫描完整的 ped 池,按 [font=Courier New]ThreatRadius[/font]([font=Courier New]80.0[/font] 米)过滤,并检查最近的 [font=Courier New]MaxPedsScanned[/font]([font=Courier New]32[/font])个 ped 中是否有已警觉、正在与你或盟友交战的敌对者(即使在繁忙的城镇和营地中也能可靠检测新生成的敌人)。[/]
[][b]WantedByLaw = 1:[/b] 执法机关正在积极追捕(是正在进行的追逐,而不仅仅是背负未缴赏金)。[/]
[][b]RecentDamage = 1:[/b] 受到任何 ped 的伤害后,战斗状态会保持 [font=Courier New]DamageMemorySeconds[/font]([font=Courier New]8.0[/font] 秒)。[/]
[][b]AttackingHumans = 1:[/b] 瞄准或锁定人物时开枪会立即触发战斗,持续 [font=Courier New]DamageMemorySeconds[/font](绝不会因动物触发)。[/]
[][b]PlayerShooting = 1 与 ShootingSustainsCombat = 1:[/b] 任何开枪都算作战斗(有 2 秒的射击锁存,消除射击之间的状态闪烁),并且 [font=Courier New]ShootingSustainsCombat = 1[/font] 会在你持续射击时保持已激活的战斗状态。[/]
[][b]PlayerAiming = 1:[/b] [b]仅瞄准绝不会触发战斗[/b]——只有在附近有敌对者或近期受到伤害佐证时才会计入。[/]
[][b]Melee = 1:[/b] 近战战斗。[/]
[][b]DeadEye = 0:[/b] 已实现,默认关闭以避免安静骑行时误触发战斗;如有需要可设为 [font=Courier New]1[/font]。[/]
[/list][quote][b]给猎人 / 沉浸式玩家的提示:[/b]
在默认 [font=Courier New]PlayerShooting = 1[/font] 下,向鹿或其他野生动物开火会切换到快速的 [font=Courier New]COMBAT[/font] 换弹数秒。如果你希望猎杀动物的射击保持缓慢的 [font=Courier New]CALM[/font] 换弹速度,同时与人的枪战仍能通过 [font=Courier New]AttackingHumans = 1[/font]、[font=Courier New]HostileNearby = 1[/font]、[font=Courier New]WantedByLaw = 1[/font] 和 [font=Courier New]RecentDamage = 1[/font] 立即触发 [font=Courier New]COMBAT[/font],请打开 [font=Courier New]DynamicReloadSpeed.ini[/font] 并设置:
[font=Courier New]PlayerShooting = 0[/font]
[font=Courier New]PlayerAiming = 0[/font][/quote][line]
[center][size=4][b]预设与控制[/b][/size][/center]
[font=Courier New]presets\[/font] 中包含三个平衡预设(将你选择的文件复制覆盖 [font=Courier New]DynamicReloadSpeed.ini[/font] 并按 [font=Courier New]F9[/font]):
[list]
[][b]realistic.ini[/b](默认随附配置)——秒表校准的缓慢脱战节奏,战斗中为原版速度。[/]
[][b]subtle.ini[/b](轻微减慢,系数 [font=Courier New]0.6[/font])——脱战时明显从容,但更接近原版。[/]
[][b]hardcore.ini[/b](强烈减慢,系数 [font=Courier New]1.5[/font])——如果你在检查周围环境前粗心换弹,脱战换弹会极具惩罚性。[/]
[/list][b]默认热键(可在 [font=Courier New][Debug][/font] 中重新映射):[/b]
[list]
[][b]F7[/b]([font=Courier New]HotkeyToggleMod[/font])——在运行时干净地启用/禁用插件,无需重启游戏(恢复你启动时的 [font=Courier New]weapons.ymt[/font] 启动快照值;重新开启时总是从 [font=Courier New]CALM[/font] 开始)。[/]
[][b]F8[/b]([font=Courier New]HotkeyForceCombat[/font])——强制进入 [font=Courier New]COMBAT[/font] 状态以供测试。[/]
[][b]F9[/b]([font=Courier New]HotkeyReloadConfig[/font])——无需重启游戏即可实时重新加载 [font=Courier New]DynamicReloadSpeed.ini[/font]。[/]
[][font=Courier New]OnScreenState = 0[/font](默认关闭;设为 [font=Courier New]1[/font] 可显示版本、状态、冷却、敌对者数量,以及当前激活的右手/左手武器换弹速度——包括 [font=Courier New]x2[/font] 或两行双持显示——也可查看 [font=Courier New]DynamicReloadSpeed.log[/font])。[/]
[/list][line]
[center][size=4][b]兼容性与已知限制[/b][/size][/center]
[list]
[][b]NPC 共享全局换弹数据(重要):[/b] [font=Courier New]CWeaponInfo[/font] 的换弹速度是全局游戏数据,因此 NPC 会与玩家一同受到影响——敌人在脱战时换弹缓慢,战斗中为原版速度。本版本中不存在按角色隔离的机制。[/]
[][b]排除的武器:[/b] 近战武器、投掷武器、弓,以及固定式火炮/固定枪械被有意排除。[/]
[][b]Weapon Familiarity Exposed:[/b] [b]100% 兼容。[/b] 它修改的是独立的 Familiarity 属性乘数块而非 [font=Courier New]AnimReloadRate[/font],因此你获得的 Familiarity 加成会在 [font=Courier New]CALM[/font] 和 [font=Courier New]COMBAT[/font] 两种状态上干净地叠加缩放换弹速度。[/]
[][b]Weapon Condition Exposed and Restored:[/b] [b]在默认设置下([font=Courier New]PatchSectionedReload = 0[/font])100% 兼容。[/b] 其磨损修正和恢复的换弹失误钩子保留了干净武器与磨损武器之间的差异,并在 [font=Courier New]CALM[/font] 和 [font=Courier New]COMBAT[/font] 两种换弹速度上动态相乘叠加。[b]不要[/b]在同时使用 [i]Weapon Condition Exposed and Restored[/i] 时启用实验性的 [font=Courier New]PatchSectionedReload = 1[/font] 设置,因为两个模组都会写入磨损分段换弹块,[i]Dynamic Reload Speed[/i] 会放弃冲突的目标。[/]
[][b]No Automatic Reload / Early Reload Cancel / Weapon Behavior Enhancements:[/b] [b]100% 兼容[/b]——它们都不会覆盖 [font=Courier New]AnimReloadRate[/font]。[/]
[][b]LML [font=Courier New]weapons.ymt[/font] 大修(例如 Catalogue Improvements、Ped Damage Overhaul、武器重新平衡):[/b] 兼容。在原版或已被减慢的 [font=Courier New]weapons.ymt[/font] 文件上,[font=Courier New]Mode = auto[/font] 会在启动后捕获你已加载的值,并在 [font=Courier New]CALM[/font] 和 [font=Courier New]COMBAT[/font] 之间干净切换。对于高度定制的第三方武器大修,[font=Courier New][Profiles][/font] 下还提供了专用的 [font=Courier New]Mode = manual[/font] 设置。[/]
[][b]其他内存修补式换弹模组:[/b] 如果另一个脚本写入内存中完全相同的 [font=Courier New]AnimReloadRate[/font] 字段,内置的连续性检查会检测到外来写入,仅放弃冲突的武器目标以避免不稳定,并保持其余部分正常工作。[/]
[][b]已验证游戏版本:[/b] 已在 PC 版本 [font=Courier New]1.0.1491.50[/font] 上测试(包括原版 [font=Courier New]weapons.ymt[/font] 和减慢的大修配置)。字段偏移和类标记在你每次启动时于你的机器上测量;如果未来的游戏更新改变了内部布局导致共识失败,插件不会触碰游戏,并会记录原因。[/]
[/list][line]
[center][size=4][b]隐私与验证(SHA-256)[/b][/size][/center]
[list]
[][b]零网络访问、零遥测、零数据收集。[/b] 插件仅读取 [font=Courier New]DynamicReloadSpeed.ini[/font],仅写入 [font=Courier New].asi[/font] 旁的 [font=Courier New]DynamicReloadSpeed.log[/font]。日志行省略文件夹路径,因此你的 Windows 用户名绝不会暴露。[/]
[][b]SHA-256([font=Courier New]DynamicReloadSpeed-1.2.1.zip[/font]):[/b] [font=Courier New]b7637dc167dd398318f3644b5a1ad9b5280cabc13e14270b46b0e32445eee29f[/font][/]
[][b]SHA-256([font=Courier New]DynamicReloadSpeed.asi[/font]):[/b] [font=Courier New]13f573bc1241a701f97fde0506a7d14a63cf02ee5c7b97c7cb986b1e336b5ae7[/font][/]
[/list][line]
[center][size=4][b]更新日志与版本历史[/b][/size][/center]
[spoiler]
[b]v1.2.1 — 首次公开发布[/b]
[list]
[][b]新增(双持叠加显示):[/b] 当 [font=Courier New]OnScreenState = 1[/font] 时,调试指示器和日志现在会追踪副手挂载点([font=Courier New]attachPoint = 1[/font])。两把相同的手枪在第二行显示为 [font=Courier New]x2[/font];两把不同的手枪在第二行显示右手枪,第三行显示左手枪(各自带有自己的换弹速度)。右手持随身武器而左手持已放下的长枪时会被正确忽略。[/]
[][b]新增(恢复回读验证):[/b] 从不可变启动快照恢复的每个字段(在 [font=Courier New]F7[/font] 关闭、脚本卸载、进程退出或在线会话检测时)现在都会通过写入后回读检查进行验证,并在 [font=Courier New]debug[/font] 级别单独记录([font=Courier New]restored: ... -> ... (boot snapshot), read back ...[/font])。[/]
[][b]修复(射击锁存 / 冷却闪烁):[/b] 玩家射击现在会让射击信号保持激活 2 秒([font=Courier New]kShotHoldMs[/font]),而不是单次检测器轮询。消除了枪战中连续射击之间 [font=Courier New]COMBAT <-> COOLDOWN[/font] 状态的闪烁(约 266 毫秒的间隙)。[/]
[][b]修复(强制战斗切换重置):[/b] 使用 [font=Courier New]HotkeyToggleMod[/font]([font=Courier New]F7[/font])关闭插件现在会自动清除 [font=Courier New]HotkeyForceCombat[/font]([font=Courier New]F8[/font]),因此模组在重新开启时总是干净地以 [font=Courier New]CALM[/font] 恢复。[/]
[][b]修复(未列出枪械类别过滤):[/b] [font=Courier New]IncludeUnlistedGuns[/font] 现在除了 [font=Courier New]IS_WEAPON_A_GUN[/font] 外,还要求有效的持握枪械武器类别([font=Courier New]Revolver[/font]、[font=Courier New]Pistol[/font]、[font=Courier New]Repeater[/font]、[font=Courier New]Rifle[/font]、[font=Courier New]Shotgun[/font] 或 [font=Courier New]Sniper[/font]),防止车辆伤害伪武器([font=Courier New]WEAPON_RAMMED_BY_CAR[/font]、[font=Courier New]WEAPON_RUN_OVER_BY_CAR[/font])被纳入。[/]
[/list][b]v1.2.0 — 类标记解析器与零系统调用切换[/b]
[list]
[][b]性能(消除切换卡顿):[/b] 从运行时写入路径中移除了所有逐字段的 [font=Courier New]VirtualQuery[/font] 系统调用。内存区域和可写页保护在后台启动扫描期间一次性缓存(且页保护永不修改)。在 [font=Courier New]CALM[/font] 和 [font=Courier New]COMBAT[/font] 之间切换全部 59 个武器结构现在仅需 [b]0.02–0.09 毫秒[/b](v1.1.0 中为 406–594 毫秒)。[/]
[][b]修复(确定性的 CWeaponInfo 类识别):[/b] 用数据驱动的 [font=Courier New]CWeaponInfo[/font] 类标记发现替换了“仅合理性”的回退绑定(每把武器收集最多 4,096 个名称哈希匹配,学习类 vtable 指针偏移,在严格模式下用换弹速度共识验证,并运行第二遍类扫描)。全部 59 个被追踪的武器名称——包括 [b]LeMat Revolver[/b]、[b]Navy Revolver[/b]、[b]M1899 Pistol[/b]、[b]Evans Repeater[/b]、[b]Elephant Rifle[/b] 和 [b]High Roller Double-Action Revolver[/b]([font=Courier New]WEAPON_REVOLVER_DOUBLEACTION_GAMBLER[/font])——现在在原版和减慢的 [font=Courier New]weapons.ymt[/font] 配置下,跨游戏启动都能确定性地绑定。[/]
[][b]新增(逐帧射击轮询与人物目标检测):[/b] [font=Courier New]IS_PED_SHOOTING[/font] 现在每帧轮询,因此单发射击不会从 4 Hz 的检测器间隔中漏掉。新增 [font=Courier New]AttackingHumans[/font](即使 [font=Courier New]PlayerShooting = 0[/font],向人类 ped 射击时也会触发战斗,同时忽略动物)和 [font=Courier New]ShootingSustainsCombat[/font]。[/]
[][b]修复(拥挤区域敌对检测):[/b] [font=Courier New]HostileNearby[/font] 现在读取完整的 ped 池(最多 1,024 个 ped),按 [font=Courier New]ThreatRadius[/font] 过滤,并按距离而非池顺序检查最近的 [font=Courier New]MaxPedsScanned[/font](32)个 ped,确保营地和城镇中新生成的敌人总能被检测到。[/]
[][b]变更(默认字段范围与自动模式):[/b] [font=Courier New]PatchSectionedReload[/font] 现在默认为 [font=Courier New]0[/font](默认仅修补 [font=Courier New]AnimReloadRate[/font],与秒表校准一致,且不触碰武器磨损块)。改进了 [font=Courier New]Mode = auto[/font] 的逐结构原版与减慢分类,带有详细的 [font=Courier New]plan:[/font] 日志行,并在调试叠加层中添加了当前手持武器显示。[/]
[/list][b]v1.1.0 — 游戏玩法等待、双遍共识与变体扩展[/b]
[list]
[][b]新增:[/b] 后台内存扫描现在会等到加载屏幕结束且游戏世界淡入后([font=Courier New]IS_SCREEN_FADED_IN[/font] + 5,000 毫秒稳定延迟)才开始。[/]
[][b]新增:[/b] 双遍偏移共识,支持内存中原版([font=Courier New]1.00[/font] / [font=Courier New]1.30[/font])和减慢([font=Courier New]Calm_*[/font])的 [font=Courier New]AnimReloadRate[/font] 签名。[/]
[][b]新增:[/b] 武器表从 24 个基础武器扩展到 57 个条目(覆盖独特/具名剧情变体、[font=Courier New]_MEXICAN[/font] 和 [font=Courier New]_DUALWIELD[/font] 条目,并使用最长前缀 INI 匹配)。[/]
[][b]修复:[/b] 将 [font=Courier New]UIDEBUG[/font] 屏幕状态渲染([font=Courier New]OnScreenState = 1[/font])从 4 Hz 检测器间隔移至每个 tick,消除文字闪烁。[/]
[/list][b]v1.0.0 — 初始原型[/b]
[list]
[][b]新增:[/b] 核心 [font=Courier New]CALM -> COMBAT -> COOLDOWN -> CALM[/font] 状态机,在换弹进行中延迟写入([font=Courier New]deferred: reloading[/font])。[/]
[][b]新增:[/b] Joaat 名称哈希内存解析器,带共识偏移发现(零硬编码地址或字节模式)、不可变启动快照,以及卸载/关闭时完整恢复。[/]
[][b]新增:[/b] 直接读取 [font=Courier New]VS_VERSIONINFO[/font] 的游戏版本读取器([font=Courier New]GameBuild.cpp[/font]),支持版本 [font=Courier New]1.0.1491.50[/font],不依赖冻结的 SDK 版本枚举。[/]
[][b]新增:[/b] 秒表校准的换弹时序模型([font=Courier New]T = A/r + NL/(lrr) + Ntb[/font])和三个 INI 预设([font=Courier New]subtle.ini[/font]、[font=Courier New]realistic.ini[/font]、[font=Courier New]hardcore.ini[/font])。[/]
[/list][/spoiler]
[line]
[center][size=4][b]致谢[/b][/size][/center]
[list]
[]Kepmehz — [b]ScriptHookRDR2 V2[/b](运行时与 [font=Courier New]ScriptHookRDR2.lib[/font] 导入库)[/]
[]Alexander Blade — [b]Script Hook RDR2 SDK[/b]([font=Courier New]main.h[/font] 与 [font=Courier New]types.h[/font] C++ 头文件)[/]
[]alloc8or — [b]RDR3 NativeDB[/b](原生函数数据库与 [font=Courier New]natives.h[/font] 生成器)[/]
[]femga 与 Halen84 — RDR3 发现以及武器哈希/类别参考[/]
[/list][center][line]
╭────────────────────────────────────────────────────╮
[img]https://i.ibb.co/svmZc3pC/Reload-End.gif[/img]
╰────────────────────────────────────────────────────╯[/center]
正在加载版本记录…
正在加载评论…
评论在新手盒子客户端中发表,这里同步展示。