Commit graph

220 commits

Author SHA1 Message Date
teknomunk
5914b789a7 Sound fix, preserve _itemstring as well 2024-11-23 18:31:45 -06:00
teknomunk
8d5a1ac9cc Add _arrow_item to list of perserved fields 2024-11-23 18:16:30 -06:00
teknomunk
c5eb3fa4eb Make arrows (and all their derivatives) preserve collectable and entity properties across world unload/load 2024-11-23 18:11:44 -06:00
teknomunk
a03aa6065b Fix crash when respawning 2024-11-16 19:46:39 -06:00
teknomunk
6a1b8d0f09 Let arrows stick in players 2024-11-16 19:46:39 -06:00
teknomunk
2fec9696b6 Implement mcl_util.remove_entity() and convert projectile code to use it 2024-11-16 19:46:37 -06:00
teknomunk
a6363f779f Move arrow self-collision grace logic to vl_projectile then apply to mob projectiles and splash and linger potions, allow entity luaentity to be passed to mcl_util.get_entity_id() 2024-11-13 22:02:58 -06:00
teknomunk
2c8f22c511 Fix crash when firing rocket arrows 2024-11-13 20:59:24 -06:00
teknomunk
b8250e4dcc Replace _puncher with _owner, rework projectile code to make _owner a string, copy mcl_util.gen_uuid() from minecart branch, add mcl_util.get_entity_id(), fix crash 2024-11-12 01:00:42 +01:00
teknomunk
ad9b84c5ac Remove debug dump, move maximum time to live to vl_projectile 2024-11-12 01:00:42 +01:00
teknomunk
882e6d42e5 Move projectile stick logic into vl_projectile 2024-11-12 01:00:42 +01:00
teknomunk
1cec108d50 Move tracer to vl_projectile 2024-11-12 01:00:42 +01:00
teknomunk
ec9bc01c80 Change mcl_bows to use standard vl_projectile on_step handler, move burning behavior to vl_projectile 2024-11-12 01:00:42 +01:00
teknomunk
44769c24c5 Move arrow-node logic out of mcl_bows/arrow.lua and into the node definitions under _vl_projectile.on_collide 2024-11-12 01:00:42 +01:00
teknomunk
36a3ac44f3 Remove secondary collision check in mcl_bows/arrow.lua (it was just hitting grass) 2024-11-12 01:00:42 +01:00
teknomunk
5f48024c9d Remove code with no effect other than emitting a warning 2024-11-12 01:00:42 +01:00
teknomunk
8913de9b26 Resolve luacheck findings 2024-11-12 01:00:42 +01:00
teknomunk
99247e5f25 Fix crash when hit with an arrow that is not piercing 2024-11-12 01:00:42 +01:00
the-real-herowl
0991c0c130 Rockets and piercing arrows fixed
They both work properly now.
2024-11-12 01:00:42 +01:00
teknomunk
38852badb1 Fix dispenser arrows so they hit players and entities, minetest.register_entity -> vl_projectile.register for mcl_throwing:egg 2024-11-12 01:00:42 +01:00
teknomunk
76d654762a Fix luacheck findings for this PR: remove unused variables, remove overwritten value, add missing dependencies, fix undefined variable usage 2024-11-12 01:00:42 +01:00
teknomunk
17ed8ffa3a Undo conversions to use mcl_bows:arrow_entity and use arrow_item.."_entity" like master 2024-11-12 01:00:42 +01:00
teknomunk
ec63fcd1bc Small optimization for calculating _allow_punch 2024-11-12 01:00:42 +01:00
teknomunk
0270ce8a8d Stop minimum draw arrows from hitting player that shot them 2024-11-12 01:00:42 +01:00
teknomunk
6d75fc2f41 Prevent collisions with entities until projectile is at least one node from where it started (to prevent always hitting yourself), modify mcl_bows.shoot_arrow() and mcl_bows_s.shoot_arrow_crossbow() to use vl_projectile.create(), fix projectiles damaging players 2024-11-12 01:00:42 +01:00
teknomunk
9b9c370caa Address most of kno10's comments about mcl_utils/node.lua and a couple others, fix lingering potion sound 2024-11-12 01:00:42 +01:00
teknomunk
81dd1c6656 Address more review comments 2024-11-12 01:00:42 +01:00
teknomunk
ebb69330a7 Make arrows damage players, update API documentation, fix several crashes that occurred when arrows hit a player 2024-11-12 01:00:42 +01:00
teknomunk
627a2668a7 Fix picking up tipped arrows 2024-11-12 01:00:42 +01:00
teknomunk
ac9d1b18d8 Fix crash related to nil _time_in_air 2024-11-12 01:00:42 +01:00
teknomunk
83e6a4323d Fix typo in api.md, add TODO, change entity -> object 2024-11-12 01:00:42 +01:00
teknomunk
3f22887639 Fix typos documentation, add ignore_gravity and liquid_drag options, use vl_projectile.register() for enter pearl, move projectile physics to vl_projectile add hook for future vl_physics support 2024-11-12 01:00:42 +01:00
teknomunk
fd144466e4 Resolve more review comments, fix crash 2024-11-12 01:00:42 +01:00
teknomunk
da52e56397 Resolve review comments 2024-11-12 01:00:42 +01:00
teknomunk
6adef58bc4 Remove debug print 2024-11-12 01:00:42 +01:00
teknomunk
69a967c186 Give arrows a maximum lifetime to prevent them from getting stuck in mid-air forever 2024-11-12 01:00:42 +01:00
teknomunk
b1f2ec60e1 Add API documentation, minor API cleanup 2024-11-12 01:00:42 +01:00
teknomunk
a3cfb0c0c4 Convert rocket to use vl_projectile API using mcl_bows:arrow as a template, remove some dead code 2024-11-12 01:00:42 +01:00
teknomunk
cc1d0ce55e Fold tipped arrows into standard arrows and handle effects via item definition callback, remove arrows when they collide with entities, update handling of removing projectiles 2024-11-12 01:00:42 +01:00
teknomunk
ab9fff400f More refactoring to generalize arrow code into projectile 2024-11-12 01:00:42 +01:00
teknomunk
3961a32fb4 Start mcl_bows:arrow_entity refactor 2024-11-12 01:00:42 +01:00
grorp
bd9ab16762 Add touch_interaction to (cross)bow and spyglass 2024-11-10 15:14:56 +01:00
Mikita Wiśniewski
f86a641dfa Improve shield block code and unhardcode offhand group 2024-11-10 01:34:50 +01:00
Loveaabb
f26c34e65f Bugfix: Shield fails to block arrows 2024-11-10 01:34:50 +01:00
teknomunk
2b44abbceb More translations 2024-08-31 16:39:43 +02:00
the-real-herowl
42778a3a6d Made some random rolls affected by mcl_luck
* xp bottle
* bow and crossbow crits
* megacrits added for mcl_bows, achievable only by (mcl_)luck
2024-05-22 21:02:25 +02:00
the-real-herowl
753545d714 Merge pull request 'Rover and Stalker' (#4282) from rover_stalker into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4282
2024-05-22 19:01:14 +00:00
the-real-herowl
48e6ffa935 Improved tool tooltips (#4306)
Co-authored-by: Araca <araca.prod@gmail.com>
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4306
2024-05-22 18:55:07 +00:00
teknomunk
5f6a9f3a0c Update more documentation to use VoxeLibre 2024-05-07 11:38:00 +00:00
teknomunk
d2a49799ae Change over internal name so that /spawn_mob works 2024-05-05 16:22:19 +00:00