Collapse
No announcement yet.
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to code Prism forwarding?

    #1
    Right!
    so I'd like the Prism towers I have to use an ability similar to the forwarding (linked firing) that they had in RA2.
    If it was possible to code it to happen automatically (providing a Prism tower was within range), this would be ideal.

    The next best thing I guess would be an ability that allowed for Prism towers to be manually linked.

    The preference would be for there to be a visible 'link' beam as well has an 8 Prism limit. I am hoping that the actual Prism tower benefiting from the forwarding, will simply have it's weapon boosted via a attribute modifier, which stacks depending on the number of supporting prisms.

    RA3 of course had code that covered this for the spectrum tower, but this code does not exists in C&C3.

    The 'AssistedTargetingUpdate' that I assume generals patriots used would not allow for the appearance of each assisting Prism tower linking through each other (at least I would not know how to do it).
    The Beam cannons 'ChargeBaseDefense' has some use, but I still don't see how the appearance of the Prisms linking through each other could be done.

    Any coding ideas from anyone? I might just have to have a Prism Tower with no forwarding.

  • #2
    I'm relatively sure that there isn't a module that allows you to do this automatically. The Beam Cannon charge ability really seems like the only thing remotely capable of doing this.

    The most promising approach seems to be using LUA. You should be able to make the firing Prism Broadcast on charging (PREATTACK condition checked via a ModelConditionEvent) and every Prism in range of the Broadcast (received via ScriptedEvent) trigger the Beam Cannon charge (via ObjectDoSpecialPower).

    Comment


    • #3
      I do not know how to use LUA scripts! Any tutorials or basic hints?
      So how would the appearance of say 8 prisms linking be achieved? (I am thinking that the Beam cannons all target a single defence, even the RA3 Spectrum tower only has a maximum of 2 towers assist).

      Thanks for the idea though!

      edit: I am really thinking that manual linking is the way to go, it would allow for much greater control over which Prisms are used for forwarding. So you could have 4 Prisms linked manually, they would act has one weapon with an increased rate of fire (and other stacked benefits) or you could have 4 Prisms unlinked which would be better for a high concentration of low health units.

      Would it being manually applied make coding easier? I know it almost certainly means that the AI won't be using it.
      Last edited by Madin; 04-26-2011, 01:36 PM.

      Comment

      X