initRound ordering and fixed define names

This commit is contained in:
lambdatiger 2024-03-02 22:33:40 -06:00
parent fd2c59581a
commit 98caad5936
2 changed files with 4 additions and 3 deletions

View File

@ -17,9 +17,8 @@
*/
TRACE_1("ACE_Frag rndInit",_this);
params ["_projectile"];
if (!isServer) exitWith {};
params ["_projectile"];
private _ammo = typeOf _projectile;
if (_ammo isEqualTo "" || {isNull _projectile}) exitWith {

View File

@ -40,9 +40,11 @@
#define ACE_FRAG_LOW_FRAG_HOLDOFF_REDUCTION 4
// Max frag distance - correlates to a a fragCount of 20k & hit chance of 0.5%
#define ACE_FRAG_MAX_FRAG_RANGE 565
// 4*pi/360 = 0.034906585
#define ACE_FRAG_FRAGS_PER_ARC_CONSTANT 0.03491
// Spall values
#define ACE_FRAG_SPALL_HOLDOFF 0.25
#define ACE_FRAG_SPALL_VELOCITY_INHERIT_COEFF 0.5
// sqrt(2)/50
#define ACE_FRAG_ROUND_COEF 0.02828427
#define ACE_FRAG_SPALL_CALIBER_COEF 0.02828427