mirror of
https://github.com/ND-Framework/ND_Core.git
synced 2026-08-18 22:36:03 +01:00
fix(client): rare rope glitch.
Sometimes the rope wouldn't attach to the nozzle when grabbed form the pump.
This commit is contained in:
@@ -132,7 +132,7 @@ function grabNozzleFromPump()
|
|||||||
while not RopeAreTexturesLoaded() do
|
while not RopeAreTexturesLoaded() do
|
||||||
Wait(0)
|
Wait(0)
|
||||||
end
|
end
|
||||||
RopeLoadTextures()
|
RopeLoadTextures()
|
||||||
while not pump do
|
while not pump do
|
||||||
Wait(0)
|
Wait(0)
|
||||||
end
|
end
|
||||||
@@ -141,6 +141,7 @@ function grabNozzleFromPump()
|
|||||||
Wait(0)
|
Wait(0)
|
||||||
end
|
end
|
||||||
ActivatePhysics(rope)
|
ActivatePhysics(rope)
|
||||||
|
Wait(50)
|
||||||
local nozzlePos = GetEntityCoords(nozzle)
|
local nozzlePos = GetEntityCoords(nozzle)
|
||||||
nozzlePos = GetOffsetFromEntityInWorldCoords(nozzle, 0.0, -0.033, -0.195)
|
nozzlePos = GetOffsetFromEntityInWorldCoords(nozzle, 0.0, -0.033, -0.195)
|
||||||
AttachEntitiesToRope(rope, pumpHandle, nozzle, pump.x, pump.y, pump.z + 1.45, nozzlePos.x, nozzlePos.y, nozzlePos.z, 5.0, false, false, nil, nil)
|
AttachEntitiesToRope(rope, pumpHandle, nozzle, pump.x, pump.y, pump.z + 1.45, nozzlePos.x, nozzlePos.y, nozzlePos.z, 5.0, false, false, nil, nil)
|
||||||
|
|||||||
Reference in New Issue
Block a user