GithubHelp home page GithubHelp logo

Comments (4)

Crotalus avatar Crotalus commented on July 22, 2024

Is there any clever way of solving this? Maybe make beams / instigator visible if they are hidding at something owned by an ally?

from fa.

aeoncleanse avatar aeoncleanse commented on July 22, 2024

We're getting closer to this right? If Chris can get a PR which has his solution, but for mobile sources only, I say we merge that into 3641

from fa.

ChrisKitching avatar ChrisKitching commented on July 22, 2024

I have code that can do what Crotalus suggested: make the instigator visible when it's hitting a friendly unit.

This is slightly problematic, because for buildings it creates a persistent intel blip, so it can now be targeted.

Some more work revealed a way of, for mobile units, only showing the actual beam itself. It's an awful hack, but it's computationally cheap. This should probably be merged to make the user experience when having your face melted by a surprise monkeylord.

Since the only non-mobile unit that uses beam weapons is (I think?) the Seraphim T2 PD, the simple answer is just to make it stop doing that.

I've not yet found time to investigate it, but in principle we can do a really hilarious thing to fix this properly. The bug, you see, is that when a beam starts with its source under the fog, the beam doesn't render. Making the source visible (for less than one simtick, so it doesn't even appear to the user to ever not be under the fog) causes the beam to appear, but causes a persistent intel blip for buildings.
So: what we could in principle do is, when we detect a beam is hitting a friendly unit, make it turn invisible and spawn a beam from the friendly unit back to the source of the real beam. When we detect that the real (now-invisible) beam has ceased striking this target, we delete the backwards-beam and make the real beam visible again.

It'd be completely ridiculous, but it would probably work. :P

from fa.

aeoncleanse avatar aeoncleanse commented on July 22, 2024

Yeah more work to be done for the statics, but if you can get a PR with the mobile solution, I'm game with it.

from fa.

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.