2242 Commits

Author SHA1 Message Date
Wuzzy
c2b5af606c Generalize two boar functions 2024-03-10 11:58:40 +01:00
Wuzzy
5fe0d4768f Fix 'gonna_feed_em_all' achievement 2024-03-10 11:29:54 +01:00
Wuzzy
51e42fdfbb Refactor mobs code by generalizing boar code 2024-03-10 11:18:18 +01:00
Wuzzy
b92a780a7d Document the boar variables 2024-03-09 09:41:11 +01:00
Wuzzy
255938bcee Remove mobs_safe_spawn setting 2024-03-08 17:41:30 +01:00
Wuzzy
aa6c3fb0fd Repurpose static_spawn_radius for village spawning 2024-03-08 17:40:49 +01:00
Wuzzy
65260e739d Despawn hostile mobs in only_peaceful_mobs mode 2024-03-08 17:24:16 +01:00
Wuzzy
5554c114d8 Remove mob blood particles entirely 2024-03-07 18:43:05 +01:00
Wuzzy
00907c8669 Re-implement natural mobs spawning 2024-03-07 18:39:47 +01:00
Wuzzy
c12d454563 Boar: Unfollow partner if no longer horny 2024-03-07 16:44:12 +01:00
Wuzzy
bd835b8fb2 Don't let boar follow player into danger 2024-03-07 13:13:32 +01:00
Wuzzy
f670114889 Boar follows mating partner and player with food 2024-03-07 12:11:09 +01:00
Wuzzy
b39ca3f0c7 Boars now scan for interesting entities 2024-03-07 10:58:36 +01:00
Wuzzy
692495bb7a Fix boar not falling into water correctly 2024-03-06 18:46:33 +01:00
Wuzzy
52c0099073 Mobs: Implement move_straight drag properly 2024-03-06 18:25:43 +01:00
Wuzzy
4b79f28b31 Mobs: Scan environment at least every second 2024-03-05 21:08:56 +01:00
Wuzzy
0d66395425 Smaller collisionbox for boar and sheep 2024-03-05 20:52:30 +01:00
Wuzzy
263de7a865 Use igniter as puncher when TNT deals damage 2024-03-05 18:26:35 +01:00
Wuzzy
d29ef0f683 Make Hunter achievement work again 2024-03-05 17:50:24 +01:00
Wuzzy
d405305031 Fix 'wonder of life' achievement not triggering 2024-03-05 17:34:10 +01:00
Wuzzy
0ce984eaec Teach boar to not walk into dangerous nodes 2024-03-05 16:49:14 +01:00
Wuzzy
55979da23e Can't place mob into solid node 2024-03-04 17:43:10 +01:00
Wuzzy
6b7558b36e Boar: Remove heart debug particles 2024-03-04 12:24:32 +01:00
Wuzzy
c0cc017a33 Boar: Fix angle when escaping water / damage node 2024-03-04 12:08:57 +01:00
Wuzzy
428b4a88c6 Teach boar how to escape damaging nodes 2024-03-01 02:26:46 +01:00
Wuzzy
9de7867e7e Remove set zero speed in boar code 2024-02-26 21:14:05 +01:00
Wuzzy
8eeccc805d Refactor mobs task templates file 2024-02-26 18:02:30 +01:00
Wuzzy
0ddf0219c5 Fix excessive velocity change for mobs on TNT hit 2024-02-26 18:00:52 +01:00
Wuzzy
3255095024 Add bubble particles for mobs in drowning nodes 2024-02-25 14:27:54 +01:00
Wuzzy
6c8ccf6b49 Change sheep drowning point 2024-02-25 14:24:40 +01:00
Wuzzy
b4f41dbef4 Mobs: Move rp_mobs.scan_environment function 2024-02-23 21:51:04 +01:00
Wuzzy
0048d27e44 Fix bad child mob collisionbox offset if dying 2024-02-23 21:29:21 +01:00
Wuzzy
07bb688ba7 Mobs: Localize mobl variable in child.lua 2024-02-23 21:24:47 +01:00
Wuzzy
e771150d7a Sheep no longer drops wool when dying shorn 2024-02-23 21:16:36 +01:00
Wuzzy
97abefe1d3 Mob items are no longer stackable 2024-02-23 15:11:23 +01:00
Wuzzy
819186aeb3 Store mob metadata in mob items
Also add 'shorn sheep' item texture
2024-02-23 15:05:18 +01:00
Wuzzy
a4e15c6da4 Make damage texture modifier of player+mobs red 2024-02-23 01:29:37 +01:00
Wuzzy
e0e12967e9 Mobs: Scan environment when dying, too 2024-02-23 00:41:46 +01:00
Wuzzy
05676f8388 Mobs: Respect disable_jump when trying to jump 2024-02-23 00:41:19 +01:00
Wuzzy
559d2afe3b Clear task queue debug display if mob is dying 2024-02-23 00:25:24 +01:00
Wuzzy
c397680e79 Remove an old mobs debug message 2024-02-23 00:19:48 +01:00
Wuzzy
53f60c6944 Fix dead mob collisionbox offset 2024-02-23 00:18:50 +01:00
Wuzzy
13841f6f73 Play 'disappear' sound when mob/player disappears 2024-02-23 00:08:49 +01:00
Wuzzy
91d5032b79 Add smoke poof particles after mob/player dies 2024-02-22 21:31:45 +01:00
Wuzzy
22e1f10cc3 Update mob dying documentation, fix crash 2024-02-22 19:49:50 +01:00
Wuzzy
9b0f58ee09 Add special dying status to mobs 2024-02-22 19:33:37 +01:00
Wuzzy
65ec57a4c0 Add new boar sounds 2024-02-16 16:23:13 +01:00
Wuzzy
ca45b7c54f Add more mob sounds and document them 2024-02-16 16:18:39 +01:00
Wuzzy
d784744c89 Fix child mob keeping child texture if growing up 2024-02-16 15:16:18 +01:00
Wuzzy
9f2d8611b3 Enable child growth to boar and sheep 2024-02-16 15:12:24 +01:00