Skip to content

Commit 4254cda

Browse files
committed
make AI not miss every revolver shot
1 parent 4e5692b commit 4254cda

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Data/Browncoats.rte/Devices/Weapons/Extinction/Extinction.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ function Update(self)
103103
end
104104
end
105105

106-
if self.otherHandGun or not self.parent.BGArm or not self.parent.FGArm then
106+
local playerControlled = self.parent:IsPlayerControlled()
107+
108+
if self.otherHandGun or not self.parent.BGArm or not self.parent.FGArm or not playerControlled then
107109
self.FullAuto = false;
108110
if self.fanFire then
109111
--self.FullAuto = false;
@@ -115,9 +117,13 @@ function Update(self)
115117
self.ShakeRange = self.origShakeRange;
116118
self.SharpShakeRange = self.origSharpShakeRange;
117119
end
120+
if not playerControlled then
121+
self.RateOfFire = 70;
122+
end
118123
else
119124
self.FullAuto = true;
120125
self.reloadDelay = 150;
126+
self.RateOfFire = 300;
121127
end
122128
else
123129
self.parent = nil;

0 commit comments

Comments
 (0)