29 Commits

Author SHA1 Message Date
Auke Kok
d75c3c83f2 Relicense to LGPL-2.1/CC-BY-SA-4.0.
In concorance with the CLA, I'm relicensing this according to the
exact rules in there that permit this. Henceforth this project is
fully compatible with other MT projects and consistently licensed.
2019-08-26 15:08:01 -07:00
Auke Kok
8a62d34438 Major refactor.
All step code is now part of the driver engine:
- sound steps
- factor accounting
- factor-based switching
- animation step handling.

Moreover, there is no more local factor state subtable,
and factors need to return or pass factordata to the
driver method. Factordata is only passed to the .start()
method as well, but that can then store the needed data
into the entity_ai_state as needed by the driver itself.

This still has an issue with entity animation sequence
ends, as far as I can see, in the sheep eat driver. This
will need further work.

finders, drivers and factors are now all in separate files.

The sheep script has been partially cleaned up to account
for the differences

Many asserts were added. We need to keep these until things
become more stable, and possibly add a ton more of them to
make sure we're not passing garbage.

A luacheck file is added to keep things sane going forward.
2017-04-05 00:28:22 -07:00
Auke Kok
0e78a75a66 Rename 'mob' everywhere to 'monster'. 2016-09-26 10:41:50 -07:00
Auke Kok
990c53f39b Add licensing, clarify sound file licenses. 2016-09-26 09:37:45 -07:00
Auke Kok
6dbb4c354a Add stone giant test spawn. 2016-09-26 09:07:37 -07:00
Auke Kok
d831a1ffaf Pass name as arg 1 on registration. 2016-09-26 09:07:11 -07:00
Auke Kok
1c9eb14202 Take topmost food node. 2016-09-26 09:06:46 -07:00
Auke Kok
26a5af4c59 Untrap entites trapped 1 node under surface. 2016-05-03 23:35:31 -07:00
Auke Kok
42b2f9873d Fix default stepheight for slabs. 2016-05-02 22:20:53 -07:00
Auke Kok
6661a064d4 Split the sheep definition out to a separate file.
Proves that this is nicely moddable.
2016-05-02 22:18:09 -07:00
Auke Kok
54cb86d208 Don't initiate pathing unless driver needs one. 2016-05-02 21:40:29 -07:00
Auke Kok
9ff4807f96 remove old footstep sound, add dig sounds. 2016-05-02 21:28:15 -07:00
Auke Kok
e9e3819b71 Proper node eating. Step sounds. Updated texture. 2016-05-02 21:09:48 -07:00
Auke Kok
3eb81fdc90 Better positioning to eat - must be right near. 2016-05-02 00:10:55 -07:00
Auke Kok
4b694f37f6 Nearly done rewriting using registrations. 2016-05-01 23:40:02 -07:00
Auke Kok
e3928fa56d Sounds (through driver object). 2016-05-01 16:29:34 -07:00
Auke Kok
3a87cafee0 Implement per driver properties and global properties 2016-04-30 23:57:06 -07:00
Auke Kok
5467de906f Split out driver class, simplified saving/restoring 2016-04-30 23:32:25 -07:00
Auke Kok
4a16c98b63 Cleaned up animation parts. 2016-04-30 20:05:18 -07:00
Auke Kok
e44317b153 Eating script seems to work ok. 2016-04-30 15:38:38 -07:00
Auke Kok
b82114ab0f Fleeing is starting to work now. 2016-04-28 00:25:02 -07:00
Auke Kok
7815223fc7 Path class completed and debugged. 2016-04-27 23:53:36 -07:00
Auke Kok
872b9f258f Sheep model update. Fix broken walking. 2016-04-24 22:36:47 -07:00
Auke Kok
021a7f5423 Less getting stuck now. 2016-04-24 20:00:46 -07:00
Auke Kok
f41d38936e Better jumping and falling. 2016-04-24 17:14:30 -07:00
Auke Kok
4b093672e4 Jumping seems to work at this point. 2016-04-24 16:31:39 -07:00
Auke Kok
c092207dd3 Mark. 2016-04-24 10:47:00 -07:00
Auke Kok
d4108ca38c Completed roam->startle->flee->roam cycle 2016-04-23 17:45:02 -07:00
Auke Kok
92d1f43e28 Initial checkin 2016-04-23 16:22:55 -07:00