summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-04-28 17:26:16 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2018-04-28 17:26:16 +0100
commit1a8f503e064a6fd9f4d1a4563a541e83cf98f122 (patch)
tree035892fc4eb7af2fc563df2e826911ae055a091e
parente4a2706bd694862a1886011b89b317987b680b5d (diff)
tweaked jump
-rw-r--r--api.lua11
1 files changed, 6 insertions, 5 deletions
diff --git a/api.lua b/api.lua
index d6ba21b..fa177e3 100644
--- a/api.lua
+++ b/api.lua
@@ -3,7 +3,7 @@
mobs = {}
mobs.mod = "redo"
-mobs.version = "20180427"
+mobs.version = "20180428"
-- Intllib
@@ -763,11 +763,12 @@ local do_jump = function(self)
self.object:setvelocity(v)
-- when in air move forward
- minetest.after(0.5, function(self, v)
- self.object:setvelocity({
- x = v.x * 1.5,
+ minetest.after(0.3, function(self, v)
+-- self.object:setvelocity({
+ self.object:set_acceleration({
+ x = v.x * 2,--1.5,
y = 0,
- z = v.z * 1.5
+ z = v.z * 2,--1.5
})
end, self, v)