Modification vitesse Maximum
Voici un patch à appliquer sur sources Mangos Nue pour débloquer la vitesse maximum de déplacement.
Fonctionne pour les commandes suivantes :
.modify aspeed
.modify speed
.modify fly
.modify swim
.modify bwalk

[code=diff]diff --git a/src/game/Level1.cpp b/src/game/Level1.cpp
index 1186818..1c51b8b 100644
--- a/src/game/Level1.cpp
+++ b/src/game/Level1.cpp
@@ -971,7 +971,7 @@ bool ChatHandler::HandleModifyASpeedCommand(char* args)

float modSpeed = (float)atof(args);

- if (modSpeed > 10 || modSpeed < 0.1)
+ if (modSpeed > 30 || modSpeed < 0.1)
{
SendSysMessage(LANG_BAD_VALUE);
SetSentErrorMessage(true);
@@ -1019,7 +1019,7 @@ bool ChatHandler::HandleModifySpeedCommand(char* args)

float modSpeed = (float)atof(args);

- if (modSpeed > 10 || modSpeed < 0.1)
+ if (modSpeed > 30 || modSpeed < 0.1)
{
SendSysMessage(LANG_BAD_VALUE);
SetSentErrorMessage(true);
@@ -1064,7 +1064,7 @@ bool ChatHandler::HandleModifySwimCommand(char* args)

float modSpeed = (float)atof(args);

- if (modSpeed > 10.0f || modSpeed < 0.01f)
+ if (modSpeed > 30.0f || modSpeed < 0.01f)
{
SendSysMessage(LANG_BAD_VALUE);
SetSentErrorMessage(true);
@@ -1109,7 +1109,7 @@ bool ChatHandler::HandleModifyBWalkCommand(char* args)

float modSpeed = (float)atof(args);

- if (modSpeed > 10.0f || modSpeed < 0.1f)
+ if (modSpeed > 30.0f || modSpeed < 0.1f)
{
SendSysMessage(LANG_BAD_VALUE);
SetSentErrorMessage(true);
@@ -1154,7 +1154,7 @@ bool ChatHandler::HandleModifyFlyCommand(char* args)

float modSpeed = (float)atof(args);

- if (modSpeed > 10.0f || modSpeed < 0.1f)
+ if (modSpeed > 30.0f || modSpeed < 0.1f)
{
SendSysMessage(LANG_BAD_VALUE);
SetSentErrorMessage(true);
[/code]

Have Fun !
Cordialement,
MacWarrior.

Retourner en haut Accueil