2017-02-21 16:39:22 +02:00
|
|
|
--[[
|
|
|
|
Sprint mod for Minetest by GunshipPenguin
|
|
|
|
|
|
|
|
To the extent possible under law, the author(s)
|
|
|
|
have dedicated all copyright and related and neighboring rights
|
|
|
|
to this software to the public domain worldwide. This software is
|
|
|
|
distributed without any warranty.
|
|
|
|
]]
|
|
|
|
|
|
|
|
--Configuration variables, these are all explained in README.md
|
2017-02-21 16:45:48 +02:00
|
|
|
mcl_sprint = {}
|
2017-02-21 16:39:22 +02:00
|
|
|
|
2017-02-21 16:45:48 +02:00
|
|
|
mcl_sprint.METHOD = 1
|
|
|
|
mcl_sprint.SPEED = 1.3
|
|
|
|
mcl_sprint.TIMEOUT = 0.5 --Only used if mcl_sprint.METHOD = 0
|
|
|
|
|
|
|
|
if mcl_sprint.METHOD == 0 then
|
2017-02-21 17:44:26 +02:00
|
|
|
-- UNTESTED
|
2017-02-21 16:39:22 +02:00
|
|
|
dofile(minetest.get_modpath("mcl_sprint") .. "/wsprint.lua")
|
2017-02-21 16:45:48 +02:00
|
|
|
elseif mcl_sprint.METHOD == 1 then
|
2017-02-21 16:39:22 +02:00
|
|
|
dofile(minetest.get_modpath("mcl_sprint") .. "/esprint.lua")
|
|
|
|
else
|
2017-02-21 16:45:48 +02:00
|
|
|
minetest.log("error", "[mcl_sprint] mcl_sprint.METHOD is not set properly, using [E] to sprint.")
|
2017-02-21 16:39:22 +02:00
|
|
|
dofile(minetest.get_modpath("mcl_sprint") .. "/esprint.lua")
|
|
|
|
end
|