Commit Graph

10912 Commits

Author SHA1 Message Date
teknomunk 30d4802ee1 Allow mob projectiles to hit their owner after 2 seconds (used by ghast fireball) 2024-11-02 21:28:46 +01:00
teknomunk 23cc243f8a Make snowballs have the same collision conditions as before 2024-11-02 21:28:46 +01:00
teknomunk 7e49b3a15d Undo conversions to use mcl_bows:arrow_entity and use arrow_item.."_entity" like master 2024-11-02 21:28:46 +01:00
teknomunk ccb0faf1d6 Convert flying bobber to vl_projectile, modify mcl_throwing.register_throwable_object() to check for _vl_projectile field 2024-11-02 21:28:46 +01:00
teknomunk f6a988f532 Remove redundant check 2024-11-02 21:28:46 +01:00
teknomunk edc523113c Correct behavior when ignore_gravity flag is true, fix mob projectile velocity calculation, add missing entity_def lookup 2024-11-02 21:28:46 +01:00
teknomunk 3a65643577 Convert mcl_mobs.register_arrow() to use vl_projectile, tested only with shulker bullet so far 2024-11-02 21:28:46 +01:00
teknomunk f467e43940 Restore tipped arrow entity registration as near copy of mcl_bows:arrow_entity 2024-11-02 21:28:46 +01:00
teknomunk 0b801a7a41 Small optimization for calculating _allow_punch 2024-11-02 21:28:46 +01:00
teknomunk 0f28873a3f Remove unnecessary vectory copy 2024-11-02 21:28:46 +01:00
teknomunk e4084e55a0 Make splash, lingering and othe projectiles hit players 2024-11-02 21:28:46 +01:00
teknomunk 7d22701ef6 Stop minimum draw arrows from hitting player that shot them 2024-11-02 21:28:46 +01:00
teknomunk 388e16eb5d 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-02 21:28:46 +01:00
teknomunk 3efb7a1a93 Inline dir_to_pitch() and use correct formula for pitch 2024-11-02 21:28:46 +01:00
teknomunk fd871e5740 Address most of kno10's comments about mcl_utils/node.lua and a couple others, fix lingering potion sound 2024-11-02 21:28:46 +01:00
teknomunk fe5638e1c8 Address more review comments 2024-11-02 21:28:46 +01:00
teknomunk 38858e296b Make arrows damage players, update API documentation, fix several crashes that occurred when arrows hit a player 2024-11-02 21:28:46 +01:00
teknomunk a65acb1148 Fix picking up tipped arrows 2024-11-02 21:28:46 +01:00
teknomunk fd0d70e713 Fix crash with splash potions of harming, make splash particles match potion color 2024-11-02 21:28:46 +01:00
teknomunk e02b255c53 Fix splash potions, fix crash when projectiles hit unknown nodes 2024-11-02 21:28:46 +01:00
teknomunk e1bf6eb14e Remove logging in tipped_arrows, prevent crash when spawning chicks, add extra safety check in vl_projectile.collides_with_solids 2024-11-02 21:28:46 +01:00
teknomunk 0561e2b95b Lingering potions should not collide with liquids, change behaviors assersion loop to catch nil members 2024-11-02 21:28:46 +01:00
teknomunk ad087805ea Convert lingering potion to vl_projectile 2024-11-02 21:28:46 +01:00
teknomunk 1a6f7d3c15 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-11-02 21:28:46 +01:00
teknomunk 00bff2b7bf Fix crash related to nil _time_in_air 2024-11-02 21:28:46 +01:00
teknomunk af8955d6a9 Revert entity->object for three lines 2024-11-02 21:28:46 +01:00
teknomunk 2633fed373 Fix typo _ -> . 2024-11-02 21:28:46 +01:00
teknomunk 4d4fc562df Add empty line 2024-11-02 21:28:46 +01:00
teknomunk c46e7ae59a Fix typo in api.md, add TODO, change entity -> object 2024-11-02 21:28:46 +01:00
teknomunk 511f2fe600 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-02 21:28:46 +01:00
teknomunk f724594158 Update mcl_util.get_double_container_neighbor_pos() to use vector.offset 2024-11-02 21:28:46 +01:00
teknomunk de6aef8cab Resolve more review comments, fix crash 2024-11-02 21:28:46 +01:00
teknomunk 3281f00027 Resolve review comments 2024-11-02 21:28:46 +01:00
teknomunk 6ade01824d Remove debug print 2024-11-02 21:28:46 +01:00
teknomunk 36f38bf7b6 Give arrows a maximum lifetime to prevent them from getting stuck in mid-air forever 2024-11-02 21:28:46 +01:00
teknomunk 67bef66aa4 Fix documentation for raycast_collides_with_entities 2024-11-02 21:28:46 +01:00
teknomunk b76deb3858 Add API documentation, minor API cleanup 2024-11-02 21:28:46 +01:00
teknomunk eee2715056 Convert rocket to use vl_projectile API using mcl_bows:arrow as a template, remove some dead code 2024-11-02 21:28:46 +01:00
teknomunk ae9de60bbb 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-02 21:28:46 +01:00
teknomunk b924a5192d Fix crash on startup 2024-11-02 21:28:46 +01:00
teknomunk f8c0a1452e More refactoring to generalize arrow code into projectile 2024-11-02 21:28:46 +01:00
teknomunk caad563709 Start mcl_bows:arrow_entity refactor 2024-11-02 21:28:46 +01:00
teknomunk 6a9c8660bc Remove _thrower from vl_projectile (uses self._vl_projectile.owner instead), reorder some code 2024-11-02 21:28:46 +01:00
teknomunk dce005d0f3 Finish reworking all items in mcl_throwing 2024-11-02 21:28:46 +01:00
teknomunk 8418d15eca Add in vl_projectile, add mcl_util.match_node_to_filter 2024-11-02 21:28:46 +01:00
teknomunk 41f41dee3b Move node related functions to mods/CORE/mcl_util/nodes.lua 2024-11-02 21:28:46 +01:00
teknomunk 58df082b68 Create vl_projectile and refactor snowball and partially refactor ender pearl 2024-11-02 21:28:46 +01:00
the-real-herowl b136cbf9bb Changed bamboo cap drawtype (#4658)
Reviewed-on: VoxeLibre/VoxeLibre#4658
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2024-11-02 21:04:00 +01:00
Mikita Wiśniewski 78125f425a Fix taking items out of protected smithing tables 2024-11-02 21:00:19 +01:00
cora cb1999414b Fix putting items in protected smithing tables 2024-11-02 21:00:19 +01:00