Commit Graph

12613 Commits

Author SHA1 Message Date
teknomunk 9442e4dd69 Remove code with no effect other than emitting a warning 2024-10-27 16:03:20 +01:00
teknomunk e390f36868 Resolve luacheck findings 2024-10-27 16:03:20 +01:00
teknomunk 725a3dd969 Fix crashes in mcl_throwing 2024-10-27 16:03:20 +01:00
teknomunk 799e734315 Fix crash when hit with an arrow that is not piercing 2024-10-27 16:03:20 +01:00
the-real-herowl 112d3c1a77 Rockets and piercing arrows fixed
They both work properly now.
2024-10-27 16:03:20 +01:00
the-real-herowl 963644f62b Fix throwables' punch allow check 2024-10-27 16:03:20 +01:00
the-real-herowl 990d126322 Fixed abnormal skull rotation 2024-10-27 16:03:20 +01:00
the-real-herowl f5505118d8 Fixed wither skulls
- wither skulls now hit players again
- wither skulls (strong version) don't cause a crash anymore
2024-10-27 16:03:20 +01:00
teknomunk 931e618643 Add attribution with exact links for minetest code 2024-10-27 16:03:20 +01:00
teknomunk fa210cde78 Add hook to allow piercing enchantment to be implemented 2024-10-27 16:03:20 +01:00
teknomunk bf8716bd00 Fix chick spawning in the presence of a functional has_room() check 2024-10-27 16:03:20 +01:00
teknomunk 244cf40d11 Fix dispenser arrows so they hit players and entities, minetest.register_entity -> vl_projectile.register for mcl_throwing:egg 2024-10-27 16:03:20 +01:00
teknomunk a2ef6c4dc9 Make egg and snowball stack count match master 2024-10-27 16:03:20 +01:00
teknomunk 417f9f624a Prevent dereferencing nil in wither.lua, fix minor typo in debug statement 2024-10-27 16:03:20 +01:00
teknomunk 7aa3758894 Add workarround for random velocity change of particles on creation 2024-10-27 16:03:20 +01:00
teknomunk 18521adc47 Make sure a projectile sets on fire the thing it collided with 2024-10-27 16:03:20 +01:00
teknomunk af07e0f29c Stop wither from shooting itself 2024-10-27 16:03:20 +01:00
teknomunk 8907251cad Fix player-mcl_throwing collisions, fix chick spawning on egg collisions, luacheck fixes 2024-10-27 16:03:20 +01:00
teknomunk 9d6d72452f Fix unintentional collision box change 2024-10-27 16:03:20 +01:00
teknomunk cd550a7f33 Fix luacheck findings for this PR: remove unused variables, remove overwritten value, add missing dependencies, fix undefined variable usage 2024-10-27 16:03:20 +01:00
teknomunk 53a76b09d9 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-27 16:03:20 +01:00
teknomunk cf831049e5 Allow mob projectiles to hit their owner after 2 seconds (used by ghast fireball) 2024-10-27 16:03:20 +01:00
teknomunk e5a7f010bd Make snowballs have the same collision conditions as before 2024-10-27 16:03:20 +01:00
teknomunk c9383f957c Undo conversions to use mcl_bows:arrow_entity and use arrow_item.."_entity" like master 2024-10-27 16:03:20 +01:00
teknomunk 18763a740f Convert flying bobber to vl_projectile, modify mcl_throwing.register_throwable_object() to check for _vl_projectile field 2024-10-27 16:03:20 +01:00
teknomunk 8385bfcced Remove redundant check 2024-10-27 16:03:20 +01:00
teknomunk a4a8739514 Correct behavior when ignore_gravity flag is true, fix mob projectile velocity calculation, add missing entity_def lookup 2024-10-27 16:03:20 +01:00
teknomunk 2a2d082046 Convert mcl_mobs.register_arrow() to use vl_projectile, tested only with shulker bullet so far 2024-10-27 16:03:20 +01:00
teknomunk 74d97132c1 Restore tipped arrow entity registration as near copy of mcl_bows:arrow_entity 2024-10-27 16:03:20 +01:00
teknomunk 5564610b09 Small optimization for calculating _allow_punch 2024-10-27 16:03:20 +01:00
teknomunk dfb909e6bf Remove unnecessary vectory copy 2024-10-27 16:03:20 +01:00
teknomunk 007d505a96 Make splash, lingering and othe projectiles hit players 2024-10-27 16:03:20 +01:00
teknomunk db00c709db Stop minimum draw arrows from hitting player that shot them 2024-10-27 16:03:20 +01:00
teknomunk e12420b93e 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-27 16:03:20 +01:00
teknomunk 4b6fa8b869 Inline dir_to_pitch() and use correct formula for pitch 2024-10-27 16:03:20 +01:00
teknomunk 1bfb4b5d8b Address most of kno10's comments about mcl_utils/node.lua and a couple others, fix lingering potion sound 2024-10-27 16:03:20 +01:00
teknomunk 42f4175930 Address more review comments 2024-10-27 16:03:20 +01:00
teknomunk 63748cd03f Make arrows damage players, update API documentation, fix several crashes that occurred when arrows hit a player 2024-10-27 16:03:20 +01:00
teknomunk 9990c7937d Fix picking up tipped arrows 2024-10-27 16:03:20 +01:00
teknomunk 4325ba0071 Fix crash with splash potions of harming, make splash particles match potion color 2024-10-27 16:03:20 +01:00
teknomunk 1d575df8b7 Fix splash potions, fix crash when projectiles hit unknown nodes 2024-10-27 16:03:20 +01:00
teknomunk 54b9861491 Remove logging in tipped_arrows, prevent crash when spawning chicks, add extra safety check in vl_projectile.collides_with_solids 2024-10-27 16:03:20 +01:00
teknomunk f22224a162 Lingering potions should not collide with liquids, change behaviors assersion loop to catch nil members 2024-10-27 16:03:20 +01:00
teknomunk fcb8b1ffb7 Convert lingering potion to vl_projectile 2024-10-27 16:03:20 +01:00
teknomunk 77e1b14030 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-27 16:03:20 +01:00
teknomunk ef2bc7dbfa Fix crash related to nil _time_in_air 2024-10-27 16:03:20 +01:00
teknomunk e4bfaca30e Revert entity->object for three lines 2024-10-27 16:03:20 +01:00
teknomunk 058e6d6c26 Fix typo _ -> . 2024-10-27 16:03:20 +01:00
teknomunk 3506d5f820 Add empty line 2024-10-27 16:03:20 +01:00
teknomunk e3fcbdf1cc Fix typo in api.md, add TODO, change entity -> object 2024-10-27 16:03:20 +01:00