Phobos icon indicating copy to clipboard operation
Phobos copied to clipboard

[Highly Customized] Directional armor

Open NetsuNegi opened this issue 8 months ago • 3 comments

  • 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

NetsuNegi avatar Apr 11 '25 05:04 NetsuNegi

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.

github-actions[bot] avatar Apr 11 '25 05:04 github-actions[bot]

As it is, I don't think this feature should be merged alone.

  1. From my experience, in C&C the control on rotation is lackluster and units rotate freely as they wish, it's very hard to control rotation. Imagine the player frustration of having directional armor and not being able to control what side your units face the enemy.
  2. In my opinion, this feature needs some sort of feedback to inform the players that the vehicle has been hit in a weaker spot. I've played the game AirMech, and there units light up or flash just a bit when they are being damaged, and when they are attacked from the rear -- they flash in red instead, providing intuitive feedback to the players. Maybe something like this could be done here? Or warheads could be given multiple anims (or weapons could be give multiple warheads) that will trigger depending on amount of damage/which direction is hit. Needs further consideration though, not sure what would be the best.

Also a side idea, I think maybe Crit logic would mesh nicely here? Modify Crit chance whether the armor is on front or back. Front could have 0%, sides 50%, back 100%.

Metadorius avatar Jun 18 '25 09:06 Metadorius

For the rotation controls, some potential ideas:

  1. "Face towards point" command (should be the easiest)
  2. "Forbid rotation" option for selected units (would require something to display that though)
  3. Move command that requires units to arrive facing some direction (basically hold and drag towards direction they need to face), but that I am not sure how well that would work in C&C

Metadorius avatar Jun 18 '25 18:06 Metadorius