Jump to content

Slow Slide Problem


orel56000

Recommended Posts

Posted
Just now, Khadeer143 said:

make sure the server fps is 70-80 this will cause for aiming and moving

my server fps is 170, should I limit it to 75? if yes how?

Posted

open admin panel(p),go to tab server /look for fps limit make it 70 -80 your choice and press set now it  done

4 minutes ago, orel56000 said:

How to?

you can choose in btw 70-100 also but i prefer for 70-80 means 71,72,75 etc..80 any number

Posted

or open mtaserver.conf, look for <fpslimit>36</fpslimit> line and replace it with <fpslimit>70</fpslimit> after - stop and start your server.

Posted
1 minute ago, Khadeer143 said:

open admin panel(p),go to tab server /look for fps limit make it 70 -80 your choice and press set now it  done

You meant for players fps? I thought you meant for server fps...

Posted
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...

  • Moderators
Posted (edited)

What about setting the player his position when switching over to another direction?

Edited by IIYAMA
Posted
2 minutes ago, IIYAMA said:

What about setting the player his position when switching over to another direction?

I don't know how to do that, can you help me with that?

  • Moderators
Posted
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.

 

 

 

Posted
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)...

  • Moderators
Posted

You can also try instead of setting the position, freeze the position temporary(by 1 or 2 frames).

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...