When a player rides a mount, what code changes the player's moving speed?

longtianchi

Active Member
Mar 28, 2015
31
0
18
I looked at the code and found the Rider function.
But Rider function does not handle the code for ride actions.
I read the code for EtherealMount and BaseMount.
These base classes and interfaces did not find the ride action code
When a player rides a mount, what code changes the player's moving speed?
What code implements it?
 
Last edited:

Greystar

Well-Known Member
Feb 20, 2014
68
3
45
IL, US
Shard Name
Shadow Realm
I suspect the creature goes to the internal map when its mounted. However I don't know this for certain.
 

Po0ka

Well-Known Member
Aug 19, 2014
717
86
Antarctica
Root up from where you know, check the base classes, check the interface (probably IMountable or IRidable), and then search where that code is used.
It is most likely handled in the core itself, due to the possible packets it could send to the client.

To test if the mount ges to internal, do [props on it, ride it, change the page back and forth and spot the "map" property, and validate where it is.
 

longtianchi

Active Member
Mar 28, 2015
31
0
18
Root up from where you know, check the base classes, check the interface (probably IMountable or IRidable), and then search where that code is used.
It is most likely handled in the core itself, due to the possible packets it could send to the client.

To test if the mount ges to internal, do [props on it, ride it, change the page back and forth and spot the "map" property, and validate where it is.
IMountItem is the corresponding interface
But it doesn't handle mounts.
I am very upset.
This question puzzled me for a long time.
[doublepost=1542984536][/doublepost]@Dexter_Lexia has helped me solve this problem.
Thank you to everyone who helped me.
There is a ComputeMovementSpeed method in the Mobil.cs
This method judges Mounted to determine the speed of movement.
The Mounted Get method returns whether the player has a Layout.Mount item.
If there is one,it means that the player is in the ride state.
BaseMount class new a Iayout.Mount item.(m_InternalItem = new MountItem(this, itemID)
When players are riding,Gave players.(In the BaseMount.Rider method)
 
Last edited: