Jump to content
ruthberg

Advanced Ballistics (WIP)

Recommended Posts

Just a quick question. Does this have a marked negative effect of server performance? Any outstanding RPT errors or anything? I am considering adding this to the server however performance is of the highest priority. Anybody can vouch for this? :)

Share this post


Link to post
Share on other sites

You do not need to run it on the server. It works just fine if one, some or all of the clients use it.

Share this post


Link to post
Share on other sites
@Whiskey001, are you using the latest version of CBA? This addon is compatible with all maps. But correct latitudes, map elevations and the advanced temperature simulation are only availible for some the most common maps. I will gradually expand the map database.

@johnnygitarr, thanks for the great suggestions. I am going to add key shortcuts for 1.0 mil steps. And display the elevation and windage settings in different colors.

A circle as wind indicator means unkown wind direction.

A white colored wind indicator means wind speed < 0.2 m/s.

This addon does not include a weather simulator. It uses the ArmA weather data (humidity, wind, overcast) as reference for its own calculations. This implies that you can use it together with other mods that manipulate ArmAs weather.

If you want dynamic wind and weather you have to either set it up manually (mission editor), or use a weather modification mod.

The protractor shows the inclination angle (elevation) of your rifle in degrees. You can also measure this angle by using a laser rangefinder with elevation output, or calculate it using: asin(height difference / target range in m)

I'll try updating CBA, that may be the problem. (thought I had the most recent)

Share this post


Link to post
Share on other sites

hi ruthberg,

thnx for answering my questions.

do you know some weather simulation mod. i think i would be more realistic and way harder to aim if we have a changing wind.

the last day i think about how we can visualize the mil changing (i mean not just showing only numbers in a rectangle).

if we could make, lets say a 3d model of a real scope with a texture on it and visualize the turning scopewheel. do you think its possible to

show this instead of the numbers-square?

i could help to model the scope an bring the textures on it, if you know how to bring it on the screen.

i have an idea how it should look, hope i find time on weekend to visualize it.

whats your native language?

thnx and cheers.

---------- Post added at 20:10 ---------- Previous post was at 19:33 ----------

hi ruthberg,

another idea:

please let us show the protractor and the wind direction (shift + K) as long as

we press the key-combination again.

thnx

Share this post


Link to post
Share on other sites

Updating CBA did not help...Trying to figure out what the problem could be. Works just fine on Altis and Stratis, just not my modded maps.

Share this post


Link to post
Share on other sites
You do not need to run it on the server. It works just fine if one, some or all of the clients use it.

Right. However I run a signed server so if one person runs it, everybody will. Another question, will all clients encounter the same ballistics? Or can will it vary.

Share this post


Link to post
Share on other sites

Ballistics may vary if one will edit his userconfig. One could even disable all features and have addon disabled that way. It would be nice to somewhat force players to use serverconfig, xmedsys did that somewhat.

Share this post


Link to post
Share on other sites

@JollyResQ, ballistics will be the same for every client, unless the weather effects are not synchronized (e.g. clients are using an asynchronous weather mod). You should also be able to see the correct trajactory for bullets that other players shoot. But this needs to be tested thoroughly.

@gienkov, good idea. I will think about a good way to implement this.

Edit1: You will be able to run version 0.9 on the server and force players to use the server settings.

Edit2:

please let us show the protractor and the wind direction (shift + K) as long as

we press the key-combination again.

Will be like that after the next update.

Edit3:

do you know some weather simulation mod. i think i would be more realistic and way harder to aim if we have a changing wind.

This looks promising: http://forums.bistudio.com/showthread.php?178674

Edit4:

Updating CBA did not help...Trying to figure out what the problem could be. Works just fine on Altis and Stratis, just not my modded maps.
I just fixed a bug, that might have been the reason for your problem. Please let me know if it is gone once version 0.9 is released. Edited by Ruthberg

Share this post


Link to post
Share on other sites

Version 0.9 Changelog:

-Added bullet caliber, bullet length, bullet mass, barrel twist direction and barrel twist rate config data to all vanilla small arms weapons and ammunition

-3rd party ammunition developers can now specify a transonic stability coefficient in the ammo config that defines how well the bullet performs during transonic flight (0 unstable - 1 stable)

-3rd party ammunition developers can now specify a ammo temperature muzzle velocity variatian array in the ammo config that defines how the muzzle velocity varies with ammo temperature

-The stability factor and thereby spin drift now depends on the ammo and weapon config as well as atmospheric conditions

-The wind indicator and protractor will now be visible as long as you hold down the respective key combination, or 10 seconds if you release them earlier

-Fixed a bug in temperature calculation that occurred on some 3rd party maps

-The addon is now qualified for use on a server

-Added a userconfig setting that allows the server to override the client settings

-Temperature simulation is now properly synchronized across all clients if the server also runs the addon

Share this post


Link to post
Share on other sites
Version 0.9 Changelog:

-Added bullet caliber, bullet length, bullet mass, barrel twist direction and barrel twist rate config data to all vanilla small arms weapons and ammunition

-3rd party ammunition developers can now specify a transonic stability coefficient in the ammo config that defines how well the bullet performs during transonic flight (0 unstable - 1 stable)

-3rd party ammunition developers can now specify a ammo temperature muzzle velocity variatian array in the ammo config that defines how the muzzle velocity varies with ammo temperature

-The stability factor and thereby spin drift now depends on the ammo and weapon config as well as atmospheric conditions

