Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Insector Pathfinding fix

In 1.6 we got new Gene named "Webbed phalanges" that is removing the movement cost from water tiles for pawns that has this gene. This gene is brilliant! i was thinking that Ludeon studios finnaly did something with pathfinding cost calculation and Terrain cost is taken into consideration! No... it dosn't.... they Hard codded "WaterCost". it would not be that complicated to add other terrains but it would require C# and Harmony knowlege that i don't have. So... if you do... you can do it better, at least in "Blockhead version" this could realy could use a "universal method" and not "30 terrains put into code and we are checking 30genes over and over again". ok, let's talk about THIS mod. it's quite simple. i added "<waterCellCost>1</waterCellCost>" from Webbed phalanges into Insect Flesh gene, to make them Pathfind over water normally. And then Patched creep and jellyfloor to account for that change, to make it still give you boost , slow enemies(there is no Race with Webbed Phalanges gene in !VANILLA!, so it doesn't matter). i needed to do this... otherwise you would get 100% speed from creep(instead of 22%) and x475% from Gene.... oh... and Creep and Jellyfloor are Water Tagged now.... It's Simple, it's stupid but as Tod Howard says... "It just works". A little problem tho: jellyfloor and royaljelly is slightly faster than it should and i don't know why... summary: Creep and other Insect terrains are "Water" tagged. Yes... they can Swim in Creep now. Insector walks on water.... They pathfind properly on creep instead trying to avoid it.