Use ShakeOnDeath instead of the hardcoded shaking for bridges
This commit is contained in:
@@ -378,7 +378,6 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
// Use .FromPos since this actor is killed. Cannot use Target.FromActor
|
// Use .FromPos since this actor is killed. Cannot use Target.FromActor
|
||||||
info.DemolishWeaponInfo.Impact(Target.FromPos(self.CenterPosition), saboteur, Enumerable.Empty<int>());
|
info.DemolishWeaponInfo.Impact(Target.FromPos(self.CenterPosition), saboteur, Enumerable.Empty<int>());
|
||||||
|
|
||||||
self.World.WorldActor.Trait<ScreenShaker>().AddEffect(15, self.CenterPosition, 6);
|
|
||||||
self.Kill(saboteur);
|
self.Kill(saboteur);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,6 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
// Use .FromPos since this actor is dead. Cannot use Target.FromActor
|
// Use .FromPos since this actor is dead. Cannot use Target.FromActor
|
||||||
Info.DemolishWeaponInfo.Impact(Target.FromPos(self.CenterPosition), saboteur, Enumerable.Empty<int>());
|
Info.DemolishWeaponInfo.Impact(Target.FromPos(self.CenterPosition), saboteur, Enumerable.Empty<int>());
|
||||||
|
|
||||||
self.World.WorldActor.Trait<ScreenShaker>().AddEffect(15, self.CenterPosition, 6);
|
|
||||||
self.Kill(saboteur);
|
self.Kill(saboteur);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -977,6 +977,9 @@
|
|||||||
ScriptTriggers:
|
ScriptTriggers:
|
||||||
BodyOrientation:
|
BodyOrientation:
|
||||||
QuantizedFacings: 1
|
QuantizedFacings: 1
|
||||||
|
ShakeOnDeath:
|
||||||
|
Duration: 15
|
||||||
|
Intensity: 6
|
||||||
|
|
||||||
^Crate:
|
^Crate:
|
||||||
Inherits@1: ^SpriteActor
|
Inherits@1: ^SpriteActor
|
||||||
|
|||||||
@@ -942,6 +942,9 @@
|
|||||||
QuantizedFacings: 1
|
QuantizedFacings: 1
|
||||||
Interactable:
|
Interactable:
|
||||||
Bounds: 96,48
|
Bounds: 96,48
|
||||||
|
ShakeOnDeath:
|
||||||
|
Duration: 15
|
||||||
|
Intensity: 6
|
||||||
|
|
||||||
^Rock:
|
^Rock:
|
||||||
Inherits@1: ^SpriteActor
|
Inherits@1: ^SpriteActor
|
||||||
|
|||||||
@@ -63,6 +63,9 @@ LOBRDG_A:
|
|||||||
ADestroyedSequences: adead
|
ADestroyedSequences: adead
|
||||||
BDestroyedSequences: bdead
|
BDestroyedSequences: bdead
|
||||||
ABDestroyedSequences: abdead
|
ABDestroyedSequences: abdead
|
||||||
|
ShakeOnDeath:
|
||||||
|
Duration: 15
|
||||||
|
Intensity: 6
|
||||||
|
|
||||||
LOBRDG_A_D:
|
LOBRDG_A_D:
|
||||||
Inherits: LOBRDG_A
|
Inherits: LOBRDG_A
|
||||||
@@ -99,6 +102,9 @@ LOBRDG_B:
|
|||||||
ADestroyedSequences: adead
|
ADestroyedSequences: adead
|
||||||
BDestroyedSequences: bdead
|
BDestroyedSequences: bdead
|
||||||
ABDestroyedSequences: abdead
|
ABDestroyedSequences: abdead
|
||||||
|
ShakeOnDeath:
|
||||||
|
Duration: 15
|
||||||
|
Intensity: 6
|
||||||
|
|
||||||
LOBRDG_B_D:
|
LOBRDG_B_D:
|
||||||
Inherits: LOBRDG_B
|
Inherits: LOBRDG_B
|
||||||
|
|||||||
Reference in New Issue
Block a user