Jordan Irwin 2017-08-16 21:11:00 -07:00
parent 624838de51
commit d262f0cc7f
3 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* [enchanting][] ([GPL / WTFPL / CC BY-SA-NA][lic.enchanting]) -- version: [13ea31c Git][ver.enchanting] *2016-12-16* ([patched][patch.enchanting])
* equipment/
* [airtanks][] ([MIT][lic.airtanks]) -- version: [5787956 Git][ver.airtanks] *2017-05-13* ([patche][patch.airtanks])
* [slingshot][] ([MIT][lic.slingshot] / [CC0][lic.cc0]) -- version [6d82281 Git][ver.slingshot] *2017-08-16*
* [slingshot][] ([MIT][lic.slingshot] / [CC0][lic.cc0]) -- version [0.1][ver.slingshot] *2017-08-16*
* [throwing][] ([WTFPL][lic.wtfpl]) -- version: [90bcf43 Git][ver.throwing] *2013-09-27* ([patched][patch.throwing])
* [xtraarmor][] ([CC BY-SA][lic.ccbysa3.0]) -- version: 0.3
* farming/
@ -501,7 +501,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[ver.sfinv_buttons]: http://repo.or.cz/minetest_sfinv_buttons.git/tree/4f3b075
[ver.signs_lib]: https://github.com/minetest-mods/signs_lib/tree/f6b8c94
[ver.simple_protection]: https://github.com/SmallJoker/simple_protection/tree/574ecb8
[ver.slingshot]: https://github.com/AntumMT/mod-slingshot/tree/6d82281
[ver.slingshot]: https://github.com/AntumMT/mod-slingshot/tree/bb77525
[ver.snowdrift]: https://github.com/paramat/snowdrift/tree/fcb0537
[ver.spawneggs]: https://github.com/thefamilygrog66/spawneggs/tree/4650370
[ver.spectator_mode]: https://github.com/minetest-mods/spectator_mode/tree/7d68bec

View File

@ -47,6 +47,7 @@ core.register_globalstep(function(dtime)
-- Reset cooldown
tmp_throw_timer = 0
for i, t in pairs(tmp_throw) do
local puncher = core.get_player_by_name(t.user)
t.timer = t.timer-0.25
if t.timer <= 0 or t.ob == nil or t.ob:getpos() == nil then table.remove(tmp_throw, i) return end
for ii, ob in pairs(core.get_objects_inside_radius(t.ob:getpos(), 1.5)) do
@ -54,7 +55,7 @@ core.register_globalstep(function(dtime)
-- Which entities can be attacked (mobs & other players unless PVP is enabled)
if (not ob:is_player()) or (ob:is_player() and ob:get_player_name(ob) ~= t.user and core.settings:get_bool('enable_pvp') == true) then
-- FIXME: Don't use 'ob' for puncher
ob:punch(ob, 1.0, {damage_groups={fleshy=4}}, nil)
ob:punch(puncher, 1.0, {damage_groups={fleshy=4}}, nil)
t.ob:setvelocity({x=0, y=0, z=0})
t.ob:setacceleration({x=0, y=-10, z=0})
t.ob:setvelocity({x=0, y=-10, z=0})

View File

@ -1,2 +1,2 @@
name = slingshot
version = 10.0
version = 0.1