1
0
Fork 0
Commit Graph

46 Commits

Author SHA1 Message Date
Eliy21 fbdbeed94b Prevent dying mobs from catapulting to strong knockbacks like bow/arrows with Punch II 2023-11-21 06:05:54 +00:00
Eliy21 e0bd5e7f33 Balance player velocity added knockbacks from catapulting mobs 2023-11-20 14:52:10 +00:00
Eliy21 0fbfe99c1d Prevent time traveling mobs from being invulnerable if the clock is adjusted 2023-11-20 14:02:38 +00:00
Eliy21 ce1f09f679 Use the dot product mathematical formula 2023-11-20 13:55:55 +00:00
Eliy21 7b7a9a34e5 Fix not adding player velocity on mob hit when moving in perfect x/z direction where the other is 0 2023-11-19 18:52:38 +00:00
Eliy21 1f826b6224 Don't add player velocity if mob velocity is the same or greater to avoid projectile-like knockbacks 2023-11-19 13:07:13 +00:00
Eliy21 0955b9981b Add player velocity to mob knockback 2023-11-19 11:46:38 +00:00
Eliy21 5a7f297e3e Use proper distance calculating tools 2023-11-19 10:14:57 +00:00
Eliy21 1f18c6556a Return vertical knockback to previous commit to account for beginner players 2023-11-18 06:17:16 +00:00
Eliy21 0e320d3965 Rebalance vertical knockback to account for the ease of spamming knockback juggles 2023-11-18 05:40:10 +00:00
Eliy21 ba65880800 Nerf the knockback enchant a bit to accomodate other stacking knockback modifiers 2023-11-18 05:35:59 +00:00
Eliy21 28e157210f Reduce that unnaturally long knockback on second hit after a full cooldown 2023-11-18 05:33:15 +00:00
Eliy21 1d8e6c32d5 Limit attack reach on mobs to 3 blocks
Thanks to the-real-herowl for the code logic suggestion.
2023-11-16 16:33:03 +00:00
Eliy21 68bfeca18f Re-adjust vertical mob knockback to find the right balance in difficulty 2023-11-16 16:24:03 +00:00
Eliy21 bb77e218ba Reduce that weird long knockback on death 2023-11-16 16:19:13 +00:00
Eliy21 8cdf4bea7c Re-buff vertical knockback despite floatiness as the combat becomes harder when lessened
This will make snipe locking with mob juggles easier with the recent commit buffing hand range. Not ideal.
2023-11-14 17:52:21 +00:00
Eliy21 61c96e00ca Optimize code by checking invulnerability time first and dropping the rest of the check if true 2023-11-14 16:56:43 +00:00
Eliy21 c632b77cdb Don't update mob xp when in invulnerable state 2023-11-14 16:44:37 +00:00
Eliy21 782505056d Fix held attack key not hitting mobs bug (this time for sure)
Reverting to old code in the previous PR but with the new optimizations kept
2023-11-14 14:29:50 +00:00
Eliy21 be2fcc925a Optimize code by checking invulnerability1st before the rest and drop checking the others when true 2023-11-12 06:30:57 +00:00
Eliy21 5ebe9f549b Reduce knockback floatiness 2023-11-11 16:42:06 +00:00
Eliy21 107fb0b082 Fix a bug that prevents continuous attacks on mobs when the attack key is held 2023-11-11 16:20:06 +00:00
Eliy21 b2da2b2f63 Give mobs invulnerability for 0.4 seconds after getting hit 2023-11-11 15:23:17 +00:00
the-real-herowl 17c8f220e6 A few more wither fixes 2023-10-11 00:54:31 +00:00
the-real-herowl df17688b7d Great batch of improvements 2023-10-11 00:54:31 +00:00
Nauta Turbidus a1b6819756 Withering effect and effect immunities
Added withering effect and immunities to effects.

Signed-off-by: Nauta Turbidus <88062389+nauta-turbidus@users.noreply.github.com>
2023-10-11 00:54:31 +00:00
ancientmarinerdev 1749712318 Change creepers line of sight check to raycast and do it from eyes to targets feet and head 2023-09-03 22:02:34 +00:00
ancientmarinerdev 658f244ae4 Creeper should not walk to player if it does not have line of sight. Mob shouldn't look at player it does not have line of sight to. 2023-06-21 20:17:49 +00:00
ancientmarinerdev 8092fd573c Cleanup self.acc code and convert to new style vectors 2023-05-11 20:22:19 +01:00
ancientmarinerdev 8a771ebfce Allow adjustment of attack frequency. Reduce attack frequency of Hoglins. Move on_step and do_states functionality off of the attack timer on to their own timer. 2023-05-11 16:33:55 +00:00
ancientmarinerdev fb9a630a5b Hostile mobs should lose aggro if they cannot see their target 2023-05-06 21:51:47 +00:00
ancientmarinerdev 655c130956 Remove aggro for iron golem when out of range 2023-03-10 03:03:53 +00:00
gldrk 1536338199 Allow passive mobs to have protectors 2023-01-14 01:32:42 +03:00
gldrk 3697ef8069 Fix summoning friends for mobs 2023-01-14 01:28:35 +03:00
ancientmarinerdev f8ae702ce4 Function name consistency 2023-01-02 00:58:23 +00:00
ancientmarinerdev 5faf060122 Fix crash and remove unused duplicate variables 2023-01-02 00:54:08 +00:00
ancientmarinerdev 8c648d1fc3 Refactor mob_step and do_states 2023-01-02 00:00:40 +00:00
cora 9508cd4c25 Fix creeper crash 2022-11-29 03:28:19 +01:00
cora a3415647d4 Fix do_jump call in combat.lua 2022-11-27 14:53:16 +01:00
cora 90321ee578 Fix leftover local do_attack call 2022-11-27 14:53:16 +01:00
cora 2b691dea07 Fix some more global var warnings 2022-11-27 14:53:16 +01:00
cora faa38ffab8 Fix some warnings 2022-11-27 14:53:16 +01:00
cora 148b30694f Fix monster_attack and some other settings issues 2022-11-27 14:53:16 +01:00
cora b41d6a1cae Fix mob_punch 2022-11-27 14:53:16 +01:00
cora cc77e109f5 Split off general movement functions 2022-11-27 14:53:16 +01:00
cora e7d9ded9ab Split off combat funcs 2022-11-27 14:53:16 +01:00