Commit Graph

201 Commits

Author SHA1 Message Date
teknomunk
5cfb8cc79c Fix dispenser arrows so they hit players and entities, minetest.register_entity -> vl_projectile.register for mcl_throwing:egg 2024-11-30 18:42:12 -06:00
teknomunk
fc14373962 Fix luacheck findings for this PR: remove unused variables, remove overwritten value, add missing dependencies, fix undefined variable usage 2024-11-30 18:42:12 -06:00
teknomunk
68b3a0024b Undo conversions to use mcl_bows:arrow_entity and use arrow_item.."_entity" like master 2024-11-30 18:42:12 -06:00
teknomunk
f39925a19d Small optimization for calculating _allow_punch 2024-11-30 18:34:02 -06:00
teknomunk
d119da0116 Stop minimum draw arrows from hitting player that shot them 2024-11-30 18:34:02 -06:00
teknomunk
1ce6860dc8 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-30 18:34:02 -06:00
teknomunk
18e7aacb44 Address most of kno10's comments about mcl_utils/node.lua and a couple others, fix lingering potion sound 2024-11-30 18:34:02 -06:00
teknomunk
69614c95dc Address more review comments 2024-11-30 18:34:01 -06:00
teknomunk
da053c4add Make arrows damage players, update API documentation, fix several crashes that occurred when arrows hit a player 2024-11-30 18:34:01 -06:00
teknomunk
28eb68150b Fix picking up tipped arrows 2024-11-30 18:34:01 -06:00
teknomunk
1fe72567d0 Fix crash related to nil _time_in_air 2024-11-30 18:34:01 -06:00
teknomunk
cdcea5191c Fix typo in api.md, add TODO, change entity -> object 2024-11-30 18:34:01 -06:00
teknomunk
956abf96c6 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-30 18:34:01 -06:00
teknomunk
91e362329f Resolve more review comments, fix crash 2024-11-30 18:34:01 -06:00
teknomunk
7d1046e1f4 Resolve review comments 2024-11-30 18:34:01 -06:00
teknomunk
182bb21203 Remove debug print 2024-11-30 18:34:01 -06:00
teknomunk
fbd2dcf00a Give arrows a maximum lifetime to prevent them from getting stuck in mid-air forever 2024-11-30 18:34:01 -06:00
teknomunk
e6705ddf56 Add API documentation, minor API cleanup 2024-11-30 18:34:01 -06:00
teknomunk
9d25a92b5a Convert rocket to use vl_projectile API using mcl_bows:arrow as a template, remove some dead code 2024-11-30 18:34:01 -06:00
teknomunk
746a2f0717 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-30 18:34:01 -06:00
teknomunk
f10cc31101 More refactoring to generalize arrow code into projectile 2024-11-30 18:34:00 -06:00
teknomunk
d64564c4d7 Start mcl_bows:arrow_entity refactor 2024-11-30 18:34:00 -06: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
the-real-herowl
4b6d63739c Fix a crash with rocket explosion
Defensive check
2024-03-20 19:13:44 -05:00
the-real-herowl
d11526f8e8 Merge pull request 'Finish PVP Combat Parity with the rest + PVP Tweaks' (#4078) from Eliy21/MineClone2:combat_fixes into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4078
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
2023-12-30 04:21:18 +00:00
the-real-herowl
39f98ec6fb Updated doc strings for bow and crossbow
Mentioned the zoom key
2023-12-25 23:56:39 +01:00
the-real-herowl
9e3d7ce0f4 Added a workaround for mobile using zoom key
* Bow can now be used with zoom key aside of RMB
* Crossbow can now be loaded with zoom key as well
* Spyglass can now be used with zoom key
2023-12-25 23:50:06 +01:00
JoseDouglas26
04b77db7fa mcl_books and mcl_bows pt_BR translation fixes 2023-12-22 23:45:08 +01:00
the-real-herowl
5bf6608483 Made bow unfocus faster 2023-12-18 22:50:52 +00:00
the-real-herowl
3a007e3bb1 Re-registered FOV mods using new API version 2023-12-18 22:50:52 +00:00
Michieal
36f661743e Set up the Bows to use the new FOV API. Bows now zoom in and clear out the zoom. 2023-12-18 22:50:52 +00:00
Michieal
6cfb55e853 Added reset for player respawning to remove FOV modifiers.
Fixed missing on_end call in remove_all_modifiers.
Added mcl_fovapi to Bows, Sprint, and Spyglass.
2023-12-18 22:50:52 +00:00
Eliy21
14cec16c63 Increase enchanted bow knockback 2023-12-18 21:31:38 +00:00
Eliy21
c39e55e2d4 Add minimum knockback to crossbow 2023-12-17 20:01:35 +00:00
Eliy21
6d7ae8ba2d Add minimum unenchanted knockback to bow 2023-12-17 19:59:18 +00:00
José Muñoz
027e0e8337 Fix a typo in the spanish translation (#4039)
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4039
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: José Muñoz <dr.cabra@disroot.org>
Co-committed-by: José Muñoz <dr.cabra@disroot.org>
2023-12-05 00:05:39 +00:00
3raven
86da47b922 French translation update (#4006)
Update french translation, add missing chain, fix typo

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4006
Reviewed-by: AFCMS <afcm.contact@gmail.com>
Co-authored-by: 3raven <3raven@noreply.git.minetest.land>
Co-committed-by: 3raven <3raven@noreply.git.minetest.land>
2023-11-25 01:08:06 +00:00
Eliy21
7cbba73d50 Combat (mostly PvE) rebalancing (#4005)
-Added short mob invulnerability time after being hit
-Added separate shorter range for hitting mobs (as opposed to node interaction)
-Reworked mob knockback
-Slowed down natural health regeneration from saturation
-Added a setting for the saturation health regen speed

Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4005
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land>
Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
2023-11-23 00:32:23 +00:00
PrairieWind
d3095fea57 Update ignition, smothering, and campfire inventory drops
Bonus fix for grass path creation sound traveling across the entire server
2023-09-04 22:05:38 +00:00
Sab Pyrope
5b4a79a26d Update russian translation 2023-08-31 14:16:42 +08:00
seventeenthShulker
4365f4df77 Remove whitespace 2023-07-06 19:10:00 +02:00
seventeenthShulker
99af25fba3 Side arrow directions are relative to player orientation 2023-07-06 19:08:52 +02:00