veterano1998 7 Posted January 5, 2018 Share Posted January 5, 2018 case POINT_STAMINA: { if (IsDead() || IsStun()) return; int prev_val = GetStamina(); amount = MIN(GetMaxStamina() - GetStamina(), amount); SetStamina(GetStamina() + amount); val = GetStamina(); if (val == 0) { // Stamina SetNowWalking(true); } else if (prev_val == 0) { ResetWalking(); } if (amount < 0 && val != 0) return; } break; Somebody helps me disable the stamina. This is the hidden content, please Sign In or Sign Up 5 1 Link to comment Share on other sites More sharing options...
ToKsick 0 Posted February 15, 2018 Share Posted February 15, 2018 I think if you remove called method " SetNowWalking(true);", character should not start walk after your stamina is low ... But i am not sure. Link to comment Share on other sites More sharing options...
Premium Syreldar 1875 Posted February 15, 2018 Premium Share Posted February 15, 2018 /* case POINT_STAMINA: { if (IsDead() || IsStun()) return; int prev_val = GetStamina(); amount = MIN(GetMaxStamina() - GetStamina(), amount); SetStamina(GetStamina() + amount); val = GetStamina(); if (val == 0) { // Stamina SetNowWalking(true); } else if (prev_val == 0) { ResetWalking(); } if (amount < 0 && val != 0) return; } break; */ done..? "Nothing's free in this life. Ignorant people have an obligation to make up for their ignorance by paying those who help them. Either you got the brains or cash, if you lack both you're useless." Syreldar Link to comment Share on other sites More sharing options...
Forum Moderator Raylee 656 Posted February 17, 2018 Forum Moderator Share Posted February 17, 2018 #moved Best regards Raylee Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now