Guest User

Untitled

a guest
Aug 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. // Begin Follower Speed Mod FULLER
  2. bool mOnHorse = (m_Mobile.ControlTarget.Mount != null);
  3. Direction mDirection = m_Mobile.ControlTarget.Direction;
  4. bool mRunning = ((mDirection & Direction.Running) != 0);
  5. bool WMR;
  6. if (m_Mobile.CurrentSpeed < .2 || (mOnHorse && !(m_Mobile.Body.IsHuman && !m_Mobile.Mounted)))
  7. {
  8. m_Mobile.CurrentSpeed = (mRunning ? .1 : .15);
  9. WMR = WalkMobileRange(m_Mobile.ControlTarget, 2, true, Utility.Random(0, 2), 3);
  10. }
  11. else
  12. {
  13. m_Mobile.CurrentSpeed = (mRunning ? .2 : .25);
  14. WMR = WalkMobileRange(m_Mobile.ControlTarget, 2, mRunning, Utility.Random(0, 2), 3);
  15. }
  16. if (WMR)
  17. {
  18. if (m_Mobile.Combatant != null && !m_Mobile.Combatant.Deleted && m_Mobile.Combatant.Alive && !m_Mobile.Combatant.IsDeadBondedPet)
  19. {
  20. m_Mobile.Warmode = true;
  21. m_Mobile.Direction = m_Mobile.GetDirectionTo(m_Mobile.Combatant);
  22. }
  23. else
  24. {
  25. m_Mobile.Warmode = false;
  26. }
  27. }
  28.  
  29. // End Follower Speed Mod
Add Comment
Please, Sign In to add comment