AR

Como fazer pokemons fantasmas selvagens atravessar paredes

Por arthurmgoncalve, 20 de abr. de 2017 em Programação

3
1.7k
20 de abril de 2017 às 16:01

como faço pra fazer pokes selvagens ghost atravessar paredes qual codigo que tenho que adicionar na source?

AmericaA
20 de abril de 2017 às 17:14
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: 

 

24 de abril de 2017 às 14:52
Em 20/04/2017 at 17:14, America disse:

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: 

 

Eu sei amigo sobre isso ai em minha source tem, mas os pokemons selvagens do mapa não atravessam mais os do player sim, queria saber como colocar os montros do mapa para atravessar as paredes