1 hora atrás, arthurmgoncalve disse:como faço pra fazer pokes selvagens ghost atravessar paredes qual codigo que tenho que adicionar na source?
Créditos: OrochiElf
É Algo simples vá em creature.cpp e procure por:
void CreaturegetPathSearchParams(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; }}
Para Adicionar um Pokémon basta por tal tag e o nome do pokémon:
if(creature->getName() == "Exemplo") fpp.clearSight = false;
Funcional em TFS 0.3.6 pode funcionar em 0.4 Com pequenas alterações.
Abraço.
Fonte:




info
Grupo: Campones
Registrado: 31/12/16
Posts: 6
Reputação: 0
Gênero: Masculino
como faço pra fazer pokes selvagens ghost atravessar paredes qual codigo que tenho que adicionar na source?