Paradrop Production

This commit is contained in:
Bynnar18
2016-01-04 03:01:09 -06:00
committed by Oliver Brakmann
parent 728bad9565
commit a9ffe0a779
9 changed files with 187 additions and 9 deletions

View File

@@ -21,15 +21,17 @@ namespace OpenRA.Mods.Common.Activities
readonly IPositionable pos;
readonly ParachutableInfo para;
readonly WVec fallVector;
readonly Actor ignore;
WPos dropPosition;
WPos currentPosition;
bool triggered = false;
public Parachute(Actor self, WPos dropPosition)
public Parachute(Actor self, WPos dropPosition, Actor ignoreActor = null)
{
um = self.TraitOrDefault<UpgradeManager>();
pos = self.TraitOrDefault<IPositionable>();
ignore = ignoreActor;
// Parachutable trait is a prerequisite for running this activity
para = self.Info.TraitInfo<ParachutableInfo>();
@@ -61,7 +63,7 @@ namespace OpenRA.Mods.Common.Activities
um.RevokeUpgrade(self, u, this);
foreach (var npl in self.TraitsImplementing<INotifyParachuteLanded>())
npl.OnLanded();
npl.OnLanded(ignore);
return NextActivity;
}