Commit Graph

12614 Commits

Author SHA1 Message Date
teknomunk baa5fb5952 Move tracer to vl_projectile 2024-10-20 13:31:29 -05:00
teknomunk 53a34747da Change mcl_bows to use standard vl_projectile on_step handler, move burning behavior to vl_projectile 2024-10-20 13:15:47 -05:00
teknomunk b8a115753e Move arrow-node logic out of mcl_bows/arrow.lua and into the node definitions under _vl_projectile.on_collide 2024-10-20 12:36:11 -05:00
teknomunk 549693ff97 Remove secondary collision check in mcl_bows/arrow.lua (it was just hitting grass) 2024-10-20 07:18:59 -05:00
teknomunk 4f9faffcb3 Remove code with no effect other than emitting a warning 2024-10-11 14:07:37 -05:00
teknomunk d878c57531 Resolve luacheck findings 2024-10-11 11:24:02 +02:00
teknomunk d0dd880c51 Fix crashes in mcl_throwing 2024-10-11 11:24:02 +02:00
teknomunk cf3354ef79 Fix crash when hit with an arrow that is not piercing 2024-10-11 11:24:02 +02:00
the-real-herowl 6af77081a7 Rockets and piercing arrows fixed
They both work properly now.
2024-10-11 11:24:02 +02:00
the-real-herowl 7bb60dfeeb Fix throwables' punch allow check 2024-10-11 11:24:02 +02:00
the-real-herowl ca095395a9 Fixed abnormal skull rotation 2024-10-11 11:24:02 +02:00
the-real-herowl 12f2147372 Fixed wither skulls
- wither skulls now hit players again
- wither skulls (strong version) don't cause a crash anymore
2024-10-11 11:24:02 +02:00
teknomunk b9784fdba1 Add attribution with exact links for minetest code 2024-10-11 11:24:02 +02:00
teknomunk a666739d80 Add hook to allow piercing enchantment to be implemented 2024-10-11 11:24:02 +02:00
teknomunk 08646b1d13 Fix chick spawning in the presence of a functional has_room() check 2024-10-11 11:24:02 +02:00
teknomunk 1c4cf2f17c Fix dispenser arrows so they hit players and entities, minetest.register_entity -> vl_projectile.register for mcl_throwing:egg 2024-10-11 11:24:02 +02:00
teknomunk 7bea6215d0 Make egg and snowball stack count match master 2024-10-11 11:24:02 +02:00
teknomunk 348b13764f Prevent dereferencing nil in wither.lua, fix minor typo in debug statement 2024-10-11 11:24:02 +02:00
teknomunk 5f8c378002 Add workarround for random velocity change of particles on creation 2024-10-11 11:24:02 +02:00
teknomunk 65e25391db Make sure a projectile sets on fire the thing it collided with 2024-10-11 11:24:02 +02:00
teknomunk ead59d4ead Stop wither from shooting itself 2024-10-11 11:24:02 +02:00
teknomunk 049306ecc6 Fix player-mcl_throwing collisions, fix chick spawning on egg collisions, luacheck fixes 2024-10-11 11:24:02 +02:00
teknomunk cd6da3dcf2 Fix unintentional collision box change 2024-10-11 11:24:02 +02:00
teknomunk 7bdfcdc9dd Fix luacheck findings for this PR: remove unused variables, remove overwritten value, add missing dependencies, fix undefined variable usage 2024-10-11 11:24:02 +02:00
teknomunk aebafd7af0 Prevent projectiles from crashing server when removed when it punched something (wither skull hitting the wither will cause this), mark wither skull with _removed = true when death timer removes it 2024-10-11 11:24:02 +02:00
teknomunk 4a71d993d3 Allow mob projectiles to hit their owner after 2 seconds (used by ghast fireball) 2024-10-11 11:24:02 +02:00
teknomunk aa5a696341 Make snowballs have the same collision conditions as before 2024-10-11 11:24:02 +02:00
teknomunk 8d570958d4 Undo conversions to use mcl_bows:arrow_entity and use arrow_item.."_entity" like master 2024-10-11 11:24:02 +02:00
teknomunk 74882d2bbf Convert flying bobber to vl_projectile, modify mcl_throwing.register_throwable_object() to check for _vl_projectile field 2024-10-11 11:24:02 +02:00
teknomunk b904204c78 Remove redundant check 2024-10-11 11:24:02 +02:00
teknomunk 1cceb7378d Correct behavior when ignore_gravity flag is true, fix mob projectile velocity calculation, add missing entity_def lookup 2024-10-11 11:24:02 +02:00
teknomunk c8512d29bd Convert mcl_mobs.register_arrow() to use vl_projectile, tested only with shulker bullet so far 2024-10-11 11:24:02 +02:00
teknomunk 39e93b7a54 Restore tipped arrow entity registration as near copy of mcl_bows:arrow_entity 2024-10-11 11:24:02 +02:00
teknomunk d187b3bf55 Small optimization for calculating _allow_punch 2024-10-11 11:24:02 +02:00
teknomunk ed373e9f37 Remove unnecessary vectory copy 2024-10-11 11:24:02 +02:00
teknomunk 9f9c590c8d Make splash, lingering and othe projectiles hit players 2024-10-11 11:24:02 +02:00
teknomunk ca63f1ce58 Stop minimum draw arrows from hitting player that shot them 2024-10-11 11:24:02 +02:00
teknomunk 52946b3a26 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-10-11 11:24:02 +02:00
teknomunk 6d838e7fbd Inline dir_to_pitch() and use correct formula for pitch 2024-10-11 11:24:02 +02:00
teknomunk 36d20e6f48 Address most of kno10's comments about mcl_utils/node.lua and a couple others, fix lingering potion sound 2024-10-11 11:24:02 +02:00
teknomunk adb6e22ce5 Address more review comments 2024-10-11 11:24:02 +02:00
teknomunk 29bfd6ce21 Make arrows damage players, update API documentation, fix several crashes that occurred when arrows hit a player 2024-10-11 11:24:02 +02:00
teknomunk e212f3dd08 Fix picking up tipped arrows 2024-10-11 11:24:02 +02:00
teknomunk 0b500462ab Fix crash with splash potions of harming, make splash particles match potion color 2024-10-11 11:24:02 +02:00
teknomunk 55c8f4cb84 Fix splash potions, fix crash when projectiles hit unknown nodes 2024-10-11 11:24:02 +02:00
teknomunk 227bbebe3b Remove logging in tipped_arrows, prevent crash when spawning chicks, add extra safety check in vl_projectile.collides_with_solids 2024-10-11 11:24:02 +02:00
teknomunk 26b858c463 Lingering potions should not collide with liquids, change behaviors assersion loop to catch nil members 2024-10-11 11:24:02 +02:00
teknomunk ca8f7eb700 Convert lingering potion to vl_projectile 2024-10-11 11:24:02 +02:00
teknomunk eca43272bb Convert splash potion to vl_projectile, remove dead code, precompute several values in splash potion code, add check of behaviors array in vl_projectile 2024-10-11 11:24:02 +02:00
teknomunk a7342eb024 Fix crash related to nil _time_in_air 2024-10-11 11:24:02 +02:00