17 Commits

Author SHA1 Message Date
Aaron Suen
fe2c153f9e Clean up all lua code style.
Formatting rules based on Paul Kulchenko's perl-based formatter...
http://notebook.kulchenko.com/programming/lua-beautifier-in-55-lines-of-perl
...using a single tab for indent.

Mostly pure whitespace changes.
2019-08-27 19:14:51 -04:00
Aaron Suen
68d996e1f3 Begin EOS for MT 0.4.
We actually haven't been testing in 0.4 at all for quite a while
now.  Since this is a standalone base game without complex
interdependency relationships, there isn't really any need to
maintain compat with old versions of the engine.  Players can
upgrade to play; keeping a separate copy just to play on old 0.4
servers is even still an option.

There is some internal cruft that has been building up to support
0.4, and this allows us to purge most of it.  The larger benefit
may come when we're able to remove line_of_sight in favor of the
more efficient raycast (still yet to be done).
2019-04-06 11:21:34 -04:00
Aaron Suen
9607bcc6a6 Start working on sounds, plus minor refinements.
- Clean up registered_* usage patterns.
- Reduce tendancy of leaves to create stack nodes.
  Now they tend to stack up properly in-world more often.
- Tweak damage system to create "headroom" where minor
  damage doesn't cost inv slots immediately.
- Make player hand skin color match model skin.
- Cleanup/unify grass abm logic.
- Start installing new sounds by MagikEh

Sound source:
  https://github.com/MagikEh/SoundsOfWarr
2019-03-13 23:51:59 -04:00
Aaron Suen
402769962b Disable toolbelt display.
This was effectively never really working in practice on MP, and
only ended up more of an eyesore than anything.  Since it was
really only ever cosmetic, it's probably okay to just leave
this one out.

Clean up some old issues that are probably not worth worrying
about anymore.
2019-03-12 22:12:40 -04:00
Aaron Suen
1f6239f101 Fixed injury showing in wield view, clean up stubs. 2019-03-12 21:27:29 -04:00
Aaron Suen
3a299e712f Some minor API cleanup (celebrating 5.0 release). 2019-03-04 19:33:55 -05:00
Aaron Suen
41f7b71fbf Still more damn wieldview issues.
This has got to be an engine problem by now.
2019-03-03 12:32:07 -05:00
Aaron Suen
bc0c2728d5 Fix wield item size regression. 2019-03-03 12:15:38 -05:00
Aaron Suen
3bef72b665 Unify detecting old version of MT. 2019-03-03 12:08:47 -05:00
Aaron Suen
9951114b7f No need to duplicate (almost) this table... 2019-03-03 12:04:57 -05:00
Aaron Suen
a3c02afb5c Another wield view restructuring.
- Simplify queue handling, FIFO retry for ents not created due
  to world not loaded.
- Make ents responsible for own attachment, to reduce the chance
  of non-attachment due to out-of-order replication.
- Unify config object passed to ents, allowing ents to self-manage
  more.
2019-03-03 12:02:57 -05:00
Aaron Suen
18722ccccd Make toolbelt loading more reliable in 5.0.
Make sure area into which ents are to be spawned is loaded first.
2019-03-03 00:07:37 -05:00
Aaron Suen
287b5a1014 Tweak belt position. 2019-03-02 23:39:56 -05:00
Aaron Suen
4426c91eec Tweak hand ent position. 2019-03-02 23:37:39 -05:00
Aaron Suen
f8dd726df8 Fix a couple crashers.
- Failure to get light level on unloaded areas(?)
- Wrong method to clear ents on logout.
2019-03-02 23:24:55 -05:00
Aaron Suen
dfb04e9eee Adapted wield view for MT 5.0+.
There is some wierd issue in 5.0+, besides the different model
coordinate system.  If I try to create and attach all ents in the
very first tick on player join, only like 3 of them work.  Queue
them up and apply them gradually, one per world tick, to try to
work around this.  Need to figure out what limitation I'm hitting
that's causing this...
2019-03-02 23:14:41 -05:00
Aaron Suen
2a73cb68c3 Experimental new wield view mod.
Show player item in hand, AND all 7 other items on the player's
"toolbelt" as attached wield_item ents.
2019-03-02 22:53:42 -05:00