Skip to content

Commit 91f42b9

Browse files
committed
"fix" remote and timed explosives from buy doors?
1 parent cc77978 commit 91f42b9

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Data/Base.rte/Devices/Explosives/RemoteExplosive/RemoteExplosiveDetonator.lua

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ function Create(self)
1010
end
1111

1212
function ThreadedUpdate(self)
13-
if self.ID ~= self.RootID then
14-
local actor = MovableMan:GetMOFromID(self.RootID);
15-
if MovableMan:IsActor(actor) then
16-
self.alliedTeam = ToActor(actor).Team;
17-
end
13+
local parent = self:GetRootParent();
14+
if MovableMan:IsActor(parent) then
15+
self.alliedTeam = ToActor(parent).Team;
1816
end
1917
if self.Magazine then
2018
if self:IsActivated() then

Data/Coalition.rte/Devices/Explosives/TimedExplosive/TimedExplosiveDeploy.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function Update(self)
2-
if self:IsActivated() and self.ID == self.RootID then
2+
if self:IsActivated() and not self:IsAttached() then
33
local explosive = CreateMOSRotating("Timed Explosive Active");
44
explosive.Pos = self.Pos;
55
explosive.Vel = self.Vel;

0 commit comments

Comments
 (0)