Repository navigation
Conversation
… are Gates (closed/open)
… brushes are found
…en variant on another layer
…nts in place go with them
…lt for it on demand
…ing in them out too (not the gateway's floor)
…ves) stand while it is closed and are held out while it is open
… their open state and they swing shut
Collaborator
Author
|
Shipped in 1.2.1 (#349, release v1.2.1). |
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.
What this changes
Some gates are drawn as part of the map (level brushes), not as objects or layer series of their own, so
Gatedid not list them and nothing could open them: Nebákov's gate (gate_nebakov.cgf), the lower gate of Trosky (gate_blocks_b_door.cgf), and Semín's two gates (gate_b_doors_wing_left/right,barn_door_a_left/right). Hiding them withLevelEditleft their collision, which is a separate collider of the level standing beside the model.Dev/tools/gates/build_catalog.pyadds hand-chosen brush gates (BRUSH_GATES) with the states closed and open:brush/nebakov_gate,brush/trosky_lower_gate,brush/semine_gate,brush/semine_barn_gate.GateSeriesgets the brush leaves (mesh, open mesh), a swing angle and whether the map shows the gate open.gates/series): a brush gate's leaves are the shown brushes of those meshes nearest its centre, looked for until the player comes near. The variants of a leaf in its place on hidden layers (barricaded, broken) are taken out with it. Each player's game stands its own copies, like the other series.gate_nebakov_opened,gate_blocks_b_door_open).level::upright_colliders, at least half the leaf's height, so a gateway's floor is never taken) stand while the gate is in the map's state and are held out in the other (level::hold_colliders), from the moment a move begins.Gatelists them fromcatalog.jsonwith no other change:setState,open,close,toggle, late joiners.Docs: KCD-Synced/KCDS-DOCS#98.
How it was tested
gates.test.cjs: new test, the four brush gates are found on trosecko with closed/open, and opening one sends the gate state; 10 pass.Gate.setStatefrom a kit command, rays across each gate):Checklist
python Dev/tools/format_source.py --checkpasses.