Phobos icon indicating copy to clipboard operation
Phobos copied to clipboard

Penetration damage on garrisonable structures

Open FS-21 opened this issue 1 year ago • 4 comments

  • Warheads can now damage garrisoned infantry at impact.
  • PenetratesGarrison Enables the logic.
    • PenetratesGarrison.RandomTarget specifies if the damage will go at some random garrisoned soldier or if all infantry should be damaged at the same time.
    • PenetratesGarrison.DamageMultiplier can be used to modify the damage applied against the garrisoned infantry. A random percentage value will be picked between the specified range.
    • PenetratesGarrison.CleanSound can be used to specify a sound to play when the structure lost all the garrisoned soldiers with this logic.
    • PenetratesGarrison.Allowed can be set on garrisonable buildings to protect the garrisoned infantry. If used on infantry these units won't affected by this logic.

In rulesmd.ini:

[SOMEWARHEAD]                                 ; WarheadType
PenetratesGarrison=false                      ; boolean
PenetratesGarrison.RandomTarget=true          ; boolean
PenetratesGarrison.DamageMultiplier=1.0,1.0   ; floating point value - single or comma-sep. range (percentages)
PenetratesGarrison.CleanSound=                ; sound entry

[SOMETECHNO]                                  ; TechnoType
PenetratesGarrison.Allowed=false              ; boolean

FS-21 avatar Aug 30 '24 11:08 FS-21

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 Aug 30 '24 11:08 github-actions[bot]

garrison-penetration-01 Reopened because I finally tested it online and is free of desyncs.

FS-21 avatar Aug 31 '24 09:08 FS-21

Isn't it similar to Ares Pass Through? https://ares-developers.github.io/Ares-docs/new/buildings/urbancombattrenches.html though, Ares did it through projectiles and buildings...

Fryone avatar Sep 15 '24 17:09 Fryone

There were some issues with that garrison logic that i do not remember right now, and this feature here might allow for better control over what can get cleared and what not. If anything, this one is much more intuitive.

mevitar avatar Sep 18 '24 00:09 mevitar