-
Notifications
You must be signed in to change notification settings - Fork 36
Update Vars.js #80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Update Vars.js #80
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only noticed after merging, but why did you change the conversion factor here? Can you tell me where you got that
6283.1853from?Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6283.1853 ~ 2pi1000 which is the value of 360 degrees in MilliRadians
I try to use the full value of PI, but it slows down the script.
With this value I have the best results when I use mortar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know when it would be deployed on the PSMC website ? :)
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I'll release it as soon as this is cleared up.
Do you know that they are using these values ingame? You're saying you had the best results with those, but the difference should be rather miniscule, not sure if that necessitates a change.
I don't know which one they use internally, but so far I relied on them using NATO mils, see here: https://en.wikipedia.org/wiki/Milliradian#Definitions_for_maps_and_artillery
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check with the default value in the afternoon and check if the results are suitable.
I'm not sure about NATO values in Post Scriptum, since NATO was founded in 1949.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will this impact Squad MC accuracy?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just check on both game.
It seems that Squad use NATO mil and Post Scriptum default milliradians ...
Shells fall nearly 30 meters off the target
I'm asking PS devs about that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Endebert is it possible to use 1/6400 for Squad and 1/6283.1853 for Post Scriptum ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes you can, but you would need to rely on the flag that determines if you're in Squad or PS mode:
App.vue:
// variable that determines PostScriptum modeconst postScriptum = false;So based on that bool flag you can determine which mil standard to use. Either you have to start passing this boolean around relevant methods. From the first glance that looks like a terrible idea as you would have to pass it through a lot of methods.
Alternatively, you can maybe move the flag into Utils file all together. Can't exactly tell you if that will have any drastic side effects and whether you will break the app, but feel free to try. By moving the flag into Utils, you can simplify logic like this one in Map.vue:
/** @type {MortarType[]} */mortarTypes: this.postScriptum ? Utils.getPSMortarTypes() : Utils.getSquadMortarTypes(),