225 Commits

Author SHA1 Message Date
Aaron Suen
a015e47dbe New experimental szutil_xplevel mod 2022-09-29 22:02:27 -04:00
Aaron Suen
12f4fc4f15 Move cinecam config into settings
Instead of using mod_storage and privs to control
cinecam, just use settings.  The priv checks every
globalstep per player, in particular, were expensive,
and using "/grantme all" with the mod installed
would cause the player to teleport as a camera
player.
2022-09-29 18:09:28 -04:00
Aaron Suen
079c21a58b Don't return player name on craft in idlekick
Apparently this causes games that use engine crafting to replace
the recipe output with an unknown item with the player's name.

Fixes https://gitlab.com/sztest/szutilpack/-/issues/4
2022-07-05 06:44:31 -04:00
Aaron Suen
64f28532f1 Fix and optimize line of sight checks
- Check destination medium against source, since it's possible
  to transition from a fluid to air and raycast will NOT collide
  with the air, causing from-fluid-to-air transitions not to be
  detected.
- Pre-cache fluid medium data for all node defs instead of running
  through logic at runtime.
2022-05-03 07:10:15 -04:00
Aaron Suen
0a9ba9c210 Delay setting watching HUD until set camera 2022-04-30 14:15:20 -04:00
Aaron Suen
9a4c3550b1 Fine tuning for bottom margin of watching HUD 2022-04-28 21:28:38 -04:00
Aaron Suen
8b9d42646a Re-show the "watching" HUD periodically 2022-04-27 15:43:29 -04:00
Aaron Suen
6c3a0d1859 Fix saving settings across restarts 2022-04-25 22:45:34 -04:00
Aaron Suen
586e592552 Separately configurable height 2022-04-25 22:43:39 -04:00
Aaron Suen
9de0f9ceec Prefer the camera over the shoulder
Bias camera to behind the player's looking dir
so we see things more from the player's
perspective so we can see what they're doing.
2022-04-25 22:40:16 -04:00
Aaron Suen
65a624096a Fix HUD, runtime-configurable settings 2022-04-25 22:36:45 -04:00
Aaron Suen
59af87466e Clearer, better-proportioned image 2022-04-24 21:09:07 -04:00
Aaron Suen
bafddf2bf6 Allow display dimming/vignette
Deeper dimming/vignette when server is empty
to make it a little more visually interesting, plus
add a clearer indication that the server is in
a different state than normal play.
2022-04-24 21:03:36 -04:00
Aaron Suen
65ad490837 Extract settings, narrow assumed FOV
Assume that the FOV might be as narrow as 72.
2022-04-22 21:32:06 -04:00
Aaron Suen
7ae04eb463 Show caption for longer
People aren't necessarily going to be expecting
it so may need more time to read it.
2022-04-22 00:47:47 -04:00
Aaron Suen
fd41bd6a52 Fix reshowing caption on same player
If only one player is online and they are idling in
darkness, it makes the "Watching: " caption show
up too frequently.  Instead, only show the caption
when we change to a different player.
2022-04-22 00:09:27 -04:00
Aaron Suen
2f3985f1d3 Permission to exempt players from MOTD 2022-04-21 23:40:29 -04:00
Aaron Suen
32131b820d Explicitly allow ignores 2022-04-20 20:28:17 -04:00
Aaron Suen
23bfae11fd More cautious allow check that also allows water placement 2022-04-20 07:58:23 -04:00
Aaron Suen
3bc06c5118 Try moving player after setting lookdir
See if we can get rid of that one step worth of jank after
moving the player before their lookdir is set correctly, which
might be due to the delay involved in the work of moving the
player's position.
2022-04-20 07:35:01 -04:00
Aaron Suen
b001ce7b36 Standardize target cycling time 2022-04-20 07:33:31 -04:00
Aaron Suen
744be01ae0 Add dummycam, stay inside airlikes
If no player is connected, just show random views around "spawn"
(the origin for now, not actually testing to find the real spawn
location or honoring static_spawn setting yet) every ~10s.

Make sure the camera is never placed inside a solid; if it is,
then it needs to be moved immediately.
2022-04-20 07:29:26 -04:00
Aaron Suen
66df91ced7 Don't shuffle camera order
This leads to uneven times between cycling to
a particular player; it's probably best to just use
the naive order and let players rotate through
deterministically.

