57 Commits

Author SHA1 Message Date
Wuzzy
2c902fb862 Refactor and document follow_path_climb 2024-04-07 11:26:45 +02:00
Wuzzy
9eb8337edf Fix villager jumping at path 2024-04-06 21:21:39 +02:00
Wuzzy
9e42dfd8f8 Disable pathfinder debug 2024-04-06 20:40:06 +02:00
Wuzzy
f9f82b1ae6 Stop animals from trying to jump over fences 2024-04-06 18:54:24 +02:00
Wuzzy
33023d1be7 Allow to finish mob follow microtaks early 2024-04-05 20:58:46 +02:00
Wuzzy
199ec39b39 More accurate mob path following 2024-04-05 15:33:57 +02:00
Wuzzy
b54c5ff9fb Mobs: Fix climbing failure if starting upwards 2024-04-04 15:59:32 +02:00
Wuzzy
c0495ae719 Make pathfinder debug more performant 2024-04-03 16:35:35 +02:00
Wuzzy
e7e2049b45 Mobs: Fail 'follow path' microtask if stuck 2024-04-02 20:25:10 +02:00
Wuzzy
7c91d9b63d Add new 'climb' follow path microtask 2024-03-30 00:54:35 +01:00
Wuzzy
b7a85812db Make pathfinder abort earlier for performance 2024-03-29 23:08:31 +01:00
Wuzzy
bfaadab4ea Walk path more precisely 2024-03-28 14:54:34 +01:00
Wuzzy
8f6d293446 Calculate villager bed path asynchronously 2024-03-26 21:14:08 +01:00
Wuzzy
96e4f99889 Turn pathfinder microtask template to follow path 2024-03-26 18:59:50 +01:00
Wuzzy
d632829cf2 Teach villager to use the new pathfinder 2024-03-26 18:19:27 +01:00
Wuzzy
eb30490dff Teach villagers to open and walk through doors 2024-03-24 13:26:31 +01:00
Wuzzy
90d1c041cd Mob pathfinder: Improve stuck detection 2024-03-23 15:54:25 +01:00
Wuzzy
eecfc49b57 Mob pathfinder: Add jumping and abort if stuck 2024-03-23 15:38:04 +01:00
Wuzzy
58c6cc210a More mob pathfinder improvements 2024-03-23 14:40:44 +01:00
Wuzzy
d9b7ff4dd0 More mob pathfinder tweaks 2024-03-23 14:09:52 +01:00
Wuzzy
eef9bbc5d5 Fix crash if mob walks on unknown node 2024-03-23 10:39:39 +01:00
Wuzzy
7ba8035128 Fix mob turning around when below targeted player 2024-03-21 20:19:04 +01:00
Wuzzy
e4c738cbbf Mobs stop following if out of range 2024-03-21 15:51:28 +01:00
Wuzzy
b05944e4b6 Clean up hostile mob following behavior 2024-03-21 15:02:54 +01:00
Wuzzy
1cfd850e23 Mobs: Stop following if target is dead 2024-03-20 15:31:47 +01:00
Wuzzy
74bbc9ce2d Stop mobs jumping at high walls 2024-03-19 12:35:43 +01:00
Wuzzy
012f79b36d Mobs: Document core microtask templates 2024-03-18 20:06:43 +01:00
Wuzzy
9a0dbcb04d Fix task template crash (mobs) 2024-03-11 12:11:57 +01:00
Wuzzy
51e42fdfbb Refactor mobs code by generalizing boar code 2024-03-10 11:18:18 +01:00
Wuzzy
f670114889 Boar follows mating partner and player with food 2024-03-07 12:11:09 +01:00
Wuzzy
52c0099073 Mobs: Implement move_straight drag properly 2024-03-06 18:25:43 +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
8eeccc805d Refactor mobs task templates file 2024-02-26 18:02:30 +01:00
Wuzzy
05676f8388 Mobs: Respect disable_jump when trying to jump 2024-02-23 00:41:19 +01:00
Wuzzy
11794b3a84 Boar: Apply water rise smoothly 2024-02-15 23:16:04 +01:00
Wuzzy
1422fb5a48 Mobs: Add basic swim physics for boar 2024-02-12 12:32:26 +01:00
Wuzzy
a2bfe6f078 Mobs: Remove Physics subsystem, we do it by hand 2024-02-08 17:48:47 +01:00
Wuzzy
95b95dd21b Tweak mob jumping code 2024-02-07 16:44:24 +01:00
Wuzzy
686d2a71fc New mob jumping code (basic) 2024-02-06 23:12:19 +01:00
Wuzzy
c9e0dba08f Mobs: Finish random walking after a few seconds 2024-02-06 09:25:22 +01:00
Wuzzy
ad59fce949 Mobs: Reset walk speed if low 2024-02-06 08:42:23 +01:00
Wuzzy
5832bd8b96 Improve mob jumping in walk microtasks 2024-02-06 08:26:38 +01:00
Wuzzy
57c62b953e Make boars walk in a random direction 2024-02-03 18:14:56 +01:00
Wuzzy
856e0329e0 Mobs: Add 2 primitive movement microtasks 2023-10-10 20:14:41 +02:00
Wuzzy
28a409b48a Mobs: Add set_yaw, dummy image 2023-10-10 16:47:07 +02:00
Wuzzy
b63d1a6106 Mobs: Clean up pathfinding stuff a little 2023-10-09 18:49:20 +02:00
Wuzzy
ba217932d1 Mob pathfinder: Walk horizontally only 2023-10-09 16:24:39 +02:00
Wuzzy
b324f6b093 Mobs: Add yaw rotation microtask template 2023-10-09 15:58:05 +02:00
Wuzzy
14aab87041 Mobs: Add sleep microtask 2023-10-01 09:47:17 +02:00