Discord: https://discord.gg/z4rndWJzwq
 
HomeUseful information for Helbreath beginnersStatistics overviewSearchMemberlistGalleryRulesRegisterLog in

 

 [CODE] No Correr al estar Sobrecargado

Go down 
2 posters
AuthorMessage
Centuu.-


Centuu.-

Diamond 1
Earned by having 144 posts & comments.
Civilian
Granted to members for high engagement.
Full Hero
Granted to members for great contributions.
Great Mentor
Granted to veteran members who exhibit helpful and sportsmanlike behavior.
Moderator
Earned by becoming a board moderator.

Likes : 17

[CODE] No Correr al estar Sobrecargado Empty
#1PostSubject: [CODE] No Correr al estar Sobrecargado   [CODE] No Correr al estar Sobrecargado 999104/3/2017, 1:21 am

El código en sí no permite correr al jugador al llevar muchos items encima. Todo se hace desde el cliente..

en la función
Code:
CGame::UpdateScreen_OnGame

Buscamos
Code:
if ( iUpdateRet == 0 ) m_sFrameCount++;
else m_sFrameCount+=256;

Y arriba de eso agregamos
Code:
if ((_iCalcTotalWeight()/100) >= (((m_iStr + m_iAngelicStr)*5) + m_iLevel*5) - 100) {
   if (m_bRunningMode) {
      m_bRunningMode = FALSE;
      AddEventList( NOTIFY_MSG_CONVERT_WALKING_MODE, 10 );
      AddEventList( "You're carrying too much to run!", 10 );
   }
} else {
   if (!m_bRunningMode) {
      m_bRunningMode = TRUE;
      AddEventList( NOTIFY_MSG_CONVERT_RUNNING_MODE, 10 );
   }
}

Code:
(_iCalcTotalWeight()/100) = Cantidad de peso que tiene

(((m_iStr + m_iAngelicStr)*5) + m_iLevel*5) - 100) = Cantidad de peso que puede llevar


Espero que les sirva.

Saludos.
Back to top Go down
maku22


maku22

Silver 4
Earned by having 12 posts & comments.

Likes : 1

[CODE] No Correr al estar Sobrecargado Empty
#2PostSubject: Re: [CODE] No Correr al estar Sobrecargado   [CODE] No Correr al estar Sobrecargado 999101/9/2020, 1:05 pm

Muy bueno gracias
Back to top Go down
 
[CODE] No Correr al estar Sobrecargado
Back to top 
Page 1 of 1
 Similar topics
-
» Get IP code
» [CODE] FPS Improvement
» [CODE] Multiplicador de experiencia
» [CODE] New Status
» [CODE] Fix Windows 8 - 10

Permissions in this forum:You cannot reply to topics in this forum
JoinHelbreath.net :: Development :: Code Posting-
Jump to: