Quantx / CC2-UI-Enhancer

UI Enhancer mod for Carrier Command 2
58 stars 17 forks source link

Add shell drop indicator to heavy cannon #8

Closed JetfireBlack closed 3 years ago

JetfireBlack commented 3 years ago

Added shell drop indicators to heavy cannon similar to the battle cannon.

They use the same velocity values as the battle cannon, since I cannot find any values specific for the heavy cannon, but out to 1600m. I tested these out in a limited fashion in-game and so far they seem to be close enough to where the shells are landing.

JetfireBlack commented 3 years ago

No zoom 1xZoom 2x zoom 2xZoom 4x zoom 4xZoom 8x zoom 8xZoom Range to targetpreparingShot Shooting shooting Hit lands shotHit

Quantx commented 3 years ago

My understanding was that the Heavy Cannon was an artillery gun and not intended to be direct fireable similar to the Artillery Gun. If not, what's the difference between the Heavy Cannon and the Battle Cannon?

JetfireBlack commented 3 years ago

My understanding was that the Heavy Cannon was an artillery gun and not intended to be direct fireable similar to the Artillery Gun. If not, what's the difference between the Heavy Cannon and the Battle Cannon?

Honestly, I have no idea, it even uses the same ammo. The AI seems to use it in a direct fire manner as well, just with more range and less ammo. It being hard to aim, having similar damage to the battle cannon and so few ammo make it not a very appealing option. By giving it shell drop indicators, I hope to make it slightly more appealing since you can make better use of it in manual fire mode.

Quantx commented 3 years ago

So all you've changed from the battle cannon is the shell drop increments right? And you've calculated these values yourself?

JetfireBlack commented 3 years ago

So all you've changed from the battle cannon is the shell drop increments right? And you've calculated these values yourself?

Basically yes, the script is largely the same with just the increments being adjusted to work with the indicated max range of 1600m. The values for shell velocity and gravity remain the same since I cannot find any values specific to the heavy gun, but so far the shells seem to land where you want them to.

Quantx commented 3 years ago

Alright, sounds good to me.

JetfireBlack commented 3 years ago

From further testing I have been able to hit distant targets with decent accuracy, even at max range and out of sight. vlcsnap-2021-08-20-02h10m26s165 vlcsnap-2021-08-20-02h09m28s141

Quantx commented 3 years ago

@JetfireBlack

Hey, I'm working with the devs to incorporate this mod into the base game. Unfortunately, the code you contributed in the past was covered under the GPL 3.0 license (which I've since deleted). In order for the devs to incorporate your code into the base game, I need you to waive your rights to it. Otherwise it opens up the devs to legal action and I'll be forced to remove all your contributions to the mod.

The official thread for full integration is here: https://geometa.co.uk/support/carriercommand/1399/

Can you please comment the following:

I grant MicroProse and GeoMeta an unlimited software license to all code written by me for the UI Enhancer mod.
I contributed my code using the github handle: "JetfireBlack"

When you're done, post a screenshot of it here.