1. The poll for our 11th Music Contest is up! Help us choose the most awesome cinematic tracks by casting a vote!
    Dismiss Notice
  2. Melee Mapping contest #3 - Poll is up! Vote for the best 4v4 melee maps!
    Dismiss Notice
  3. The 30th edition of the Modeling Contest is finally up! The Portable Buildings need your attention, so come along and have a blast!
    Dismiss Notice
  4. The Aftermath has been revealed for the 19th Terraining Contest! Be sure to check out the Results and see what came out of it.
    Dismiss Notice

[Spell] Battleship broadside cannon fire?

Discussion in 'World Editor Help Zone' started by FyreMoon Studios, Feb 13, 2019 at 10:25 PM.

  1. FyreMoon Studios

    FyreMoon Studios

    Joined:
    Dec 10, 2011
    Messages:
    13
    Resources:
    0
    Resources:
    0
    Hey everyone!

    I am currently working on a war ship map where you will be able to battle other ships (NPC or players) to climb up the leaderboard ladder. I'll try to add a wave system with different kinds of ships you need to sink.

    To my question:

    I am trying to create a spell that will fire missiles at enemy ships (units) upon tapping a hotkey. As the title suggests, it is supposed to be a "broadside" spell where multiple cannonballs shall be launched at the same time. To add complexity, I don't want to target enemies directly, but fire either to the starboard or port side depending on the spell I use, hitting enemies in the path, just with a button click.
    I have tried building the spell based on cluster rockets, thunder clap and fan of knives, but either of those require a specific target area or do damage in a radius around my ship.

    Is there a way to create AoE spells that don't require targets and cast missiles in a specific conic area? If left or right won't work no matter what, it would still be cool to have that spray of cannonballs in the direction my ship is facing.

    I hope this is comprehensible enough to know what I'm after.


    Thanks in advance!

    Jon
     
  2. Chaosium

    Chaosium

    Joined:
    Aug 29, 2012
    Messages:
    355
    Resources:
    2
    Models:
    2
    Resources:
    2
    I don't think you can achieve that simply by using default spells, you'll need to trigger it.

    The easiest way would be to create two spells based on Channel for your left & right cannons, then you'd have multiple solutions. You'd need to use a bit of math in order to get a firing angle (for instance, facing of the caster -/+ 90 to shoot left/right) and then cast multiple spells based on shockwave in that direction, for instance. You could also use dummies that would act as projectiles, give them something like immolation aura and cause them to move like cannonballs, although that would need a bit more triggers.
     
  3. givecake

    givecake

    Joined:
    Sep 28, 2016
    Messages:
    44
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I did this for an old map. Easiest done with lots of bricks and mortar triggering as the above post lays out. AoE damage done in the areas where you’re firing will be easy to set damages to. I’ll try to help out if you have any questions with specifics.
     
  4. FyreMoon Studios

    FyreMoon Studios

    Joined:
    Dec 10, 2011
    Messages:
    13
    Resources:
    0
    Resources:
    0
    Thanks for your help!
    I could indeed use some advice for the triggers as I'm not very familiar with triggered custom spells. I created a dummy unit, two abilities for each side based on Channel and managed to get the hotkeys straight. But I don't know how to go about the dummy + spell effect thing.
    Would you mind uploading your map with those triggers/spells?
     
  5. givecake

    givecake

    Joined:
    Sep 28, 2016
    Messages:
    44
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Download 0.9d:

    Irate Pirates v0.9d

    Look for SHIPS Abilities in the trigger set. My triggers are set for multiplayer, so there's dummy groups.