• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Spell] Phoenix Fire replacement

Status
Not open for further replies.
Level 14
Joined
Jan 24, 2017
Messages
276
I have been working years on Battleships, with is a moba where the weapons fire automatically in a certain range. The weapons are based on phoenix fire, which always lead to limitations in implementation. So my idea was to build a custom missile system, which allows much more to work with the projectiles.

I have a few questions about that:
Does it even make sense? Is there a better way? And if its possible will the performance be affected?
Just open for a general discussion and ideas.

Thanks
 

Uncle

Warcraft Moderator
Level 70
Joined
Aug 10, 2018
Messages
7,391
The performance will most likely be affected and would be the limiting factor, but it's also going to open the door to some really cool possibilities.

That being said, this system seems to have great performance:

I'll mess around with some examples and post a demo map here.

Edit: Attached a map with an example using Chopinski's missile system. Requires the latest patch to open.
 

Attachments

  • Battleship Missile System 1.w3x
    99.7 KB · Views: 10
Last edited:
Level 23
Joined
Apr 3, 2018
Messages
467
You can use locust dummies as "guns" rather than projectiles. That's how vehicle guns work in my map.
They attack like normal units do. The dummies have 0 foreswing and are moved with SetUnitX/Y so they can fire while the vehicle is moving.

Also what I did was limit firing arcs on the guns by detecting "unit is attacked" and if the target is not within the right angle from the vehicle, seek a different target that fits. Not sure how much sense it would make in battleships, on one hand it would be cool to have prow guns, rear guns, broadsides etc but on another it may be too finicky and maybe it's better and easier to play if it's more abstract.
 
Last edited:
Level 14
Joined
Jan 24, 2017
Messages
276
The performance will most likely be affected and would be the limiting factor, but it's also going to open the door to some really cool possibilities.

That being said, this system seems to have great performance:

I'll mess around with some examples and post a demo map here.

Edit: Attached a map with an example using Chopinski's missile system. Requires the latest patch to open.
This is great. Thank you so much. I will see what I can do with this, because its probably better to make some of the manual gui work into a library.
 
Status
Not open for further replies.
Top