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

Commit b53fb20

Browse files
committed
Fix shove mechanic (4zK)
1 parent 373708d commit b53fb20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Base.rte/AI/HumanFunctions.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ function HumanFunctions.DoArmSway(actor, pushStrength)
9090
local armStrength = (arm.Mass + arm.Material.StructuralIntegrity) * pushStrength;
9191
for i = 1, dots do
9292
local part = CreateMOPixel("Smack Particle Light");
93-
part.Pos = arm.HandPos;
94-
part.Vel = Vector(handVector.X, handVector.Y):RadRotate(RangeRand(-0.1, 0.1)) * pushStrength + Vector(0, -0.5);
93+
part.Pos = arm.HandPos - Vector(handVector.X/2, handVector.Y /2);
94+
part.Vel = Vector(handVector.X, handVector.Y):RadRotate(RangeRand(-0.1, 0.1)) + Vector(0, -0.5);
9595
part.Mass = armStrength; part.Sharpness = math.random() * 0.1;
9696
part.Team = actor.Team; part.IgnoresTeamHits = true;
9797
MovableMan:AddParticle(part);

0 commit comments

Comments
 (0)