Jump to content

Slow Slide Problem


orel56000

Recommended Posts

1 minute ago, Khadeer143 said:

both r same lol it does not mean from acl or p panel xd!

it is not the same... when I look at the server fps its shows 170 (the black window) and the player fps is 55 cause its causing screen tires when its above

anyway its not what I wanted. I wanted to remove the delay when I'm sliding...

Link to comment
  • Moderators
local oldDirection
addEventHandler("onClientPreRender", root,
function ()
	local direction = getControlState ("left") and "left" or getControlState ("right") and "right"
	if direction then
		if oldDirection and direction ~= oldDirection then
			local x,y,z = getElementPosition(localPlayer)
			setElementPosition(localPlayer, x, y, z)
		end
		oldDirection = direction
	else
		oldDirection = nil
	end
end)

 

Quick and untested prototype. As well as my last one, iterate it yourself.

 

 

 

Link to comment
3 minutes ago, IIYAMA said:

local oldDirection
addEventHandler("onClientPreRender", root,
function ()
	local direction = getControlState ("left") and "left" or getControlState ("right") and "right"
	if direction then
		if oldDirection and direction ~= oldDirection then
			local x,y,z = getElementPosition(localPlayer)
			setElementPosition(localPlayer, x, y, z)
		end
		oldDirection = direction
	else
		oldDirection = nil
	end
end)

 

Quick and untested prototype. As well as my last one, iterate it yourself.

 

 

 

Not working, just reset my animation when I move left or right (to animation that not aiming)...

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...