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 |
teknomunk
|
5e024bf57f
|
Revert entity->object for three lines
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
05be7b0922
|
Fix typo _ -> .
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
1b824cebb3
|
Add empty line
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
436033eba7
|
Fix typo in api.md, add TODO, change entity -> object
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
52d2c4a26e
|
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-10-11 11:24:02 +02:00 |
teknomunk
|
5bd1bcd425
|
Update mcl_util.get_double_container_neighbor_pos() to use vector.offset
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
16ddcf99eb
|
Resolve more review comments, fix crash
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
3b0690dcc3
|
Resolve review comments
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
52381a1f58
|
Remove debug print
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
149e69452e
|
Give arrows a maximum lifetime to prevent them from getting stuck in mid-air forever
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
f55f647f2e
|
Fix documentation for raycast_collides_with_entities
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
1ee97a2e73
|
Add API documentation, minor API cleanup
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
6eab0433ab
|
Convert rocket to use vl_projectile API using mcl_bows:arrow as a template, remove some dead code
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
1d153f4f2a
|
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-10-11 11:24:02 +02:00 |
teknomunk
|
d35246135b
|
Fix crash on startup
|
2024-10-11 11:24:02 +02:00 |
teknomunk
|
0140d1b81b
|
More refactoring to generalize arrow code into projectile
|
2024-10-11 11:24:02 +02:00 |