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

Commit

Permalink
Fix shove mechanic (4zK)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximDude committed May 8, 2020
1 parent 373708d commit b53fb20
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Base.rte/AI/HumanFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ function HumanFunctions.DoArmSway(actor, pushStrength)
local armStrength = (arm.Mass + arm.Material.StructuralIntegrity) * pushStrength;
for i = 1, dots do
local part = CreateMOPixel("Smack Particle Light");
part.Pos = arm.HandPos;
part.Vel = Vector(handVector.X, handVector.Y):RadRotate(RangeRand(-0.1, 0.1)) * pushStrength + Vector(0, -0.5);
part.Pos = arm.HandPos - Vector(handVector.X/2, handVector.Y /2);
part.Vel = Vector(handVector.X, handVector.Y):RadRotate(RangeRand(-0.1, 0.1)) + Vector(0, -0.5);
part.Mass = armStrength; part.Sharpness = math.random() * 0.1;
part.Team = actor.Team; part.IgnoresTeamHits = true;
MovableMan:AddParticle(part);
Expand Down

0 comments on commit b53fb20

Please sign in to comment.