Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Begin Follower Speed Mod FULLER
- bool mOnHorse = (m_Mobile.ControlTarget.Mount != null);
- Direction mDirection = m_Mobile.ControlTarget.Direction;
- bool mRunning = ((mDirection & Direction.Running) != 0);
- bool WMR;
- if (m_Mobile.CurrentSpeed < .2 || (mOnHorse && !(m_Mobile.Body.IsHuman && !m_Mobile.Mounted)))
- {
- m_Mobile.CurrentSpeed = (mRunning ? .1 : .15);
- WMR = WalkMobileRange(m_Mobile.ControlTarget, 2, true, Utility.Random(0, 2), 3);
- }
- else
- {
- m_Mobile.CurrentSpeed = (mRunning ? .2 : .25);
- WMR = WalkMobileRange(m_Mobile.ControlTarget, 2, mRunning, Utility.Random(0, 2), 3);
- }
- if (WMR)
- {
- if (m_Mobile.Combatant != null && !m_Mobile.Combatant.Deleted && m_Mobile.Combatant.Alive && !m_Mobile.Combatant.IsDeadBondedPet)
- {
- m_Mobile.Warmode = true;
- m_Mobile.Direction = m_Mobile.GetDirectionTo(m_Mobile.Combatant);
- }
- else
- {
- m_Mobile.Warmode = false;
- }
- }
- // End Follower Speed Mod
Add Comment
Please, Sign In to add comment