[C++] Pokemon Ghost System
Fala galera da Eks, hoje eu venho postar pra vocês um conteúdo que particularmente eu acho muito bom.
Esse sistema faz com que o pokemon cuja o nome seja "Gastly, Haunter ou Gengar" (é possível adicionar mais pokemons), passe por dentro das paredes.
Instalação:
Vá em creature.cpp, e procure por
void Creature::getPathSearchParams(const Creature* creature, FindPathParams& fpp) const
{
fpp.fullPathSearch = !hasFollowPath;
E abaixo adicione:
if(creature->isPlayerSummon())
{
if(!creature->getMaster()->hasCondition(CONDITION_INFIGHT))
{
if(creature->getName() == "Gengar")
fpp.clearSight = false;
if(creature->getName() == "Haunter")
fpp.clearSight = false;
if(creature->getName() == "Gastly")
fpp.clearSight = false;
}
}
Espero que façam bom uso
Créditos:
Tony Araújo (OrochiElf)