-The wind indicator and protractor will now be visible as long as you hold down the respective key combination, or 10 seconds if you release them earlier

-Fixed a bug in temperature calculation that occurred on some 3rd party maps

-The addon is now qualified for use on a server

-Added a userconfig setting that allows the server to override the client settings

-Temperature simulation is now properly synchronized across all clients if the server also runs the addon

Fixed the bullets hitting at my feet, nice job!

Share this post


Link to post
Share on other sites

Would this affect mortar shells straight out of the box? So it becomes less point-and-click?

Share this post


Link to post
Share on other sites

Hey, just wanted to say thank you for this great addon. One thing I just noticed is that it does not work on thirsk winter. Bullets do not seem to leave the barrel. Full auto fire and secondary weapons work, since thats not handled by your mod/disabled.

Share this post


Link to post
Share on other sites

Thanks for reporting. I will try to reproduce it once I have downloaded the map.

Edit: I do not have this problem on thirsk winter with the latest version of AdvancedBallistics.

Edited by Ruthberg

Share this post


Link to post
Share on other sites

Will you create any shooting tutorial using all 3 addons you created? I mean I can use ATragMX, Kestrel, calculate everything correct (i think) but I cannot hit target at 500m using 7.62 sniper rifle (default A3 one). Bullet always seem to miss slighty left or right (but there is no wind) and always below target. Thanks!

Wysłane z mojego Xperia Live with Walkman

Share this post


Link to post
Share on other sites
Thanks for reporting. I will try to reproduce it once I have downloaded the map.

Edit: I do not have this problem on thirsk winter with the latest version of AdvancedBallistics.

thanks for checking. Yes I did not have the latest version, but the most recent one from Armaholic. I just downloaded yours and it works.

Edit: Someone from my group just brought this issue forward to me: would you be able to maybe release a version, or option in the userconfig, where 5.56mm kaliber is completely excluded from being affected? even with the full-auto being disabled in your mod quite some people complain about framedrops (rapid singlefire shots by 5+ people + crappy pcs, I guess ). Since the regular rifleman doesn't care much anyway this could help us (and maybe others as well) a great deal. Thanks for hearing me out and keep up the good work.

Edited by stoffl

Share this post


Link to post
Share on other sites

I will add a userconfig option that allows you to disable the advanced ballistics for non local players. This should help a lot to avoid frame drops in multiplayer.

The only disadvantage of having this enabled is of cosmetic nature. That means the trajectory and bullet impact location you see - when other players shoot - will be slightly off.

You can also disable the advanced ballistics entirely for certain units by putting this in unit init field:

_this setVariable ["AdvancedBallistics", false, true];

Edited by Ruthberg

Share this post


Link to post
Share on other sites

When I'm in game, it will not allow me to open Kestrel. Do i have to grab it for an ammo box somewhere?

Share this post


Link to post
Share on other sites

Yes, since version 0.9, you can no longer access it without having the item in your uniform or vest. You can grab it from the virtual ammobox or use LEA.

You can also add it by executing: player addItem "Kestrel4500";

Changelog 1.0 stable:

-Fixed incorrect calculation of muzzle velocity variation due to ammo temperature

-Fixed coriolis drift not working since version 0.9

-Fixed spin drift not working since version 0.9

-Added a userconfig entry that allows you to disable the advanced ballistics for bullets coming from other players

-Added a userconfig entry that allows you to reduce the calculation precision in order to avoid frame drops

-Minor performance optimizations

Edited by Ruthberg

Share this post


Link to post
Share on other sites
Guest

Thanks for informing us about the update :cool:

Release frontpaged on the Armaholic homepage.

================================================

We have also "connected" these pages to your account on Armaholic.

This means in the future you will be able to maintain these pages yourself if you wish to do so. Once this new feature is ready we will contact you about it and explain how things work and what options you have.

When you have any questions already feel free to PM or email me!

Share this post


Link to post
Share on other sites

Very professional work Ruthberg. I have a question: is there a way to disable the effect of gravity on projectiles? I'm writing a ballistics script and i want to add gravity acceleration myself for some reason. How can i do this?

Share this post


Link to post
Share on other sites

@JJ2088, I am sorry to disappoint you. But I do not know how to to disable the gravity effect on projectiles.

Edit:

Will you create any shooting tutorial using all 3 addons you created? I mean I can use ATragMX, Kestrel, calculate everything correct (i think) but I cannot hit target at 500m using 7.62 sniper rifle (default A3 one). Bullet always seem to miss slighty left or right (but there is no wind) and always below target. Thanks!

See: http://forums.bistudio.com/showthread.php?181964&p=2756480&viewfull=1#post2756480

Also make sure you are using AdvancedBallistics v1.0 and ATragMX v0.4. Also keep in mind that the ATragMX is not yet able to correct for spin- and coriolis drift. But that won't matter when shooting at 500m.

Please let me know if you can not get rid of the problem. I will try to help.

Edited by Ruthberg

Share this post


Link to post
Share on other sites

I'm playing single player and latest ArmA dev.

Error in expression <blicVariable "AB_badWeatherShift";

if (AB_FORCE_CLIENT_SETTINGS_OVERRIDE) then >
 Error position: <AB_FORCE_CLIENT_SETTINGS_OVERRIDE) then >
 Error Undefined variable in expression: ab_force_client_settings_override
File advancedballistics\initServer.sqf, line 7

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×