add mobs:set_velocity(self,v) global, function

This commit is contained in:
TenPlus1 2018-12-04 14:39:37 +00:00
parent 43026c374e
commit 47d8439913
2 changed files with 7 additions and 1 deletions

View File

@ -6,7 +6,7 @@ local use_cmi = minetest.global_exists("cmi")
mobs = {
mod = "redo",
version = "20181126",
version = "20181204",
intllib = S,
invis = minetest.global_exists("invisibility") and invisibility or {},
}
@ -167,6 +167,11 @@ local set_velocity = function(self, v)
})
end
-- global version of above function
function mobs:set_velocity(self, v)
set_velocity(self, v)
end
-- calculate mob velocity
local get_velocity = function(self)

View File

@ -23,6 +23,7 @@ Lucky Blocks: 9
Changelog:
- 1.48- Add mobs:set_velocity(self, velocity) global function
- 1.47- Mob damage changes, min and max light level for damage added, ignition sources checked for lava damage
- 1.46- Mobs only drop rare items when killed by player (drops.min = 0 makes them rare), code tweak, pathfinding no longer sees through walkable nodes
- 1.45- Added Fence Top to add on top of any fence to stop mobs escaping, new line_of_sight tweaked by Astrobe