This repository was archived by the owner on Jun 11, 2020. It is now read-only.
grapple hook fix, add velocity inheritance#5
Open
JJRcop wants to merge 2 commits intoRoblox:masterfrom
Open
Conversation
Author
|
I will apply these changes to derivative grapple hooks shortly. |
ghost
reviewed
Aug 1, 2017
Items/Gear/30393548.rbxmx
Outdated
| Gravity = Workspace.Gravity | ||
| GrappleHook.Velocity = (GrappleHook.CFrame.lookVector * (Speed / Mass)) + Handle.Velocity | ||
| Force = Create("BodyForce"){ | ||
| force = Vector3.new(0, ((Gravity * Mass) - Fall), 0), |
Items/Gear/30393548.rbxmx
Outdated
| while CheckIfGrappleHookAlive() and ToolEquipped and CheckIfAlive() do | ||
| AdjustRope() | ||
| if Workspace.Gravity ~= Gravity and CheckIfForceAlive() then | ||
| Force.force = Vector3.new(0, ((Workspace.Gravity * GrappleHook:GetMass()) - Fall), 0) |
There was a problem hiding this comment.
Same comment as above: Force instead of force.
Author
|
Complied with @mark-otaris |
ghost
reviewed
Aug 1, 2017
Items/Gear/30393548.rbxmx
Outdated
| end | ||
|
|
||
| function CheckIfForceAlive() | ||
| return (((Force and Force.Parent and Force.Parent == GrappleHook) and true) or falce) |
Fixes grapple hook to work with HumanoidRootPart Now dynamically based off of Workspace.Gravity Projectile inherits Velocity of Handle when fired
Author
|
Could a staff member either transfer https://www.roblox.com/library/537260400/R15-Crouch to the ROBLOX account, or upload a new one and post it here? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes grapple hook to work with HumanoidRootPart
Now dynamically based off of Workspace.Gravity
Projectile inherits Velocity of Handle when fired
Fixed grapple hook trajectory to closely match the old trajectory, I downloaded an old version of studio and an old version of the grapple hook and adjusted numbers until they looked equivalent.
Did not add R15 crouch animation, would like that to happen in the future
StarWars uploaded one to his account, but it will not work for the masses and must be uploaded to the ROBLOX account