31 Commits

Author SHA1 Message Date
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
Wuzzy
49baa2ba5f Mobs: Add decider function 2023-10-01 09:32:44 +02:00
Wuzzy
8727fd0843 Mobs: Remember pathfinding path 2023-09-30 10:41:30 +02:00
Wuzzy
ce3f278b3a Mobs: Add statedata field to microtasks 2023-09-30 10:35:13 +02:00
Wuzzy
e41c82025b Add self parameter in mob microtasks 2023-09-30 10:14:19 +02:00
Wuzzy
15e96f972f Tweak mob pathfinding 2023-09-30 10:09:21 +02:00
Wuzzy
feaf67bb67 Rename mob function parameter from self to mob 2023-09-30 00:57:27 +02:00
Wuzzy
25ccf4eaad Mobs: Add simple pathfinding microtask 2023-09-23 11:19:49 +02:00