279 Commits

Author SHA1 Message Date
Aaron Suen
2231d1dffe Add wield description HUD.
Swap it out with the breath bar, since the breath bar won't be
displaying most of the time, so we can afford to not read what an
item is until we come up for air to look at it.

Also, "eggcorn" is a single word.
2019-03-04 00:52:21 -05:00
Aaron Suen
7f123aea91 Goodbye, last GUI!
- Inventory screen is now no longer game-interactive, and serves
  as purely an "about" screen.
- Move the HUD components out of inv mod and into hud mod.
- Separate player setup mod for static physical limitations like
  step height, inv size, etc.
2019-03-03 16:53:12 -05:00
Aaron Suen
a6b454b1a3 Fix items being deleted on sneak-dig.
Cannot change the wielded item because this is overwritten between
getting and handling node drops, so we can only sneak items into
the other slots.
2019-03-03 16:46:30 -05:00
Aaron Suen
3ef32c0206 Sneak-digging an item stack prefers keeping the stack separate.
This is allows you to split a stack by throwing individual items
with sneak-drop, letting them settle into a single stack, and
then sneak-digging the stack to keep it separate in your inventory.

This makes it possible to split stacks into arbitrary quantities
without having to use the inventory GUI.
2019-03-03 16:22:02 -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
6c8a07d473 Remove HUD player name wield item description.
This is now covered by the wield view ents.
2019-03-03 01:01:18 -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
Aaron Suen
ab2132a035 Fix shelf not accepting ANY items. 2019-03-02 22:53:28 -05:00
Aaron Suen
5a83a15b48 Definitively block placing shelves/totes inside shelves. 2019-03-02 21:41:25 -05:00
Aaron Suen
98b235511c Standardize use of include function. 2019-03-02 20:39:08 -05:00
Aaron Suen
c7ac1f63db Reorg all player mods, give them lexically grouped names. 2019-03-02 20:32:50 -05:00
Aaron Suen
0635ccd5ac Fix bad global. 2019-03-02 19:35:36 -05:00
Aaron Suen
08a6a484d1 Make facial recognition distance linear with light level. 2019-03-02 19:33:34 -05:00
Aaron Suen
a3bd630274 Show names in dimmer light. 2019-03-02 18:21:49 -05:00
Aaron Suen
46403c1fea Randomized lode prill yield.
Using an exponentially-distributed random variable for lode prill
yield.  This results in approximately the same average yield as
before, but with many pieces of ore yielding disappointingly only
1 prill, but a few yielding more, theoretically almost infinitely
more.  Every smelting operation now has a bit of a gambling thrill
aspect to it.
2019-03-02 17:49:09 -05:00
Aaron Suen
1bca9d4b32 Fix plank smashing yield. 2019-03-02 15:15:09 -05:00
Aaron Suen
184194bb24 Make ears a bit smaller. 2019-03-02 13:47:20 -05:00
Aaron Suen
e853a0d504 Make player model a little more demographically neutral.
Also, tidy up clothing.
2019-03-02 13:39:46 -05:00
Aaron Suen
0b879d59bf Make the player just a little smaller.
If 1 node = 1 meter, then the player is now 180cm tall, which is
about the 70th percentile, instead of 200cm, which was the 99.9th
percentile (unrealistically tall).

The model's head also sinks into the ceiling much less at the
height of a jump.
2019-03-02 12:02:08 -05:00
Aaron Suen
46cefb3bc6 Fix model coords/position in 0.4.
Detect MT version and swap out a coordinate-transformed version of
the model.
2019-03-02 11:32:47 -05:00
Aaron Suen
b94d04159e Buff base player walking speed.
Players can't "sprint" currently, so hopefully this should make
exploration about 20% less tedious, and reduce the temptation to
rely on using the "fast" priv.
2019-03-02 11:16:22 -05:00
Aaron Suen
0350960762 Remove redundant license file.
Per CONTRIBUTING terms, licenses are combined.

Also, this mod is no longer PURELY LoneWolf's work (mostly just
the model is intact, and the code/textures are largely mine) so
the copyright statement in this license file was not really
reflective of the totality of what it covered.
2019-03-02 10:56:16 -05:00
Aaron Suen
4de1867d75 Remove health descriptions from player HUD text.
We can already see these plainly on the model now.
2019-03-02 10:17:33 -05:00
Aaron Suen
27b8919b37 Completed player model mod, with textures.
- Textures derived from old player sprites.  Not 100% sure UV
  mapping is right, but it looks good enough in singleplayer.
- Certain basic privs, i.e. shout/interact, are displayed on the
  player model via adding/removing elements.
- Battle damage shown on player model.
2019-03-02 10:13:39 -05:00
Aaron Suen
34970e2696 Merge branch 'master' into lwplayer 2019-03-02 09:03:08 -05:00
Aaron Suen
473c65b403 Oops, forgot mods subdir. 2019-03-02 09:02:51 -05:00
Aaron Suen
e8aaf4e580 Fix empty stack node on chopping wood pick head into sticks. 2019-03-02 08:55:15 -05:00
Aaron Suen
760a50bde3 Jitter movement speed.
This gives a much stronger sense of "limping."
2019-03-01 00:15:29 -05:00
Aaron Suen
d1e52fb303 Tote bug fixing.
The major bug was the lode heating/cooling logic wiping out the
tote's inventory when it was sitting in a stack node.

Also setup description text.
2019-02-28 23:47:36 -05:00
Aaron Suen
29dc12fcfb Appearance and recipe for tote node. 2019-02-28 23:16:07 -05:00
Aaron Suen
67041ac54d Craft shelves in-place.
Since the recipe output count matches frame count, this is more
consistent with design intent.

Shelves can also be crafted in place this way for use in a tote.
2019-02-28 23:15:26 -05:00
Aaron Suen
229dda7714 Fix crash on placing w/ no metadata. 2019-02-28 00:30:28 -05:00
Aaron Suen
579679da2c Initial revision of a portable "tote" node.
When picked up, it carries up to 8 surrounding shelves with it,
allowing significant inventory compression into one slot.  Needs
to be placed somewhere everything fits to access the inventory
again.
2019-02-28 00:02:00 -05:00
Aaron Suen
ce46564f8e Bare stacks coalesce, but items don't fall into top of shelves. 2019-02-27 23:12:19 -05:00
Aaron Suen
aa3c33adf9 Nerf healing speed too. 2019-02-27 22:50:54 -05:00
Aaron Suen
06f28a4a7b Re-nerf death spew velocity; was kinda ridic. 2019-02-27 22:35:23 -05:00
Aaron Suen
5aed5449ad Tweak tree-gen, making them a little easier to find.
Had multiple complaints from players that trees are hard to find.
The possiblity of needing some exploration is reasonable, and we
don't want the world to be too uniform for aesthetic reasons, but
there shouldn't be much harm in making trees less frustrating
to find.
2019-02-24 23:49:24 -05:00
Aaron Suen
bfce78f06f Register missing dependency. 2019-02-24 23:33:06 -05:00
Aaron Suen
393210db69 Start proper spectator support.
Make sure that non-built-in content respects the interact priv
and prevents spectator players from doing nasty stuff.
2019-02-24 21:54:33 -05:00
Aaron Suen
f4581e61fe Fix a typo. 2019-02-24 20:29:46 -05:00
Aaron Suen
9fe3f296b9 Tree stumps can finally be ground up by lode axes. 2019-02-24 16:36:53 -05:00