Things
parent
4330a6dc2e
commit
f468222ecd
|
@ -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
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 84 KiB |
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue