mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Disable debug, wtf math
This commit is contained in:
parent
04b0efb22b
commit
97febd6207
@ -54,8 +54,8 @@ class CfgAmmo {
|
||||
seekerMaxRange = 2500; // Range from the missile which the seeker can visually search
|
||||
|
||||
// Attack profile type selection
|
||||
defaultAttackProfile = "LIN";
|
||||
attackProfiles[] = { "LIN", "DIR", "MID", "HI", "TOP" };
|
||||
defaultAttackProfile = "PYM";
|
||||
attackProfiles[] = { "LIN", "DIR", "MID", "HI", "TOP", "PYM" };
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -18,7 +18,7 @@ PREP(attackProfile_DIR);
|
||||
PREP(attackProfile_MID);
|
||||
PREP(attackProfile_HI);
|
||||
PREP(attackProfile_TOP);
|
||||
|
||||
PREP(attackprofile_PYM);
|
||||
|
||||
// Seeker search functions
|
||||
PREP(seekerType_SALH);
|
@ -13,8 +13,8 @@ _targetLaunchParams = _launchParams select 1;
|
||||
_shooterPos = getPosASL _shooter;
|
||||
_projectilePos = getPosASL _projectile;
|
||||
|
||||
_distanceToTarget = _projectilePos vectorDistance _seekerTargetPos;
|
||||
_distanceToShooter = _projectilePos vectorDistance _shooterPos;
|
||||
_distanceToTarget = _projectilePos distance _seekerTargetPos;
|
||||
_distanceToShooter = _projectilePos distance _shooterPos;
|
||||
|
||||
_addHeight = [0,0,(_projectilePos distance _seekerTargetPos)*0.02];
|
||||
|
||||
|
@ -13,10 +13,14 @@ _targetLaunchParams = _launchParams select 1;
|
||||
_shooterPos = getPosASL _shooter;
|
||||
_projectilePos = getPosASL _projectile;
|
||||
|
||||
_distanceToTarget = _projectilePos vectorDistance _seekerTargetPos;
|
||||
_distanceToShooter = _projectilePos vectorDistance _shooterPos;
|
||||
_distanceToTarget = _projectilePos distance _seekerTargetPos;
|
||||
_distanceToShooter = _projectilePos distance _shooterPos;
|
||||
|
||||
_addHeight = [0,0,_distanceToTarget];
|
||||
TRACE_2("", _distanceToTarget, _distanceToShooter);
|
||||
|
||||
_addHeight = [0,0,(_projectilePos distance _seekerTargetPos)*0.02];
|
||||
|
||||
TRACE_1("", _addHeight);
|
||||
|
||||
_seekerTargetPos = _seekerTargetPos vectorAdd _addHeight;
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#define DEBUG_MODE_FULL
|
||||
//#define DEBUG_MODE_FULL
|
||||
#include "script_component.hpp"
|
||||
|
||||
EXPLODE_7_PVT(((_this select 1) select 0),_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
||||
|
@ -1,4 +1,4 @@
|
||||
#define DEBUG_MODE_FULL
|
||||
//#define DEBUG_MODE_FULL
|
||||
#include "script_component.hpp"
|
||||
|
||||
EXPLODE_7_PVT(((_this select 1) select 0),_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
||||
|
@ -20,6 +20,7 @@ if(isNil "_enabled" || {_enabled != 1}) exitWith { false };
|
||||
_target = _shooter getVariable[QGVAR(target), nil];
|
||||
_seekerType = _shooter getVariable [QGVAR(seekerType), nil];
|
||||
_attackProfile = _shooter getVariable [QGVAR(attackProfile), nil];
|
||||
TRACE_3("Begin guidance", _target, _seekerType, _attackProfile);
|
||||
|
||||
if ( isNil "_seekerType" || { ! ( _seekerType in (getArray (_config >> "seekerTypes" ) ) ) } ) then {
|
||||
_seekerType = getText (_config >> "defaultSeekerType");
|
||||
|
@ -1,4 +1,4 @@
|
||||
#define DEBUG_MODE_FULL
|
||||
//#define DEBUG_MODE_FULL
|
||||
#include "script_component.hpp"
|
||||
|
||||
private["_args", "_launchParams", "_targetLaunchParams", "_config", "_flightParams", "_seekerParams"];
|
||||
|
Loading…
Reference in New Issue
Block a user