3042 Commits

Author SHA1 Message Date
Wuzzy
a5846037b5 Fix animal turning twice when facing danger 2024-04-06 20:31:04 +02:00
Wuzzy
f9f82b1ae6 Stop animals from trying to jump over fences 2024-04-06 18:54:24 +02:00
Wuzzy
b2f1b18e88 Make mobs respect liquid/climbable physics if dead 2024-04-06 18:12:43 +02:00
Wuzzy
4bbfac8e05 Add support for custom mob death step 2024-04-06 17:27:33 +02:00
Wuzzy
36d79f48c2 Villager: Reset worksite/homebed if no path found 2024-04-06 13:28:23 +02:00
Wuzzy
1ef0f3db16 Villager neighbor check checks air space as well 2024-04-05 22:35:37 +02:00
Wuzzy
28e8f01865 Fix skunk environment scan offset 2024-04-05 22:32:05 +02:00
Wuzzy
cd3b133153 Add liquid/ladder drag for villagers 2024-04-05 22:19:20 +02:00
Wuzzy
bcbf7ffd38 Pathfinder: Check floor if climbing downwards 2024-04-05 21:18:02 +02:00
Wuzzy
500f961262 Make villager escape liquid properly again 2024-04-05 21:06:29 +02:00
Wuzzy
9f21966408 Fix villager not falling if climbable node removed 2024-04-05 20:59:13 +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
223581b532 Teach villagers how to deal with corner doors 2024-04-05 14:39:27 +02:00
Wuzzy
23457edf26 Villager: Fix issues with unstuck code 2024-04-05 14:08:19 +02:00
Wuzzy
b54c5ff9fb Mobs: Fix climbing failure if starting upwards 2024-04-04 15:59:32 +02:00
Wuzzy
82269b611d Fix microtask reuse in villager code 2024-04-03 18:58:46 +02:00
Wuzzy
a2f46861e1 Teach villager to escape liquids 2024-04-03 18:52:29 +02:00
Wuzzy
dd863a16fd Pathfinder: Allow custom climbable node 2024-04-03 18:51:59 +02:00
Wuzzy
69cda93705 Teach villager to quickly run out of danger node 2024-04-03 17:40:57 +02:00
Wuzzy
20a63f90a4 Add rp_mobs.clear_task_queue 2024-04-03 17:40:48 +02:00
Wuzzy
c0495ae719 Make pathfinder debug more performant 2024-04-03 16:35:35 +02:00
Wuzzy
8a092d0654 Set villager skin correctly after spawn in village 2024-04-03 16:20:45 +02:00
Wuzzy
0403859ee7 Spawn animals as tamed in villages 2024-04-03 15:53:16 +02:00
Wuzzy
ee9754bdcb Make villager look at nearby player 2024-04-03 15:41:20 +02:00
Wuzzy
f1f3fad8ca Make villagers wear clothes of their profession 2024-04-03 15:20:02 +02:00
Wuzzy
eda6899610 Fix infinite loop in villager node search 2024-04-03 12:59:16 +02:00
Wuzzy
01c849fc4c Villager: Avoid taking worksite/bed already taken 2024-04-03 12:32:25 +02:00
Wuzzy
e7e2049b45 Mobs: Fail 'follow path' microtask if stuck 2024-04-02 20:25:10 +02:00
Wuzzy
a95947728c Add microtask success and failure 2024-04-02 20:24:59 +02:00
Wuzzy
eae8064462 Villager: Don't walk again if target reached 2024-04-01 11:17:16 +02:00
Wuzzy
7c91d9b63d Add new 'climb' follow path microtask 2024-03-30 00:54:35 +01:00
Wuzzy
00182005d6 Pathfinder: Can't jump when in or on climb node 2024-03-30 00:23:08 +01:00
Wuzzy
b7a85812db Make pathfinder abort earlier for performance 2024-03-29 23:08:31 +01:00
Wuzzy
8b48978627 Remove all non-async pathfinder calls in villager 2024-03-29 20:54:02 +01:00
Wuzzy
19c4aa1ef1 Fix villager syntax error 2024-03-29 18:03:47 +01:00
Wuzzy
75a641b23f Remove unused door code file 2024-03-29 17:41:34 +01:00
Wuzzy
9acb6701d7 Teach villager how to get unstuck 2024-03-29 17:41:05 +01:00
Wuzzy
3920b770cb Villagers now keep worksite and resolve conflicts 2024-03-29 16:33:27 +01:00
Wuzzy
21369a2716 Add villager schedules 2024-03-29 15:27:11 +01:00
Wuzzy
1d2f9d2e8f Teach villager to climb downwards properly 2024-03-29 14:17:47 +01:00
Wuzzy
86a3b45c7e Pathfinder: Climb down correctly 2024-03-29 13:38:43 +01:00
Wuzzy
da10307fe2 Disable villager object collision for now 2024-03-29 12:45:09 +01:00
Wuzzy
286685bf32 Add new tavern, add barrel in taverns 2024-03-29 12:41:43 +01:00
Wuzzy
df574f8577 Add profession-specific drops for villagers 2024-03-29 12:24:41 +01:00
Wuzzy
8b2fef6352 Rewrite villager home bed conflict resolving 2024-03-29 01:18:56 +01:00
Wuzzy
e19e90fad8 Resolve villager home bed conflicts ... kinda 2024-03-29 01:00:23 +01:00
Wuzzy
a47845db54 Remove villager home bed timer (cuz singlestep) 2024-03-29 00:02:27 +01:00
Wuzzy
9052f6c892 Villagers also check for door at head 2024-03-28 23:51:30 +01:00
Wuzzy
6b2b1890b8 Enable villager recreation again 2024-03-28 23:28:42 +01:00