A performant Animal focused Mob API
Find a file
Jordan Leppert 35069011d6 Pathfinding Fixes
mob_meta.get_node_height:
Moved to pathfinding, and made public (creatura.get_node_height).
Now uses collision box rather than node box, if available, unless flag specifies not to.
Fix for getting node height for nodes with connected node boxes

pathfinding.get_ground_level:
We now have one copy between pathfinding and mob_meta.
Can check a larger range of nodes at different heights.
Takes into account node height of both target node, and the height of the node we're coming from.

pathfinding.get_neighbors:
Get maximum distance mob can travel up/down from mob stepheight.
Improved checking diagonals are clear.
Improved checking vertical clearance, takes into account height of current and target node.
Vertical clearance can cope with nodes that have a different collision and node boxes, like snow.
Vertical clearance has a tiny height adjustment so a 2 node heigh entity can fit through a 2 node gap.
Fixed bug where it was assumed a node was reachable if it's the end goal.

methods.movement_theta_pathfind and movement_pathfind:
Fixed bug that raised goal pos by 0.5 nodes.
2022-02-22 15:16:33 +00:00
sounds Initial Commit 2022-02-10 16:32:53 -08:00
textures Initial Commit 2022-02-10 16:32:53 -08:00
api.lua Texture mod fix 2022-02-20 21:35:36 +00:00
boids.lua Initial Commit 2022-02-10 16:32:53 -08:00
doc.txt Initial Commit 2022-02-10 16:32:53 -08:00
init.lua Initial Commit 2022-02-10 16:32:53 -08:00
LICENSE Initial commit 2022-02-10 16:31:46 -08:00
methods.lua Pathfinding Fixes 2022-02-22 15:16:33 +00:00
mob_meta.lua Pathfinding Fixes 2022-02-22 15:16:33 +00:00
mod.conf Initial Commit 2022-02-10 16:32:53 -08:00
pathfinder.lua Pathfinding Fixes 2022-02-22 15:16:33 +00:00
settingtypes.txt Initial Commit 2022-02-10 16:32:53 -08:00
spawning.lua Biome check is done on the spawn position, not the player's position. This fixes mobs spawning in the wrong biome, and eg no forest mobs spawning if you're in grasslands just outside a forest. This means we can't (easily) use mob-specific spawn min/max radius, so it is currently removed. 2022-02-16 13:10:41 +00:00