A performant Animal focused Mob API
Find a file
Jordan Leppert 076e8423ae Movement Improvements
Pathfinding movement functions for A* and theta have been combined into one generic function.
Ensure next goal is always set if there is a valid path.
Checking if mob has reached the next goal improved - now works no matter the mob height, and the height of the node below the goal.
mob:pos_in_box now can take a size param that is a table. Using this to add stepheight to the box height, to fix issues with mobs stepping up onto next node before hitting the goal.
Mobs now won't overshoot their goal, if they're very close to it (less than mob width) their speed reduces.
The more a mob is turning, the less forward velocity it has. This should fix spinning a lot.

mob:pos_in_box now can take a size param that is a table, containing the separate width and height.

pathfinding.moveable no longer pads an extra 0.2 around the width of mob when checking if there is sufficient space for the mob.

pathfinding.get_neighbors now uses max_fall for the maximum distance we can go down, instead of stepheight.
2022-02-23 18:00:42 +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 Movement Improvements 2022-02-23 18:00:42 +00:00
mob_meta.lua Movement Improvements 2022-02-23 18:00:42 +00:00
mod.conf Initial Commit 2022-02-10 16:32:53 -08:00
pathfinder.lua Movement Improvements 2022-02-23 18:00:42 +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