Make mobile repair vehicle - is it possible? TD

Information and discussion for custom maps and mods.
Post Reply
bodomalo
Posts: 37
Joined: Tue Feb 20, 2018 7:35 pm

Make mobile repair vehicle - is it possible? TD

Post by bodomalo » Sun Feb 25, 2018 7:11 pm

Do you think there is any way that I can make a

Hovercraft, that has the function of a mobile repair base? You move the vehicle onto it and it receives - on damage

So far I was only able to give it a weapon that does repairs...but that does not look really good. I want the vehicle to park on the hover and receive repairs.

Can a vehicle Inherit things from "FIX" ?

Giving it
RepairsUnits:
HpPerStep: 1000
Interval: 7
FinishRepairingNotification: UnitRepaired
PlayerExperience: 15
WithRepairAnimation:

Does not do anything...

Blackened
Posts: 308
Joined: Sat May 21, 2016 6:27 pm

Post by Blackened » Sun Feb 25, 2018 9:15 pm

The trait wiki https://github.com/OpenRA/OpenRA/wiki/Traits can help when trying to find what will work or what is wrong.

I think in this case though you need to add the new actor into acceptable places for vehicles to go to repairs.

User avatar
Inq
Posts: 89
Joined: Sun Sep 27, 2015 2:48 am

Post by Inq » Mon Feb 26, 2018 3:18 am

In defaults.yaml you need to add it to the list of places vehicles/tanks can repair.

^vehicle

Code: Select all

Repairable:
		RepairBuildings: fix, hovercraft
Personally, if you want things to drive onto it I think making it a deployable unit. That way it becomes a building and you can repair stuff, and then undeploy to move it again.

bodomalo
Posts: 37
Joined: Tue Feb 20, 2018 7:35 pm

Post by bodomalo » Mon Feb 26, 2018 2:24 pm

Inq wrote:
Personally, if you want things to drive onto it I think making it a deployable unit. That way it becomes a building and you can repair stuff, and then undeploy to move it again.


Hm..
The game crashed with: Actor type ^vehicle: Junk value `fix` on trait node RepairBuildings



But thanks for that idea, might be the only way, otherwise any vehicle becomes "cargo" when loaded onto the hoverboat


Other idea:
I was trying around a little bit with a "Repair-Weapon" that does healing. But it only works if I select the target/click on it (on allies). What would I have to do to make it auto-shoot on my own vehicles?

I inherited

User avatar
Graion Dilach
Posts: 260
Joined: Fri May 15, 2015 5:57 pm

Post by Graion Dilach » Wed Feb 28, 2018 11:46 pm

You need to update the autotarget stances in order for the weapon-based repair to function (also, turreted repair vehicles won't work).

You can look at the TS Repair Vehicle's code for it.
Image
Image
Image
AS Discord server: https://discord.gg/7aM7Hm2

Post Reply