SHARE
TWEET

Untitled

a guest Jun 16th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void CHorseRider::UpdateHorseHealth(int iHealth, bool bSend)
  2. {
  3.     int level = GetHorseLevel();
  4.  
  5.     m_Horse.sHealth = MINMAX(0, m_Horse.sHealth + iHealth, c_aHorseStat[level].iMaxHealth);
  6.  
  7.     //if (level && m_Horse.sHealth == 0)
  8.     //  HorseDie();
  9.  
  10.     if (bSend)
  11.         SendHorseInfo();
  12. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top