How can I reduce sabotage damage in TD?

Information and discussion for custom maps and mods.
Post Reply
MarkG
Posts: 11
Joined: Mon Apr 24, 2023 7:18 pm

How can I reduce sabotage damage in TD?

Post 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

User avatar
Punsho
Posts: 145
Joined: Wed Jul 18, 2018 2:56 pm
Location: Lithuania

Re: How can I reduce sabotage damage in TD?

Post by Punsho »

See the OpenRA documentation https://docs.openra.net/en/release/traits/

Post Reply