Code Monkey home page Code Monkey logo

foxhole-artillery-calc's Introduction

foxhole-artillery-calc

https://earthgrazer.github.io/foxhole-artillery-calc/

Artillery calculator for Foxhole.

In Foxhole, indirect fire weapons like the Howitzer, Mortar, and Field Artillery are aimed by setting the distance and azimuth (angle) to a target. Since the artillery operator has no visual aid to show where those target values land, it is imperative that a spotter be brought along to complete the artillery crew. The spotter role uses binoculars to determine the exact distance and angle to a target from where he stands, and relays this information to the artillery operator to coordinate a strike.

A challenge that an artillery crew faces is when the spotter cannot call out shots from the same location as the artillery, such is the case with the Howitzer. Binoculars have a maximum range of 120 meters, while the Howitzer can hit up to a maximum of 150 meters. To maximize the Howitzer's range, the spotter must be positioned far in front of it in order to bring a target at max range into view. This change in relative positioning often causes shots to be wildly inaccurate when estimated by eye.

This webapp takes the distance and azimuth values of the artillery and target relative to the spotter, and computes the distance and azimuth values to the target relative to the artillery. This allows the spotter to accurately call out fire missions without having to be positioned right next to the Howitzer/mortar/artillery.

foxhole-artillery-calc's People

Contributors

earthgrazer avatar hbeni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

foxhole-artillery-calc's Issues

Wind guide

First off, great tool, thanks for making it at all.

As a suggestion, would be cool if there was a wind guide stating roughly how much to compensate for each tier level of wind. Maybe even an option to add the direction the wind and the players perceived wind tier to the calculation, but I'm not picky. Just as of right now after searching the internet for quite a while, I still don't know how much to compensate for wind. I'm currently under the impression there are 5 wind tiers, but don't know how much that affects targeting. Any info regarding that would truly make this a one stop shop for arty targeting.

This script is available to Colonials

Hello,

As a proud member of Wardens, I find this script useful, but I'm scared this could help Colonials to injure or kill honest, brave and kind Wardens.
So I'm asking you to change your program license to restrict its usage to Wardens only

Add support for chained spotting (via target reference Points)

For longer artillery range it could be useful to be able to enter linked reference point(s) instead of directly the artillery piece.
This would not only help with longer ranges, but also helps in picking better, more concealed forward observer positions.

grafik


This goes like this:

  • As a first step, the distance and bearing from the "reference point" to the arty must be measured using binocs. This fixates that reference point in relation to the arty piece.
  • Then the spotter goes to the next place and gets distance and azimuth from his position to the reference point.
    • This yields the "intermediate vector", and so the distance and azimuth from the spotters position to the arty piece can be triangulated without the need of the arty piece to be in sight: Take the backcourse from the azimut "spotter->reference point" and use the first vector from the "reference point" to the arty to do your normal calculation.
  • Finally the spotter gets the distance and azimut to the actual target.
    • Using the "intermediate vector" internally as the "from spotter to artillery" input field will now yield the final vector from the arty piece to the target.

It would be cool to be able to add arbitary number of "reference points" to create arbitarily long chains.
Resolving this is not hard: for each reference point a "final vector" to the next reference point can easily be calculated using the basic procedure laid out above, until you reach the actual spotters position.


The interface could look something like this:

  1. Add button to be able to add a reference point in between:
    grafik

  2. when clicked, the line expands and the captions change:
    grafik

  3. Potentially, when adding another point:
    grafik

  4. and so on.

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.