Git Product home page Git Product logo

Comments (3)

roncli avatar roncli commented on August 13, 2024

I'm 90% sure this is due to chunking. If the level is not loaded in client-side, you can see ghost projectiles go through walls.

The solution to this is to sync every projectile like we do for devastators and novas so that when the projectile's life comes to an end on the server it tells all clients to remove it. However, this has a bandwidth cost that will need to be researched. I imagine it won't be as large as the sniper packets bandwidth cost, but it'll be worth investigating.

from olmod.

roncli avatar roncli commented on August 13, 2024

OK, figured out what we need to do

In ChunkManager.ActivateChunks, there are 3 places that check a segment's GameObject.activeSelf and if it's not correct it calls GameObject.SetActive(bool) on it to fix it. This needs to change to set the segment's GameObject.GetComponent<MeshRenderer>.enabled to the appropriate value.

In ChunkManager.ForceActivateAll, the 3rd for loop calls a segment's GameObject.SetActive(true) function. In addition to that, it needs to also set the segment's GameObject.GetComponent<MeshRenderer>.enabled to true.

This is well beyond my ability to transpile. @tobiasksu would you be able to try doing this?

from olmod.

roncli avatar roncli commented on August 13, 2024

Actually it's Renderer and not MeshRenderer, but otherwise this appears to work. Thanks @tobiasksu!

from olmod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.