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
|
seekerMaxRange = 2500; // Range from the missile which the seeker can visually search
|
||||||
|
|
||||||
// Attack profile type selection
|
// Attack profile type selection
|
||||||
defaultAttackProfile = "LIN";
|
defaultAttackProfile = "PYM";
|
||||||
attackProfiles[] = { "LIN", "DIR", "MID", "HI", "TOP" };
|
attackProfiles[] = { "LIN", "DIR", "MID", "HI", "TOP", "PYM" };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -18,7 +18,7 @@ PREP(attackProfile_DIR);
|
|||||||
PREP(attackProfile_MID);
|
PREP(attackProfile_MID);
|
||||||
PREP(attackProfile_HI);
|
PREP(attackProfile_HI);
|
||||||
PREP(attackProfile_TOP);
|
PREP(attackProfile_TOP);
|
||||||
|
PREP(attackprofile_PYM);
|
||||||
|
|
||||||
// Seeker search functions
|
// Seeker search functions
|
||||||
PREP(seekerType_SALH);
|
PREP(seekerType_SALH);
|
@ -13,8 +13,8 @@ _targetLaunchParams = _launchParams select 1;
|
|||||||
_shooterPos = getPosASL _shooter;
|
_shooterPos = getPosASL _shooter;
|
||||||
_projectilePos = getPosASL _projectile;
|
_projectilePos = getPosASL _projectile;
|
||||||
|
|
||||||
_distanceToTarget = _projectilePos vectorDistance _seekerTargetPos;
|
_distanceToTarget = _projectilePos distance _seekerTargetPos;
|
||||||
_distanceToShooter = _projectilePos vectorDistance _shooterPos;
|
_distanceToShooter = _projectilePos distance _shooterPos;
|
||||||
|
|
||||||
_addHeight = [0,0,(_projectilePos distance _seekerTargetPos)*0.02];
|
_addHeight = [0,0,(_projectilePos distance _seekerTargetPos)*0.02];
|
||||||
|
|
||||||
|
@ -13,10 +13,14 @@ _targetLaunchParams = _launchParams select 1;
|
|||||||
_shooterPos = getPosASL _shooter;
|
_shooterPos = getPosASL _shooter;
|
||||||
_projectilePos = getPosASL _projectile;
|
_projectilePos = getPosASL _projectile;
|
||||||
|
|
||||||
_distanceToTarget = _projectilePos vectorDistance _seekerTargetPos;
|
_distanceToTarget = _projectilePos distance _seekerTargetPos;
|
||||||
_distanceToShooter = _projectilePos vectorDistance _shooterPos;
|
_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;
|
_seekerTargetPos = _seekerTargetPos vectorAdd _addHeight;
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#define DEBUG_MODE_FULL
|
//#define DEBUG_MODE_FULL
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
EXPLODE_7_PVT(((_this select 1) select 0),_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
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"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
EXPLODE_7_PVT(((_this select 1) select 0),_shooter,_weapon,_muzzle,_mode,_ammo,_magazine,_projectile);
|
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];
|
_target = _shooter getVariable[QGVAR(target), nil];
|
||||||
_seekerType = _shooter getVariable [QGVAR(seekerType), nil];
|
_seekerType = _shooter getVariable [QGVAR(seekerType), nil];
|
||||||
_attackProfile = _shooter getVariable [QGVAR(attackProfile), nil];
|
_attackProfile = _shooter getVariable [QGVAR(attackProfile), nil];
|
||||||
|
TRACE_3("Begin guidance", _target, _seekerType, _attackProfile);
|
||||||
|
|
||||||
if ( isNil "_seekerType" || { ! ( _seekerType in (getArray (_config >> "seekerTypes" ) ) ) } ) then {
|
if ( isNil "_seekerType" || { ! ( _seekerType in (getArray (_config >> "seekerTypes" ) ) ) } ) then {
|
||||||
_seekerType = getText (_config >> "defaultSeekerType");
|
_seekerType = getText (_config >> "defaultSeekerType");
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#define DEBUG_MODE_FULL
|
//#define DEBUG_MODE_FULL
|
||||||
#include "script_component.hpp"
|
#include "script_component.hpp"
|
||||||
|
|
||||||
private["_args", "_launchParams", "_targetLaunchParams", "_config", "_flightParams", "_seekerParams"];
|
private["_args", "_launchParams", "_targetLaunchParams", "_config", "_flightParams", "_seekerParams"];
|
||||||
|
Loading…
Reference in New Issue
Block a user