KOYK / Tiberian-Dawn-Original

The Original Tiberian Dawn In OpenRa Engine
GNU General Public License v3.0
8 stars 1 forks source link

Let docked units get captured along with their buildings. #99

Open MlemandPurrs opened 4 years ago

MlemandPurrs commented 4 years ago

In the original when you capture the Refinery while an Harvester is docked in there, you get ownership of the Harvester too along the Refinery. Same is true for Helicopters on a Helipad at the time of capture.

KOYK commented 4 years ago

Ive tested the helipad and the repair bay EDIT* in OpenRa, and indeed when you capture those you don't get the docked unit as well. It only works for the refinery.

UPDATE: I just tested ProximityCaptor trait as a possible solution and the effect did not work as intended, unfortunately ProximityCaptor does not support conditions. This needs code changes. :(

MlemandPurrs commented 4 years ago

Hmm, the helicopter thing might have been an campaign only thing then.

KOYK commented 4 years ago

Oh sorry I meant ive tested it on OpenRa, not in the original game. As far as I remember it works as you said in the original game including MP.

Ive edited my first post, sorry for the inconvenience.

KOYK commented 4 years ago

I tested this today in the original game in MP (just to be sure I remember it right) and indeed if you capture a helipad or a repair bay with a hostile unit on it, then you capture that unit as well. It seems though that if you try to capture the repair bay from its top, some times you get a bug and cant capture it from that position, but still you can capture it from other angles.