Custom default movement system.
#1

Hello. I have noticed that some servers allow you to change your slow walk type and that your run animation is the one, that the character in default san andreas is using. Could someone explain me how do they code it?
Reply
#2

check this
https://sampwiki.blast.hk/wiki/UsePlayerPedAnims
Reply
#3

When a key is pressed, they check which style the player wants, and then applies the animation via ApplyAnimation.
Reply
#4

Quote:
Originally Posted by [CG]Milito
Посмотреть сообщение
Thanks.

Quote:
Originally Posted by Memoryz
Посмотреть сообщение
When a key is pressed, they check which style the player wants, and then applies the animation via ApplyAnimation.
Wouldnt a check on every forward key press lag the server? And wouldnt it make it possible for an intentionall attack on the server?
Reply
#5

Quote:
Originally Posted by Unri
Посмотреть сообщение
Thanks.



Wouldnt a check on every forward key press lag the server? And wouldnt it make it possible for an intentionall attack on the server?
Well, this is one way of accomplishing this, there are others, but I'm sure this method wouldn't cause much of an issue with lag, it all depends on the way you script it, and how you might optimize it to work efficiently.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)