Commit Graph

61 Commits

Author SHA1 Message Date
upsilon 8a27df9c24 Fix calls to minetest.is_protected
The name parameter was not specified.
2017-01-13 18:04:41 +01:00
upsilon a6ce9315b0 Many things:
* Use global variable throwing.modname instead of local modname
* Use minetest.place_node instead of minetest.set_node for torch arrow and build arrow
* Add an error return value to the on_hit function
2017-01-12 20:49:42 +01:00
upsilon e7ae9a01cf Fix arrow placing issues 2017-01-12 19:17:51 +01:00
upsilon 318bf9e23c Add three settings
throwing.velocity_factor, throwing.horizontal_acceleration_factor, throwing.vertical_acceleration
2017-01-08 15:29:25 +01:00
upsilon af35502e61 Use get_look_horizontal instead of deprecated get_look_yaw 2017-01-08 15:16:30 +01:00
upsilon 5a38a386eb Remove useless timer condition when checking if hitting the hitter 2017-01-08 10:35:53 +01:00
upsilon 15e57c0397 Another crash bugfix, for the same reason as in the previous commit 2017-01-07 18:48:59 +01:00
upsilon 6d84b5d63a Bugfix: arrow throwed on a player caused a crash 2017-01-07 18:36:06 +01:00
upsilon 98d5fc9449 Bugfix: remove the arrow in the inventory if not in creative mode 2017-01-07 14:37:20 +01:00
upsilon cdafb81167 Fix a potential usebug
Avoid a player to crash the server by disconnecting after throwing the arrow and before it hits.
2017-01-05 20:39:41 +01:00
upsilon 1e1424ab34 First commit 2017-01-04 18:53:37 +01:00