File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed
Base.rte/Devices/Shared/Scripts
Browncoats.rte/Devices/Shields/Eruptor Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ function Create(self)
6
6
end
7
7
function ThreadedUpdate (self )
8
8
9
+ self .shieldWalkSound .Pos = self .Pos ;
9
10
self .parent = self :GetRootParent ();
10
11
11
12
if IsAHuman (self .parent ) then
@@ -15,10 +16,4 @@ function ThreadedUpdate(self)
15
16
end
16
17
end
17
18
18
- end
19
-
20
- function Update (self )
21
-
22
- self .shieldWalkSound .Pos = self .Pos ;
23
-
24
19
end
Original file line number Diff line number Diff line change 51
51
52
52
function ThreadedUpdate (self )
53
53
54
+ self .bashWindupSound .Pos = self .Pos ;
55
+ self .bashSwingSound .Pos = self .Pos ;
56
+
54
57
if self .equippedInMainHand then
55
58
if not self .bashCoolDown then
56
59
if self :IsActivated () then
@@ -74,6 +77,7 @@ function ThreadedUpdate(self)
74
77
self .bashActive = false ;
75
78
self .bashTimer :Reset ();
76
79
self .bashCoolDown = true ;
80
+ self .hitActor = nil ;
77
81
self .StanceOffset = self .origStanceOffset ;
78
82
self .SharpStanceOffset = self .origSharpStanceOffset ;
79
83
elseif self .bashTimer :IsPastSimMS (self .bashWindupTime ) then
114
118
115
119
function SyncedUpdate (self )
116
120
117
- if MovableMan :ValidMO (self .hitActor ) then
121
+ if self . hitActor and MovableMan :ValidMO (self .hitActor ) then
118
122
local ctrl = self .hitActor :GetController ();
119
123
120
124
self .hitActor .Status = math.max (1 , self .hitActor .Status );
@@ -152,13 +156,6 @@ function SyncedUpdate(self)
152
156
153
157
end
154
158
155
- function Update (self )
156
-
157
- self .bashWindupSound .Pos = self .Pos ;
158
- self .bashSwingSound .Pos = self .Pos ;
159
-
160
- end
161
-
162
159
function Destroy (self )
163
160
164
161
end
You can’t perform that action at this time.
0 commit comments