¶ Introduction
In this tutorial we will increase the running speed by 3 times, it is quite the same to modify walking speed.
By default, to move faster in Ryzom Core you only need to make some modifications in the client, not in the server.
This behaviour could allow player to cheat quite easly, with such tools like "cheat engine".
Ryzom Core include an option that help to detect cheaters, and prevent palyers to move faster. If you choose to use this option and to accelerate players you have to make some modifications server side.
¶ Client side
We assume that $RYZOM_HOME contain the path to your Ryzom Core directory
RYZOM_HOME=/home/username/ryzomecore/
Edit the c++ file : $RYZOM_HOME/code/ryzom/client/src/client_cfg.cpp
Find this line :
Run = 6.0f; // Default Velocity for the Run.
We want to increase running speed by 3 times, so we modify 6.0f in 18.0f
Run = 18.0f; // Default Velocity for the Run.
Then you can compile again ryzom core.
Start your shard, connect to it using the ryzom_client(.exe) file generated during the compilation.
Now you run 3 times faster. If you are not sure that your character is faster, it is probably not. The speed difference is really obvious.
¶ Server side
If you want to make sure that player can't cheat too easly on there running speed you can activate a position checker.
Edit the config file : $RYZOM_HOME/code/ryzom/server/gpm_service.cfg
Add these lines at the end of the file
// Custom line to restrict CheckPlayerSpeed = 1; // Any players that move too fast are sent back. Default value 0 (OFF) SecuritySpeedFactor = 3.5; // Define the value for 'too fast'. Default value 1.5
If you experience some kind of "back in time" while running, you should increase the value for SecuritySpeedFactor.
¶ Warnings
- The CheckPlayerSpeed might be designed for debug purpose only according to $RYZOM_HOME/code/ryzom/server/src/gpm_service/variables.cpp
NLMISC_VARIABLE(bool, CheckPlayerSpeed, "Allow checking player speed -- debug only!");
- I assume that increase of SecuritySpeedFastor might not be the best way to check player speed. It must be better to find which .cpp or .h file define speed server side.
CurrentRunSpeed= BaseRunSpeed= 6.0f;