Topic: [QUESTION]XXLDDRace tiles?
How work XXLDDRace/DDRace tiles?
Why "@XXLTomate" (mybe) just add new TILE_... in mapitems.h and initialized him in character.cpp??? AND WHY IT WORK EXAMPLE TILE_XXL???
mapitems.h
TILE_RAINBOW=176,
TILE_XXL, //Between TILE_RAINBOW and TILE_ADMIN
TILE_ADMIN,
charecter.cpp
if(((m_TileIndex == TILE_XXL) || (m_TileFIndex == TILE_XXL)))
{
if (m_LastIndexTile == TILE_XXL || m_LastIndexFrontTile == TILE_XXL)
return;
char aBuf[256];
if (m_FastReload)
{
m_FastReload = false;
m_ReloadMultiplier = 1000;
str_format(aBuf, sizeof(aBuf), "XXL disabled");
}
else
{
m_FastReload = true;
m_ReloadMultiplier = 10000;
str_format(aBuf, sizeof(aBuf), "XXL enabled");
}
GameServer()->SendChatTarget(m_pPlayer->GetCID(), aBuf);
}
Why it work? I did the same and it didn't work.
1. [Coding-Tutorial](RUS)#1 Compiling
2. [Coding-Tutorial](RUS)#1 System Command