-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into medical-focus-feature
Conflicts: addons/medical/functions/fnc_treatmentAdvanced_CPR.sqf
- Loading branch information
Showing
359 changed files
with
4,335 additions
and
2,632 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
**Arma 3 Version:** `x.xx` | ||
*(indicate if stable, rc or dev*) | ||
|
||
**ACE3 Version:** `3.x.x` | ||
*(indicate if stable or dev, if dev indicate the commit the version is based on)* | ||
|
||
**Mods:** | ||
* `@CBA_A3` | ||
* `@ace` | ||
* ... | ||
|
||
**Placed Modules:** | ||
* *Add the list of modules you have placed on the map. Use 'None' if the error occurs without using any modules.* | ||
|
||
**Description:** | ||
* *Add a detailed description of the error. This makes it easier for us to fix the issue.* | ||
|
||
**Steps to reproduce:** | ||
* *Add the steps needed to reproduce the issue.* | ||
|
||
**Where did the issue occur?** | ||
* *A possible answer might be "Dedicated Server", "Local Multiplayer", "Editor", or "Singleplayer"* | ||
|
||
**RPT log file:** | ||
* *Add a link (pastebin.com) to the client and/or server RPT file. An instruction to find your RPT files can be [found here](https://community.bistudio.com/wiki/Crash_Files#Arma_3)* |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
### When merged this pull request will: | ||
|
||
1. *Describe what this pull request will do* | ||
2. *Each change in a seperate line* | ||
|
||
--- | ||
*Delete this line and everything below* | ||
|
||
- [Make sure to respect the file structure](http://ace3mod.com/wiki/development/modularity-and-pbo-structure.html) | ||
- [Make sure to respect the coding guidelines](http://ace3mod.com/wiki/development/coding-guidelines.html) |
This file contains 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
This file contains 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
Binary file not shown.
This file contains 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
This file contains 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
This file contains 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
59 changes: 59 additions & 0 deletions
59
addons/advanced_ballistics/functions/fnc_diagnoseWeapons.sqf
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* | ||
* Author: esteldunedain | ||
* | ||
* This function diagnoses all primary weapons to find cases in which the initial | ||
* velocity of shots with and without AB significantly mismatch | ||
* | ||
* Arguments: | ||
* None. Parameters inherited from EFUNC(common,firedEH) | ||
* | ||
* Return Value: | ||
* None | ||
* | ||
* Public: No | ||
*/ | ||
#define DEBUG_MODE_FULL | ||
#include "script_component.hpp" | ||
|
||
private _cfgWeapons = configFile >> "CfgWeapons"; | ||
for "_i" from 0 to (count _cfgWeapons)-1 do { | ||
private _weaponConfig = _cfgWeapons select _i; | ||
if (isClass _weaponConfig) then { | ||
private _weapon = configName _weaponConfig; | ||
private _weaponType = getNumber (_weaponConfig >> "Type"); | ||
if (_weaponType == 1) then { | ||
// The weapon is a primary weapon | ||
|
||
private _weaponInitSpeed = getNumber (_weaponConfig >> "initSpeed"); | ||
private _magazines = getArray (_weaponConfig >> "magazines"); | ||
{ | ||
private _magazine = _x; | ||
private _magazineInitSpeed = getNumber (configFile >> "CfgMagazines" >> _magazine >> "initSpeed"); | ||
private _ammo = getText (configFile >> "CfgMagazines" >> _magazine >> "ammo"); | ||
|
||
// Vanilla initial speed -------------------------- | ||
private _vanillaInitialSpeed = _magazineInitSpeed; | ||
if (_weaponInitSpeed > 0) then { | ||
_vanillaInitialSpeed = _weaponInitSpeed; | ||
} else { | ||
if (_weaponInitSpeed < 0) then { | ||
_vanillaInitialSpeed = _vanillaInitialSpeed * (-_weaponInitSpeed); | ||
}; | ||
}; | ||
// -------------------------------------------------- | ||
|
||
// AB initial speed -------------------------------- | ||
// Get Weapon and Ammo Configurations | ||
private _AmmoCacheEntry = _ammo call FUNC(readAmmoDataFromConfig); | ||
private _WeaponCacheEntry = _weapon call FUNC(readWeaponDataFromConfig); | ||
_AmmoCacheEntry params ["_airFriction", "_caliber", "_bulletLength", "_bulletMass", "_transonicStabilityCoef", "_dragModel", "_ballisticCoefficients", "_velocityBoundaries", "_atmosphereModel", "_ammoTempMuzzleVelocityShifts", "_muzzleVelocityTable", "_barrelLengthTable"]; | ||
_WeaponCacheEntry params ["_barrelTwist", "_twistDirection", "_barrelLength"]; | ||
|
||
private _barrelVelocityShift = [_barrelLength, _muzzleVelocityTable, _barrelLengthTable, _vanillaInitialSpeed] call FUNC(calculateBarrelLengthVelocityShift); | ||
private _abInitialSpeed = _vanillaInitialSpeed + _barrelVelocityShift; | ||
// -------------------------------------------------- | ||
diag_log text format ["ABDiagnose,%1,%2,%3,%4,%5,%6,%7",_weapon,_magazine,_ammo,_magazineInitSpeed,_weaponInitSpeed,_vanillaInitialSpeed,_abInitialSpeed]; | ||
} forEach _magazines; | ||
}; | ||
}; | ||
}; |
This file contains 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
Oops, something went wrong.