Repository navigation
docs: add camera, audio and voice chat guides - #12
Merged
Merged
Conversation
New Camera and sound section (orders 70-79), written against 1.8.2: the client's custom camera, server and client sounds, and proximity voice chat with its ranges, tiers and mutes. The overview's camera example now orbits the player and restores on a second key press instead of restoring in the same tick. The sample checker also lets JavaScript pass an untyped event argument on, as it already lets it read one.
This was referenced Oct 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First of three stacked PRs (camera and sound, then mounts and races, then appearance). This one is based on
main.Adds a Camera and sound section (sidebar orders 70–79), written for 1.8.2 and checked against the v1.8.2 Mod source and its Framework pin:
capture/activate/restore, moves, paths and orbits, lens, fades, shakes.resourceStopand only whenCamera.active.stopandrestore, so the samples callclearLookAt()before each new shot.Voice.setRange(0)sets 25 cm rather than the default, so the guide says to pass2500instead.Also in this PR:
check_samples.mjslets a JavaScript sample pass an untyped event argument (unknown) on to a function, as it already lets it read members of one. In 1.8.2, events outside the small typed map, such asplayerDownedEnd, hand JS samplesunknownarguments.Checks:
check_samples(101 samples, 1.8.2 contract),docs.mjs build,check_linksandgit diff --checkall pass.