• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Compiling Player.h

Tampek

ECHO 'Zarkonia.online';
Joined
Dec 29, 2015
Messages
480
Solutions
5
Reaction score
33
Location
Spain
Hello i change the speed max on sourcers but players can only run 1000 Max (Display on client)
The client is like a ghost and dont show current speed or i have issues on sources xD

static constexpr int32_t PLAYER_MAX_SPEED = 2000;
static constexpr int32_t PLAYER_MIN_SPEED = 10;

i changed it on player.h i need add or edit something from player.cpp too?

thnx for the advance
 
Hello i change the speed max on sourcers but players can only run 1000 Max (Display on client)
The client is like a ghost and dont show current speed or i have issues on sources xD

static constexpr int32_t PLAYER_MAX_SPEED = 2000;
static constexpr int32_t PLAYER_MIN_SPEED = 10;

i changed it on player.h i need add or edit something from player.cpp too?

thnx for the advance


Need to modify some letter [may be the ones that are at the beginning only as description of the source] so that the player.cpp also "compile" so that the player.h works ... with me it was like this.
 
look in protocolgame.cpp, look for player->getBaseSpeed()/2;

should be something like
Code:
msg.add<unit16_t>(player->getBaseSpeed() / 2);
 
look in protocolgame.cpp, look for player->getBaseSpeed()/2;

should be something like
Code:
msg.add<unit16_t>(player->getBaseSpeed() / 2);
unit16_t
d205614c9e64cd4faca77a6553d5869e.png
 
Not that strsnge, uint16_t has a range between 0-65535 and there's no real point in having a large buffer considering player's speed should at no point exceed 65535, that would just be insane.

On topic:
Simply change
Code:
static constexpr int32_t PLAYER_MAX_SPEED = 2000

to something like
Code:
static constexpr int32_t PLAYER_MAX_SPEED = 5000

The same logic applies here, speed much above 5000 (2500 client) would just be insane. Remember that GMs / any player with the maxspeed flag will always run at max speed.
 
Not that strsnge, uint16_t has a range between 0-65535 and there's no real point in having a large buffer considering player's speed should at no point exceed 65535, that would just be insane.

On topic:
Simply change
Code:
static constexpr int32_t PLAYER_MAX_SPEED = 2000

to something like
Code:
static constexpr int32_t PLAYER_MAX_SPEED = 5000

The same logic applies here, speed much above 5000 (2500 client) would just be insane. Remember that GMs / any player with the maxspeed flag will always run at max speed.
i was just messing with him, he typed unit instead of uint
 
Back
Top