This was especially noticeable when a player
was last in the queue and then first in the next
queue, so you'd see a "Watching: ..." HUD
announcement but no actual change in perspective
and the player would just run twice as long.
2022-04-19 20:39:57 -04:00
Aaron Suen
09ca6f0c89 Allow certain players to be ignored for restarts 2022-04-19 19:34:09 -04:00
Aaron Suen
a27fc1e13d Add a "watching:" HUD 2022-04-19 19:25:57 -04:00
Aaron Suen
8ad44fcd15 Fix wrong mod name 2022-04-18 23:52:03 -04:00
Aaron Suen
cf489835cf Fix code formatting issue 2022-04-18 23:46:45 -04:00
Aaron Suen
47f89855ed Add new WIP "cinematic camera" mod 2022-04-18 23:46:36 -04:00
Aaron Suen
c09272b39d Fix DM beeps w/ new translation 2022-04-01 13:08:12 -04:00
Aaron Suen
9664255b3e Fix broken server status line in 5.5+ 2022-02-18 00:12:43 -05:00
Aaron Suen
159ede89d4 Fix special case of :00 countdown
Should not happen anymore, but just in case.
2022-01-26 22:02:50 -05:00
Aaron Suen
f54dc14dd9 Fix graceless uptime-based restarts
Make sure to trigger the restart countdown before
the uptime limit to make sure there's enough time
for the grace period countdown before the restart.
2022-01-26 22:01:18 -05:00
Aaron Suen
1a550952a7 Fix mis-restoring interact privs on unwatch
Apparently {interact=false} grants the interact
priv, it needs to actually be nil (i.e. key absent)
to not grant interact.
2022-01-23 20:56:02 -05:00
Aaron Suen
6f7892e232 Fix restart announcing
Announce pending restarts if one was pended at the time the
first player joins a game (possible if it's held off by the
minimum restart interval).
2022-01-06 07:14:17 -05:00
Aaron Suen
0cd4737c96 Automatic interact revocation where appropriate 2022-01-06 07:12:58 -05:00
Aaron Suen
19d89b0565 CDB dev state 2021-12-26 14:33:01 -05:00
Aaron Suen
c33e7afba2 Fix blockstats hud breaking other huds
- Remember to clear cached IDs on exit
- Try to defer HUD creation a tiny amount to avoid slamming clients
  with a ton of HUD creation packets all at once
2021-12-10 07:31:29 -05:00
Aaron Suen
9af45a5bab Fix infinite node placement bug 2021-08-19 07:39:07 -04:00
Aaron Suen
a1afdabdb6 Mod to kick idle players 2021-08-18 08:08:25 -04:00
Aaron Suen
a526faffc2 Capture item drop in block usage too 2021-07-18 08:21:12 -04:00
Aaron Suen
609d54473f Include mapblock pruning script by usage 2021-07-18 08:14:12 -04:00
Aaron Suen
0dfff3eb10 Fix crash on config parse fail 2021-07-10 20:39:35 -04:00
Aaron Suen
f86b39a83d Strip remaining escapes 2021-07-10 19:51:02 -04:00
Aaron Suen
55ed9c368a Strip MT translation tags from socket text 2021-07-10 19:43:43 -04:00
Aaron Suen
dd1cf72902 Usage survey improvements, live HUD 2021-07-08 21:45:19 -04:00
Aaron Suen
7cab2bec37 Add todo 2021-07-05 22:49:08 -04:00
Aaron Suen
0a142a2a79 Add /nodeuse command to limit report to building actions 2021-06-30 07:29:00 -04:00
Aaron Suen
d31bc2e71b Migrate usage database to json 2021-06-30 07:09:13 -04:00
Aaron Suen
7d88a00c4f Try fixing NodeCore inv dump on /unwatch
Move player to target position first, then restore
inventory after so it doesn't get left behind where
it's restored (i.e. next to the /watch-ed player)
2021-06-08 07:18:03 -04:00
Aaron Suen
b9e80905ac Fix backwards emerging timeout check 2021-03-23 15:43:30 -04:00