Skip to content

[Highly Customized] Directional armor #1623

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

NetsuNegi
Copy link
Contributor

@NetsuNegi NetsuNegi commented Apr 11, 2025

  • The damage suffered by the vehicle can now be affected by the hit direction.
  • 方向护甲逻辑,即受到的伤害量跟伤害来源方向有关。
  • The front and rear judgment ranges are always symmetrical. A front angle of 0.5 indicates that the front direction is the axis, and the 45 degree angle range on both sides belongs to the front judgment range.
    A front angle of 1.0 indicates that the 90 degree angle range on both sides belongs to the front judgment range;
  • 判定范围始终都是对称的,正面0.5表示以车头方向为轴,左右各45度角范围内均属于正面判断范围,1.0则表示左右各90度均为正面判定范围。
  • The lateral range refers to the remaining angle range after excluding the front and back sides.
  • 侧面范围是除开正面和背面后剩余的角度范围。
  • The warhead needs to have Directional=true to enable this effect.
  • 弹头需要具有Directional=true以启用此效果。
  • Directional.Multiplier is an additional multiplier used to control the intensity of the effect.
  • Directional.Multiplier是一个用来控制效果程度的额外乘数。

In rulesmd.ini

[CombatDamage]
DirectionalArmor=false                 ; boolean
DirectionalArmor.FrontMultiplier=1.0   ; float
DirectionalArmor.SideMultiplier=1.0    ; float
DirectionalArmor.BackMultiplier=1.0    ; float
DirectionalArmor.FrontField=0.5        ; float
DirectionalArmor.BackField=0.5         ; float

[SOMEVEHICLE]                          ; VehicleType
DirectionalArmor=                      ; boolean
DirectionalArmor.FrontMultiplier=      ; float
DirectionalArmor.SideMultiplier=       ; float
DirectionalArmor.BackMultiplier=       ; float
DirectionalArmor.FrontField=           ; float
DirectionalArmor.BackField=            ; float

[SOMEWARHEAD]
Directional=false                      ; boolean
Directional.Multiplier=1.0             ; float

Copy link

github-actions bot commented Apr 11, 2025

Nightly build for this pull request:

This comment is automatic and is meant to allow guests to get latest nightly builds for this pull request without registering. It is updated on every successful build.

@TaranDahl TaranDahl added the ⚙️T2 T2 maintainer review is sufficient label Apr 12, 2025
@NetsuNegi NetsuNegi added ⚙️T1 T1 maintainer review is sufficient and removed ⚙️T2 T2 maintainer review is sufficient labels Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs testing ❓New feature ⚙️T1 T1 maintainer review is sufficient
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants