forked from mtcontrib/mobs_redo
tweaked jump
This commit is contained in:
parent
e4a2706bd6
commit
1a8f503e06
11
api.lua
11
api.lua
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
mobs = {}
|
mobs = {}
|
||||||
mobs.mod = "redo"
|
mobs.mod = "redo"
|
||||||
mobs.version = "20180427"
|
mobs.version = "20180428"
|
||||||
|
|
||||||
|
|
||||||
-- Intllib
|
-- Intllib
|
||||||
@ -763,11 +763,12 @@ local do_jump = function(self)
|
|||||||
self.object:setvelocity(v)
|
self.object:setvelocity(v)
|
||||||
|
|
||||||
-- when in air move forward
|
-- when in air move forward
|
||||||
minetest.after(0.5, function(self, v)
|
minetest.after(0.3, function(self, v)
|
||||||
self.object:setvelocity({
|
-- self.object:setvelocity({
|
||||||
x = v.x * 1.5,
|
self.object:set_acceleration({
|
||||||
|
x = v.x * 2,--1.5,
|
||||||
y = 0,
|
y = 0,
|
||||||
z = v.z * 1.5
|
z = v.z * 2,--1.5
|
||||||
})
|
})
|
||||||
end, self, v)
|
end, self, v)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user