mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #352 from KoffeinFlummi/comancheFixes
Goes along with FCS fixes, merging quickly due to overall fixes.
This commit is contained in:
commit
446a30e4fc
@ -1,5 +1,21 @@
|
||||
|
||||
class CfgAmmo {
|
||||
class BulletBase;
|
||||
class B_20mm;
|
||||
|
||||
class ACE_20mm_HEDP : B_20mm {
|
||||
hit = 80;
|
||||
indirectHit = 12;
|
||||
indirectHitRange = 2; //2;
|
||||
caliber = 1.4;
|
||||
deflecting = 3;
|
||||
fuseDistance = 3;
|
||||
tracerStartTime = 0.02;
|
||||
timeToLive = 40;
|
||||
explosive = 1.8;
|
||||
};
|
||||
|
||||
|
||||
// adjust minigun caliber and deflection to other ammo
|
||||
class SubmunitionBullet;
|
||||
class B_65x39_Minigun_Caseless: SubmunitionBullet {
|
||||
@ -13,7 +29,6 @@ class CfgAmmo {
|
||||
};
|
||||
|
||||
// also adjust tracer, "muh lightshow"; also adjust splash damage radius
|
||||
class BulletBase;
|
||||
class Gatling_30mm_HE_Plane_CAS_01_F: BulletBase {
|
||||
hit = 80;
|
||||
indirectHit = 12;
|
||||
@ -22,6 +37,7 @@ class CfgAmmo {
|
||||
deflecting = 3;
|
||||
fuseDistance = 3;
|
||||
tracerStartTime = 0.02;
|
||||
timeToLive = 40;
|
||||
};
|
||||
|
||||
// helper projectiles to simulate a rof > fps
|
||||
|
@ -10,6 +10,7 @@ class CfgMagazines {
|
||||
// an extended magazine for the comanche
|
||||
class 300Rnd_20mm_shells;
|
||||
class ACE_500Rnd_20mm_shells_Comanche: 300Rnd_20mm_shells {
|
||||
ammo = "ACE_20mm_HEDP";
|
||||
count = 500;
|
||||
};
|
||||
};
|
||||
|
@ -54,24 +54,24 @@ class CfgWeapons {
|
||||
|
||||
class manual: manual {
|
||||
reloadTime = 0.04;
|
||||
dispersion = 0.0022;
|
||||
dispersion = 0.006;
|
||||
displayName = "$STR_ACE_Aircraft_gatling_20mm_Name";
|
||||
};
|
||||
class close: close {
|
||||
reloadTime = 0.04;
|
||||
dispersion = 0.0022;
|
||||
dispersion = 0.006;
|
||||
};
|
||||
class short: short {
|
||||
reloadTime = 0.04;
|
||||
dispersion = 0.0022;
|
||||
dispersion = 0.006;
|
||||
};
|
||||
class medium: medium {
|
||||
reloadTime = 0.04;
|
||||
dispersion = 0.0022;
|
||||
dispersion = 0.006;
|
||||
};
|
||||
class far: far {
|
||||
reloadTime = 0.04;
|
||||
dispersion = 0.0022;
|
||||
dispersion = 0.006;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -869,6 +869,18 @@ class Heli_Attack_01_base_F: Helicopter_Base_F {
|
||||
weapons[] = {"ACE_gatling_20mm_Comanche","missiles_DAGR","missiles_ASRAAM", "ACE_AIR_SAFETY"};
|
||||
magazines[] = {"ACE_500Rnd_20mm_shells_Comanche","4Rnd_AAA_missiles","24Rnd_PG_missiles"};
|
||||
|
||||
outGunnerMayFire = 1;
|
||||
commanding = -1;
|
||||
primaryGunner = 1;
|
||||
gunnerOpticsModel = "";
|
||||
gunnerOpticsEffect[] = {"TankCommanderOptics1"};
|
||||
gunnerForceOptics = 0;
|
||||
turretInfoType = "Rsc_ACE_Helo_UI_Turret";
|
||||
showAllTargets = 2;
|
||||
discretedistance[] = {100,200,300,400,500,600,700,800,900,1000,1100,1200,1300,1400,1500,1600,1700,1800,1900,2000,2100,2200,2300,2400,2500,2600,2700,2800,2900,3000};
|
||||
discretedistanceinitindex = 3;
|
||||
copilotHasFlares = 1;
|
||||
|
||||
isCopilot = 1;
|
||||
showHMD = 1;
|
||||
CanEject = 1;
|
||||
@ -882,25 +894,6 @@ class Heli_Attack_01_base_F: Helicopter_Base_F {
|
||||
|
||||
class OpticsIn
|
||||
{
|
||||
class WideNGS
|
||||
{
|
||||
opticsDisplayName = "W";
|
||||
initAngleX = 0;
|
||||
minAngleX = -35;
|
||||
maxAngleX = 10;
|
||||
initAngleY = 0;
|
||||
minAngleY = -100;
|
||||
maxAngleY = 100;
|
||||
initFov = 0.466;
|
||||
minFov = 0.466;
|
||||
maxFov = 0.466;
|
||||
visionMode[] = {"Normal","Ti"};
|
||||
thermalMode[] = {0,1};
|
||||
gunnerOpticsColor[] = {0.15,1,0.15,1};
|
||||
gunnerOpticsModel = "A3\Weapons_F\Reticle\Optics_Gunner_MBT_03_w_F.p3d";
|
||||
directionStabilized = 0;
|
||||
opticsPPEffects[] = {"OpticsCHAbera2","OpticsBlur2"};
|
||||
};
|
||||
class Wide
|
||||
{
|
||||
opticsDisplayName = "W";
|
||||
@ -913,54 +906,43 @@ class Heli_Attack_01_base_F: Helicopter_Base_F {
|
||||
initFov = 0.466;
|
||||
minFov = 0.466;
|
||||
maxFov = 0.466;
|
||||
visionMode[] = {"Normal","Ti"};
|
||||
visionMode[] = {"Normal","NVG","Ti"};
|
||||
thermalMode[] = {0,1};
|
||||
gunnerOpticsColor[] = {0.15,1,0.15,1};
|
||||
gunnerOpticsModel = "A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_w_F.p3d";
|
||||
directionStabilized = 1;
|
||||
opticsPPEffects[] = {"OpticsCHAbera2","OpticsBlur2"};
|
||||
gunnerOpticsEffect[] = {"TankCommanderOptics1"};
|
||||
};
|
||||
class WideL: Wide
|
||||
{
|
||||
opticsDisplayName = "WL";
|
||||
initFov = 0.2;
|
||||
minFov = 0.2;
|
||||
maxFov = 0.2;
|
||||
gunnerOpticsModel = "A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_m_F.p3d";
|
||||
gunnerOpticsColor[] = {0,0,0,1};
|
||||
directionStabilized = 1;
|
||||
opticsPPEffects[] = {"OpticsCHAbera2","OpticsBlur2"};
|
||||
gunnerOpticsModel = "\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_wide_F";
|
||||
};
|
||||
class Medium: Wide
|
||||
{
|
||||
opticsDisplayName = "M";
|
||||
initFov = 0.1;
|
||||
minFov = 0.1;
|
||||
maxFov = 0.1;
|
||||
directionStabilized = 1;
|
||||
initFov = 0.093;
|
||||
minFov = 0.093;
|
||||
maxFov = 0.093;
|
||||
gunnerOpticsColor[] = {0,0,0,1};
|
||||
gunnerOpticsModel = "A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_m_F.p3d";
|
||||
directionStabilized = 1;
|
||||
gunnerOpticsModel = "\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_medium_F";
|
||||
};
|
||||
class Narrow: Wide
|
||||
{
|
||||
opticsDisplayName = "N";
|
||||
initFov = 0.029;
|
||||
minFov = 0.029;
|
||||
maxFov = 0.029;
|
||||
gunnerOpticsColor[] = {0,0,0,1};
|
||||
gunnerOpticsModel = "A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_n_F.p3d";
|
||||
directionStabilized = 1;
|
||||
initFov = 0.02;
|
||||
minFov = 0.02;
|
||||
maxFov = 0.02;
|
||||
gunnerOpticsModel = "\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_narrow_F";
|
||||
|
||||
};
|
||||
class Narrower: Wide
|
||||
{
|
||||
opticsDisplayName = "N";
|
||||
gunnerOpticsColor[] = {0,0,0,1};
|
||||
gunnerOpticsModel = "A3\Weapons_F\Reticle\Optics_Gunner_MBT_02_n_F.p3d";
|
||||
directionStabilized = 1;
|
||||
opticsDisplayName = "Z";
|
||||
initFov = 0.01;
|
||||
minFov = 0.01;
|
||||
maxFov = 0.01;
|
||||
gunnerOpticsColor[] = {0,0,0,1};
|
||||
directionStabilized = 1;
|
||||
gunnerOpticsModel = "\A3\Weapons_F_Beta\Reticle\Heli_Attack_01_Optics_Gunner_narrow_F";
|
||||
|
||||
};
|
||||
};
|
||||
class OpticsOut
|
||||
|
@ -3,7 +3,7 @@ ace_aircraft
|
||||
|
||||
Changes to air weaponry, flightmodels and HUDs.
|
||||
|
||||
* Contributations by Kimi for HUD updates
|
||||
* Contributations by Kimi (geraldbolso1899) for HUD updates
|
||||
|
||||
## Maintainers
|
||||
|
||||
|
@ -8,13 +8,16 @@ class RscOpticsValue;
|
||||
class VScrollbar;
|
||||
class HScrollbar;
|
||||
class RscLadderPicture;
|
||||
class RscControlsGroupNoScrollbars;
|
||||
|
||||
|
||||
class RscInGameUI
|
||||
{
|
||||
class RscUnitInfo;
|
||||
class Rsc_ACE_Helo_UI_Turret: RscUnitInfo
|
||||
{
|
||||
idd = 300;
|
||||
controls[] = {"CA_Zeroing","CA_IGUI_elements_group","CA_VehicleToggles"};
|
||||
controls[] = {"CA_IGUI_elements_group","CA_VehicleToggles"};
|
||||
class VScrollbar;
|
||||
class HScrollbar;
|
||||
class CA_IGUI_elements_group: RscControlsGroup
|
||||
|
@ -147,6 +147,14 @@ class RscInGameUI {
|
||||
MACRO_RANGEFINDER
|
||||
};
|
||||
};
|
||||
};
|
||||
class Rsc_ACE_Helo_UI_Turret: RscUnitInfo {
|
||||
onLoad = "uiNamespace setVariable ['ACE_dlgRangefinder', _this select 0]; ((_this select 0) displayCtrl 151) ctrlSetTextColor [0, 0, 0, 0]; [""onLoad"",_this,""RscUnitInfo"",'IGUI'] call compile preprocessfilelinenumbers ""A3\ui_f\scripts\initDisplay.sqf""";
|
||||
class CA_IGUI_elements_group: RscControlsGroup {
|
||||
class controls {
|
||||
MACRO_RANGEFINDER
|
||||
};
|
||||
};
|
||||
};
|
||||
class RscOptics_Heli_Attack_01_gunner: RscUnitInfo {
|
||||
onLoad = "uiNamespace setVariable ['ACE_dlgRangefinder', _this select 0]; ((_this select 0) displayCtrl 151) ctrlSetTextColor [0, 0, 0, 0]; [""onLoad"",_this,""RscUnitInfo"",'IGUI'] call compile preprocessfilelinenumbers ""A3\ui_f\scripts\initDisplay.sqf""";
|
||||
|
@ -1,9 +1,9 @@
|
||||
// #define DEBUG_MODE_FULL
|
||||
//#define DEBUG_MODE_FULL
|
||||
#include "script_component.hpp"
|
||||
|
||||
TRACE_1("enter", _this);
|
||||
|
||||
#define FCS_UPDATE_DELAY 2.0
|
||||
#define FCS_UPDATE_DELAY 1
|
||||
|
||||
FUNC(magnitude) = {
|
||||
_this distance [0, 0, 0]
|
||||
@ -68,14 +68,13 @@ FUNC(laserHudDesignatePFH) = {
|
||||
["ace_fcs_forceUpdate", []] call ace_common_fnc_localEvent;
|
||||
};
|
||||
|
||||
if( ((getPosASL _laserTarget) vectorDistance _pos) > 2) then {
|
||||
if( (_laserTarget distance _pos) > 0.1) then {
|
||||
TRACE_1("LaserPos Update", "");
|
||||
_laserTarget setPosATL (ASLToATL _pos);
|
||||
|
||||
};
|
||||
};
|
||||
|
||||
if(diag_tickTime > _forceUpdateTime) then {
|
||||
_args set[3, diag_tickTime + FCS_UPDATE_DELAY];
|
||||
_args set[2, diag_tickTime + FCS_UPDATE_DELAY];
|
||||
};
|
||||
#ifdef DEBUG_MODE_FULL
|
||||
drawIcon3D ["\a3\ui_f\data\IGUI\Cfg\Cursors\selectover_ca.paa", [1,0,0,1], (getPosATL _laserTarget), 0.75, 0.75, 0, "", 0.5, 0.025, "TahomaB"];
|
||||
@ -101,7 +100,7 @@ if(isNil QGVAR(laser)) then {
|
||||
|
||||
GVAR(laserActive) = true;
|
||||
|
||||
_handle = [FUNC(laserHudDesignatePFH), 0, [_laserTarget, player]] call cba_fnc_addPerFrameHandler;
|
||||
_handle = [FUNC(laserHudDesignatePFH), 0.1, [_laserTarget, player]] call cba_fnc_addPerFrameHandler;
|
||||
_laserTarget setVariable ["ACE_PFH_HANDLE", _handle, false];
|
||||
|
||||
GVAR(laser) = _laserTarget;
|
||||
|
Loading…
Reference in New Issue
Block a user