Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit cac4939

Browse files
committed
Grapple gun stance bugfix
1 parent e87d818 commit cac4939

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Base.rte/Devices/Tools/GrappleGun/GrappleGun.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ AddDevice = HDFirearm
168168
AddToGroup = Tools
169169
Description = Use this to climb walls and descend dangerous drops! Control the length of the rope by crouching and then holding up/down or scrolling up/down. Reload or double tap crouch to release the hook.
170170
Mass = 5
171-
Sharpness = 0
172171
HitsMOs = 0
173172
GetsHitByMOs = 1
174173
ScriptPath = Base.rte/Devices/Tools/GrappleGun/GrappleGun.lua

Base.rte/Devices/Tools/GrappleGun/GrappleGun.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ function Update(self)
3434
if self.Magazine then
3535
-- Double tapping crouch retrieves the hook
3636
if self.Magazine.Scale == 1 then
37+
self.StanceOffset = Vector(ToMOSprite(self:GetParent()):GetSpriteWidth(), 1);
38+
self.SharpStanceOffset = Vector(ToMOSprite(self:GetParent()):GetSpriteWidth(), 1);
3739
if controller and controller:IsState(Controller.BODY_CROUCH) then
3840
if self.canTap then
3941
controller:SetState(Controller.BODY_CROUCH, false);
@@ -73,8 +75,6 @@ function Update(self)
7375
else
7476
self:Deactivate();
7577
end
76-
self.StanceOffset = Vector(ToMOSprite(self:GetParent()):GetSpriteWidth(), 1);
77-
self.SharpStanceOffset = Vector(ToMOSprite(self:GetParent()):GetSpriteWidth(), 1);
7878
if self.Magazine then
7979
self.Magazine.RoundCount = 1;
8080
self.Magazine.Scale = 1;

0 commit comments

Comments
 (0)