Page 1 of 1

How can I reduce sabotage damage in TD?

Posted: Sun May 07, 2023 10:31 pm
by MarkG
I'm making a diver unit for a water map, and I wanted to reduce the damage it does when it sabotages things. But I can't figure it out; can anyone help?

^TechBuilding:
Capturable:
Types: Tech-building

Diver:
Inherits: ^Soldier
Inherits@selection: ^SelectableSupportUnit
Valued:
Cost: 0
Tooltip:
Name: Diver
UpdatesPlayerStatistics:
AddToArmyValue: true
Buildable:
BuildPaletteOrder: 30
Prerequisites: barracks
Queue: Infantry.GDI, Infantry.Nod
Description: Damages and captures enemy structures.\n Repairs destroyed vehicles\n Unarmed
Mobile:
Locomotor: lcraft
Speed: 100
Health:
HP: 3000
Passenger:
CustomPipType: yellow
CaptureManager:

Captures@SABOTAGE:
CaptureTypes: building-sabotage
SabotageThreshold: 5
PlayerExperience: 50

Captures@CAPTURES:
CaptureTypes: Tech-building
PlayerExperience: 50
-AttackFrontal:
RenderSprites:
Image: E6

Re: How can I reduce sabotage damage in TD?

Posted: Mon May 08, 2023 11:00 am
by Punsho
See the OpenRA documentation https://docs.openra.net/en/release/traits/