orel56000 Posted February 1, 2018 Posted February 1, 2018 Hi, When I'm aiming and moving from side to side it is moving very slow and I want it to move as it's moving in SA:MP someone knows how to do that? Here's a video that shows my problem: https://www.youtube.com/watch?v=JkHkbGbnE8Q Thanks for helpers!!
JeViCo Posted February 1, 2018 Posted February 1, 2018 (edited) try this: https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle SA:MP use default CJ's walking while MTA - Default player's Edited February 1, 2018 by JeViCo
orel56000 Posted February 1, 2018 Author Posted February 1, 2018 47 minutes ago, JeViCo said: try this: https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle SA:MP use default CJ's walking while MTA - Default player's so the id of the walking style on the MTA is 0 while the style on the SA:MP is 54?
Storm-Hanma Posted February 1, 2018 Posted February 1, 2018 make sure the server fps is 70-80 this will cause for aiming and moving
orel56000 Posted February 1, 2018 Author Posted February 1, 2018 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?
orel56000 Posted February 1, 2018 Author Posted February 1, 2018 3 minutes ago, Khadeer143 said: yes make it always 70-80 only How to? 1 hour ago, JeViCo said: try this: https://wiki.multitheftauto.com/wiki/SetPedWalkingStyle SA:MP use default CJ's walking while MTA - Default player's It is not working, still slow slides
Storm-Hanma Posted February 1, 2018 Posted February 1, 2018 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
JeViCo Posted February 1, 2018 Posted February 1, 2018 or open mtaserver.conf, look for <fpslimit>36</fpslimit> line and replace it with <fpslimit>70</fpslimit> after - stop and start your server.
orel56000 Posted February 1, 2018 Author Posted February 1, 2018 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...
Storm-Hanma Posted February 1, 2018 Posted February 1, 2018 (edited) both r same lol it does not mean from mta config or p panel xd! Edited February 1, 2018 by Khadeer143
orel56000 Posted February 1, 2018 Author Posted February 1, 2018 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 IIYAMA Posted February 1, 2018 Moderators Posted February 1, 2018 Samp sliding looks like a . It is probably something build in to improve the syncs. Maybe it is included in a glitch: (not sure) https://wiki.multitheftauto.com/wiki/SetGlitchEnabled
orel56000 Posted February 1, 2018 Author Posted February 1, 2018 1 minute ago, IIYAMA said: Samp sliding looks like a . It is probably something build in to improve the syncs. Maybe it is included in a glitch: (not sure) https://wiki.multitheftauto.com/wiki/SetGlitchEnabled i've tried it already with no success
Moderators IIYAMA Posted February 1, 2018 Moderators Posted February 1, 2018 (edited) What about setting the player his position when switching over to another direction? Edited February 1, 2018 by IIYAMA
orel56000 Posted February 1, 2018 Author Posted February 1, 2018 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 IIYAMA Posted February 1, 2018 Moderators Posted February 1, 2018 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.
orel56000 Posted February 1, 2018 Author Posted February 1, 2018 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 IIYAMA Posted February 1, 2018 Moderators Posted February 1, 2018 You can also try instead of setting the position, freeze the position temporary(by 1 or 2 frames).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now