diff --git a/Readme.md b/Readme.md index 4f25cc2..b50e12d 100644 --- a/Readme.md +++ b/Readme.md @@ -7,6 +7,10 @@ Adds a variety of advanced weapons. Depends on `modlib` and `tnt`. Written by LMD aka appguru(eu). Licensed under the GPLv3. +## Screenshot + +![Screenshot](screenshot.png) + ## Features * Explosives diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..7433afa Binary files /dev/null and b/screenshot.png differ diff --git a/special.lua b/special.lua index bc2c180..f4cf808 100644 --- a/special.lua +++ b/special.lua @@ -244,7 +244,7 @@ minetest.register_entity("adv_weapons:ascent_aid", { end if staticdata ~= "" then self._size = minetest.parse_json(staticdata) - adjust_rope(self.object, size) + adjust_rope(self.object, self._size) end end, get_staticdata = function(self) @@ -311,9 +311,9 @@ minetest.register_entity("adv_weapons:ascent_aid", { local direction = self._direction--clicker:get_look_dir() set_rotation(obj, direction) local factor = 0 - if control.up and line_off < self._length - 0.2 then + if control.up and line_off < self._length - 0.3 then factor = 1 - elseif control.down and line_off > 0.2 then + elseif control.down and line_off > 0.3 then factor = -1 end obj:set_velocity(vector.add(obj:get_velocity(), vector.multiply(direction, factor*0.5)))