长剑的摇摆角度可以调整。

长剑的摇摆角度可以调整。

The Stagger angle of the Longsword can be adjusted,set 120. 长刀破刹角度可调整,当前mod设置左右都设置为120,初始90

长刀破刹角度可调 — LongswordBackbreakAngle v0.1.2 独立版

介绍

调整主角使用长刀命中时,原生背身攻击触发破刹的角度门槛。以敌人正后方为中心,分别设置敌人自身左侧和右侧允许的角度,左右不随相机变化。 无需快捷键。不改变伤害、攻击方向、距离、羽毛消耗或动画速度,不会强制所有攻击触发破刹。

当前默认设置

LeftAngle = 120,RightAngle = 120:左右各 120 度,水平示意总范围约 240 度。 此分享包保留本机当前 120/120 配置。原说明前部曾列出 90/90,那不是本包的默认值。 本机游戏原数据门槛为左右各 90 度;设为 90/90 可回到对应的原角度。

判定规则

  • 仅对本地主角长刀命中应用,不修改其他武器及通用 AttemptBackstab 背刺函数。
  • 原生蓄力/攻击资格、敌人体型、状态和实际命中条件仍需满足。
  • 沿用三维方向点积,高低差会影响结果,平面角度示意并非所有地形的精确范围。
  • 边界采用严格比较,恰好在边界上不算满足条件;180 度接近全方向,但精确正前方仍在边界上。
  • 位于正后方中心线时采用左右两侧中较窄的角度限制。
  • 仅在对应命中结算期间临时改变门槛,结算结束后恢复;异常时尝试恢复并停止本 Mod。

安装

需要兼容当前 PC 游戏的 UE4SS,支持脚本钩子及 LoopInGameThreadWithDelay。本包不含加载器。

  1. 完整退出游戏。
  2. 将包内 Project_Plague 文件夹合并复制到游戏根目录。
  3. 确认 Project_Plague\Binaries\Win64\ue4ss\Mods\LongswordBackbreakAngle\Scripts\main.lua 存在。
  4. 保留 enabled.txt 和 Scripts\BackbreakStartup.lua。启动保护已随包提供,不需要作者的 shared 文件夹。
  5. 如果 mods.txt 明确禁用 LongswordBackbreakAngle,请将对应项改为 1。
  6. 重启游戏,装备长刀并用符合破刹条件的攻击测试。 无需额外 PAK 或其他自制 Mod。升级前备份原配置,不要同时加载改名副本。

配置

退出游戏后编辑 Scripts\LongswordBackbreakConfig.lua: Enabled = true:总开关;false 为停用。 LeftAngle = 120:敌人自身左侧角度。 RightAngle = 120:敌人自身右侧角度。 Debug = false:诊断日志开关。 角度允许 0 至 180;数值越大范围越宽,0 表示关闭对应侧。 例如 LeftAngle=120、RightAngle=90,可只扩大左侧。修改后完整重启游戏,保留 Lua 逗号格式。

兼容、卸载和验证

可与独立的长刀出刀加速、锁定转向功能搭配;改写相同角度字段或伤害结算流程的 Mod 可能冲突。 退出游戏后移走 LongswordBackbreakAngle 文件夹即可卸载,不修改存档和游戏 PAK。 本包保留当前角度逻辑及 120/120 配置,仅将启动依赖改为包内独立模块名。 已检查 Lua 语法、模块依赖、配置和 ZIP 完整性;不同角度和敌人的实际破刹效果仍需实机验证。 反馈请提供 UE4SS.log 中 [LongswordBackbreakAngle] 的记录及角度配置。Ready 表示加载,Longsword hit 表示角度处理,不等于确认破刹成功。 不含个人记录、备份、SHA 校验文件或其他 Mod。

========================================

Adjustable Longsword Rear-Break Angle

LongswordBackbreakAngle v0.1.2 Standalone

Description

Adjusts the native rear-attack angle threshold for eligible longsword hits made by the local player. Angles are measured from directly behind the enemy, with independent limits for the enemy's own left and right sides, regardless of the camera. No hotkey is required. Does not change damage, attack direction, reach, feather cost, or animation speed, and does not force every attack to cause a rear break.

Package Defaults

LeftAngle = 120 and RightAngle = 120: 120 degrees on each side, approximately 240 degrees total in a horizontal illustration. This package preserves the installed 120/120 configuration. Older documentation listed 90/90; that is not this package's default. The original threshold in the inspected local game corresponds to 90 degrees per side. Set 90/90 to restore that angle.

Rules

  • Applies only to eligible local-player longsword hits. Does not change other weapons or the generic AttemptBackstab function.
  • Native charged-attack eligibility, enemy size/state, and actual hit requirements still apply.
  • Uses the original 3D direction dot product. Height differences affect results; a horizontal diagram is not an exact range for every terrain.
  • Comparisons are strict: exact boundary points do not qualify. A 180-degree setting approaches all-direction coverage, but directly in front remains on the boundary.
  • On the exact rear centerline, the narrower of the two side limits is used.
  • Temporarily changes the threshold during the relevant hit resolution and restores it afterward. On errors, attempts restoration and disables further processing.

Installation

Requires compatible UE4SS with the script's hooks and LoopInGameThreadWithDelay. The loader is not included.

  1. Fully close the game.
  2. Merge the archive's Project_Plague folder into the game root directory.
  3. Confirm Project_Plague\Binaries\Win64\ue4ss\Mods\LongswordBackbreakAngle\Scripts\main.lua exists.
  4. Keep enabled.txt and Scripts\BackbreakStartup.lua. The startup guard is bundled locally; the author's shared folder is not required.
  5. If mods.txt explicitly disables LongswordBackbreakAngle, change that entry to 1.
  6. Restart, equip a longsword, and test an attack that otherwise qualifies for a rear break. No extra PAK or custom mod is required. Back up existing settings before upgrading; avoid renamed duplicate copies.

Configuration

With the game closed, edit Scripts\LongswordBackbreakConfig.lua: Enabled = true: master switch; false disables the mod. LeftAngle = 120: enemy-relative left-side limit. RightAngle = 120: enemy-relative right-side limit. Debug = false: diagnostic logging. Allowed angles: 0 to 180. Larger values widen eligibility; 0 disables that side. For example, LeftAngle=120 and RightAngle=90 widens only the left side. Preserve Lua commas and restart after editing.

Compatibility, Uninstallation, and Validation

Can accompany separate longsword swing-speed and facing-assistance features. Mods rewriting the same angle field or damage-processing path may conflict. Close the game and remove LongswordBackbreakAngle to uninstall. Saves and game PAKs are not modified. Preserves current angle logic and 120/120 settings, redirecting only the startup dependency to a bundled, uniquely named module. Lua syntax, module dependencies, configuration, and ZIP integrity were checked. Actual results at different angles and against different enemies still require in-game testing. For support, include the angle settings and [LongswordBackbreakAngle] log entries. Ready confirms initialization; Longsword hit confirms angle processing, not a successful rear break. Personal records, backups, SHA files, and other mods are not included.