Commit Graph

46 Commits

Author SHA1 Message Date
PabstMirror
c426103f23 Extension changes for Medical Rewrite and Linux compilation (#6909)
* Fix Medical HandleDamageWounds memory leak (#6809)

* Use strncpy and disable MSVC unsafe warnings (#7171)
* Set 64-bit correctly from generator string, Disable SSE2 flag on 64-bit (non-existent)

* Tweaks for Linux extensions (#5762)
* Tweak CMakeLists for Linux compilation
* Conform SQF extensions check for Linux server extensions support
* Add *.so to tools
* Split extension check into Windows and Linux
* Disable Medical extension loading for now
* Add client/server separation to extension loading
* Add Arma config documentation on extension creation
2019-09-28 23:03:55 +02:00
ulteq
77fd2007ea Advanced Ballistics - Fixed faulty wind attenuation (#5869)
* Advanced Ballistics - Fixed faulty wind attenuation
* Only relevant at very low altitudes above ground (below 1.6 m)
* Also fixes the Kestrel 4500 readout

* Kestrel 4500 - Minor optimization / fix
* Avoids possible math error 'ln(0)'

* Rebuild Dills
2017-12-08 10:44:12 -06:00
ulteq
6b68ff426f Scopes - Fixed zero angle prediction
* Corrects the prediction of the (hair-raising!) zero angle calculation in the vanilla-game
2017-11-12 12:21:03 +01:00
ulteq
3fae70bf80 More accurate zero calculation 2017-11-10 17:10:27 +01:00
ulteq
f26dfb0495 Advanced Ballistics - Utilize vector library 2017-11-10 17:10:14 +01:00
ulteq
fecc77e225 Advanced Ballistics - Improved random seed generator 2017-11-08 15:26:43 +01:00
ulteq
fb0a60b018 Gravity correction
* ArmA is using 9.8066
2017-11-08 15:26:39 +01:00
ulteq
1997edb62e Advanced Ballistics - More advanced drag update routine
* Handles greater 'simulationIntervals' much better:
* 'simulationInterval=0.00' -> Error (at 2km): 0.004 MILs
* 'simulationInterval=0.05' -> Error (at 2km): 0.030 MILs
* 'simulationInterval=0.10' -> Error (at 2km): 0.070 MILs
* Almost completely FPS invariant
2017-11-08 15:15:50 +01:00
ulteq
502648fae3 Advanced Ballistics - Disable BC degradation in the transonic zone
* Does not do justice to reality
2017-11-08 15:15:50 +01:00
ulteq
048b076f1d Advanced Ballistics - Removed duplicate code 2017-10-30 10:07:38 +01:00
ulteq
4bfc956e1a Advanced Ballistics - Fixes bug in the vanilla drag removal routine
* More accurate bullet drop at extreme long ranges
* Fixes Client FPS affecting the trajectory
2017-10-30 10:07:37 +01:00
Dedmen Miller
c4f9b6c19b Removed/disable unused stuff (#5694)
C++17 compat by removing stuff that was deprecated in C++14
2017-10-28 21:39:46 +02:00
ulteq
be482ea097 Advanced Ballistics - Drag model revamp & Spin drift correction (#5566)
* Advanced Ballistics - Drag model revamp
- Moved away from using the drag tables from the GNU exterior ballistics library
- The drag functions are now based off this data from JBM Ballistics: http://www.jbmballistics.com/ballistics/downloads/text/
- The differences are minor, but some players might still appreciate the additional authenticity

* The Mach number is now calculated in relation to the air temperature.

* Improved speed of sound calculation accuracy.

* Advanced Ballistics - DLL update

* Advanced Ballistics - Added drag function reference (JBM Ballistics)

* Advanced Ballistics - Fixed calculation error in the spin drift simulation
- The error was introduced with this PR (https://github.com/acemod/ACE3/pull/4708)

* More descriptive variable names

* Minor performance optimizations

* Fixed some minor issues

* DLL rebuild

* Utilize new 'toFixed' script command
- Small performance improvement

* Fixed a typo

* Use correct reference speed for the drag compensation

* Updated all 'airFriction' values to match the new drag model

* 'Default' atmosphere now equals the ICAO standard atmosphere

* Update reference humidity to meet the ICAO standard
2017-10-06 13:05:20 -05:00
ulteq
ecd688647c AdvancedBallistics - Utilize 'parseSimpleArray' (#5496)
- Decent performance improvement compared to the old 'call compile' approach
2017-09-16 11:08:25 +02:00
PabstMirror
ff212d5b3d Fix AB water vapor pressure calc (#4956)
* Fix AB water vapor pressure calc

* Fix calc in weather

* Cleanup usage of constant

* Add RVExtensionVersion, Rebuild AB DLLs
2017-05-29 12:55:26 -05:00
ulteq
8afc4083d0 Advanced Ballistics - Improved spin drift calculation (#4755) 2016-12-09 13:22:53 -06:00
ulteq
8f16702e64 Advanced Ballistics - Performance improvement (#4708)
* Up to 16% faster frame times with 200 simultaneously flying projectiles
2016-11-25 19:25:03 +01:00
ulteq
e70a23d93a Greatly improves the plausibility of the transonic flight simulation (#4652)
* Transonic flight now induces yawing and pitching of the nose of the bullet instead of modifying the bullet velocity directly
* The ballistic coefficient now starts to decreases once the bullet goes transonic
2016-11-22 10:20:02 +01:00
ulteq
10cc0ba951 Moved all zero angle calculations into the advanced_ballistics.dll
* Speeds up ATragMX
* Speeds up RangeCards
* Speeds up Scopes
2016-11-15 23:11:22 +01:00
Glowbal
b52c1c8ce3 Merge branch 'master' into fix-c4996
Conflicts:
	extensions/clipboard/ace_clipboard.cpp
2016-06-12 17:35:19 +02:00
jonpas
816da2aef1 Normalize to LF line endings 2016-05-30 18:37:03 +02:00
looterz
8b16912ad7 Patched advanced_ballistics extension 2016-02-17 16:51:09 -06:00
PabstMirror
bba908fcae Better fix for M_PI definition
Just use #define _USE_MATH_DEFINES for cmath
2015-12-20 13:50:13 -06:00
PabstMirror
683f45682a Fix Eotvos effect 2015-12-20 02:16:29 -06:00
TheMagnetar
4ad124d1fe M_PI was redefined in extensions/common/shared.hpp 2015-09-08 21:47:16 +02:00
Glowbal
6374a39edb Fixed extra [ 2015-06-16 17:08:39 +02:00
Glowbal
154cf9d032 strcpy instead of sprintf 2015-06-16 08:03:11 +02:00
Glowbal
b8b980bd92 Changed speed of sound to double 2015-05-31 14:21:25 +02:00
ulteq
1ec37aabed Merge pull request #1424 from acemod/barometricPressureFix
Fixed incorrect barometric pressure calculation
2015-05-29 12:40:17 +02:00
ulteq
abf0149b1d Added speed of sound calculation:
* Influences the advanced ballistics transonic instability
* Influences the ATragMX range card output
2015-05-29 11:36:37 +02:00
ulteq
69b9d0e122 More in-depth barometric pressure calculation:
* Temperature is now taken into account
2015-05-29 11:18:40 +02:00
ulteq
83f2e35907 Fixed incorrect unit conversion in the barometric pressure calculation 2015-05-29 10:30:30 +02:00
jaynus-linux
1dd8dc3bfb cross platform macros and port added for linux for all extensions. Should be transparent 2015-05-17 10:10:02 -07:00
jaynus
bf732a2a02 Changed: Disable snprintf_s usage to get around auto-vectorization in the 2015 STL strnlen implementation 2015-05-13 11:17:43 -07:00
jaynus
3ff9ea230a initial pick from vehicledamage for new extension build process. 2015-05-13 08:34:14 -07:00
jaynus
3e6c203655 size+1 2015-05-08 06:57:19 -07:00
jaynus
027a3dd4ac AB map tweaking. Just a bit of optimization and crash checking. 2015-05-07 12:52:19 -07:00
ulteq
13bc1e0058 Replaced deprecated airFriction calculation 2015-05-03 12:31:30 +02:00
ulteq
29fdd63432 Use the constants 2015-05-03 12:07:13 +02:00
ulteq
d07cb0e6ed Got rid of the newline braces 2015-05-03 11:51:30 +02:00
ulteq
e5a81bfe37 Deterministic random numbers for the transonic instability calculation 2015-05-03 11:46:30 +02:00
ulteq
3bfbf8b64e Got rid of the math include in the ab extension 2015-05-02 18:22:06 +02:00
ulteq
ebbcb8e5e7 Fixed a rarely occurring calculation error. 2015-04-27 19:28:46 +02:00
jaynus
93bcf7e9a1 Added versioning to build process and automated version/git integration. 2015-04-21 16:49:30 -07:00
ulteq
b4e36b5fab Replaced TABs with 4 spaces 2015-04-11 22:24:32 +02:00
jaynus
2261225ad3 Extension moved into cmake, extensions rebuilt. 2015-04-09 09:52:57 -07:00