Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spawning new Cloud Assets lack collisions for other players #81

Open
Nebual opened this issue Jan 6, 2025 · 0 comments
Open

Spawning new Cloud Assets lack collisions for other players #81

Nebual opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Nebual
Copy link
Owner

Nebual commented Jan 6, 2025

This is arguably more of a Facepunch bug but we can probably workaround it.

When a not-mounted Cloud model is spawned for the first time, we call the RPC SandboxGameManager.BroadcastMount() so everyone mounts it. If it mounts slower for some players than for the one who initiated the spawning (eg. if they already had it downloaded), other players will briefly see an error.mdl until the package mounts and it switches over visually.

However, only the visuals are hotswapped - the collisions (and possibly other physics) are not loaded by other players (presumably they need to be re-initialized when the 'model changes'?), so the prop can be walked through by other players.

The second spawn of a Cloud Model (once its already mounted) seems to work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant