1
0
Fork 0

Make unmounting a mob less of a jolt

This commit is contained in:
jordan4ibanez 2021-04-06 21:59:51 -04:00
parent acd2b8e691
commit 4a1faa44de
2 changed files with 6 additions and 3 deletions

View File

@ -168,16 +168,20 @@ function mobs.detach(player, offset)
mcl_player.player_set_animation(player, "stand" , 30) mcl_player.player_set_animation(player, "stand" , 30)
local pos = player:get_pos() --local pos = player:get_pos()
pos = {x = pos.x + offset.x, y = pos.y + 0.2 + offset.y, z = pos.z + offset.z} --pos = {x = pos.x + offset.x, y = pos.y + 0.2 + offset.y, z = pos.z + offset.z}
player:add_velocity(vector.new(math.random(-5,5),math.random(3,6),math.random(-5,5))) --throw the rider off
--[[
minetest.after(0.1, function(name, pos) minetest.after(0.1, function(name, pos)
local player = minetest.get_player_by_name(name) local player = minetest.get_player_by_name(name)
if player then if player then
player:set_pos(pos) player:set_pos(pos)
end end
end, player:get_player_name(), pos) end, player:get_player_name(), pos)
]]--
end end

View File

@ -231,7 +231,6 @@ local horse = {
temper_increase = 5 temper_increase = 5
elseif (iname == mobs_mc.items.golden_apple) then elseif (iname == mobs_mc.items.golden_apple) then
temper_increase = 10 temper_increase = 10
-- Trying to ride -- Trying to ride
elseif not self.driver then elseif not self.driver then
self.object:set_properties({stepheight = 1.1}) self.object:set_properties({stepheight = 1.1})