Client: Wire remote humans to dressed student proxies#15
Merged
Conversation
StudentProxy gains a registry-free per-avatar API:
- SpawnProxy(x,y,z,yaw, Appearance, &skin) / DestroyProxy(actor)
- Appearance { bool female; int house; } selects the per-gender outfit
and per-house tint/crest overlay (kit_params_houses.h)
human.cpp wiring (this is the Hogwarts stand-in for the native
EntityFactory MafiaMP drives in its human.cpp):
- Create spawns a proxy at the entity's streamed Transform; the actor +
GC-guard index + skin component live in a new Avatar component
- Update/UpdateRemoteHuman interpolate position and rotation and apply
them via K2_TeleportTo; teleport-sized jumps snap instead of crawling
- Remove destroys the proxy
- Two fixes carried over from the broom work: read the local pawn's
WORLD location via K2_GetActorLocation (RootComponent->RelativeLocation
is parent-relative and stays static), and fetch Tracking only after
all add()s so the player ref isn't written through a dangling
archetype slot
Appearance is plumbed but defaults to Gryffindor male; deriving it from
the wire waits on the HumanSpawn message carrying it (a MAJOR bump).
Broom mount/dismount stays on broom_proxy and re-applies on top.
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.
StudentProxy gains a registry-free per-avatar API:
human.cpp wiring (this is the Hogwarts stand-in for the native EntityFactory MafiaMP drives in its human.cpp):
Appearance is plumbed but defaults to Gryffindor male. Broom mount/dismount stays on broom_proxy and re-applies on top.