GithubHelp home page GithubHelp logo

Missing Prism Tower beam logic about ra2 HOT 7 OPEN

openra avatar openra commented on July 26, 2024 2
Missing Prism Tower beam logic

from ra2.

Comments (7)

forcecore avatar forcecore commented on July 26, 2024 1

I sort of have it here. Mine is based on TeslaAttack, which has 3 charges, making it difficult to polish. This should probably work if you set MaxCharges=1

Engine:
forcecore/OpenRA@e71d30f

Mod:
https://github.com/forcecore/yupgi-alert-2021/blob/main/rules/structures.yaml#L569
https://github.com/forcecore/yupgi-alert-2021/blob/main/weapons/other.yaml#L100

Demo:
https://www.youtube.com/watch?v=V2q4sClmwkA

from ra2.

GraionDilach avatar GraionDilach commented on July 26, 2024

RA2 used to fire an actual support weapon which was forced to trigger the enhancement effect.

from ra2.

 avatar commented on July 26, 2024

Can someone do a detailed write-up of exactly how this worked in RA2? How were the towers selected which participated in a shot?

from ra2.

GraionDilach avatar GraionDilach commented on July 26, 2024

When a PrismTower attacked in RA2 (PrismForwarding=yes) it checked around itself for other buildings with the same PrismForwarding=yes tag and fired all idle target's Secondary weapon along with the PrismTower. For each attack the PrismTower got, the bonuses were added to the weapon from [General] (no, sorry, can't remember that tag from my head and I'm tired to look it up).

Ares had to rewrite most of the logic due to bugs in it though, so you can read a 90% C++ code implementation at https://github.com/Ares-Developers/Ares/blob/master/src/Ext/Building/PrismForward.cpp and https://github.com/Ares-Developers/Ares/blob/master/src/Ext/Building/Hooks.Prism.cpp

I can see though why this will be problematic in OpenRA, our infrastructure ain't that easy to be abused into something like this.

from ra2.

 avatar commented on July 26, 2024

Here's what I'm thinking:

Prism Tower A decides to fire. It goes searching for its network, looking specifically for idle towers. It queues up an activity for them to fire.

When it actually fires, it rechecks the network to determine the strength of the blast. The other towers similarly draw their respective firing lines.

from ra2.

ibrokemypie avatar ibrokemypie commented on July 26, 2024

+1

from ra2.

thennothinghappened avatar thennothinghappened commented on July 26, 2024

This is something I'd like to take a look at and see if I can get it working.

from ra2.

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.