can you change somting in this cofig so I have the optics (for the pilot) from above the rotor
// some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7
#define true 1
#define false 0
// type scope
#define private 0
#define protected 1
#define public 2
class CfgPatches
{
class AshAH64A
{
units[] = {AshAH64A};
weapons[] = {};
requiredVersion = 1.20;
};
class M230
{
units[] = {};
weapons[] = {M230};
requiredVersion = 1.20;
};
class Hydra70
{
units[] = {};
weapons[] = {Hydra70};
requiredVersion = 1.20;
};
};
class CfgAmmo
{
class Default {};
class AT3: Default {};
class Hellfire: AT3 {};
class HellfireApach : Hellfire {};
class AGM114K : HellfireApach
{
hit=3000;
indirectHit=1800;
indirectHitRange=2.500000;
initTime=0.7500000;
thrustTime=7.500000;
thrust=1200;
model = \Apac\hellfire;
};
class BulletSingle: Default {};
class ExplosiveBullet: BulletSingle {};
class Bullet30: ExplosiveBullet {};
class M230Bullet: Bullet30
{
hit=1200;
indirectHit=500;
};
};
class CfgWeapons
{
class Default {};
class LAWLauncher: Default {};
class CarlGustavLauncher : LAWLauncher {};
class AT3Launcher: CarlGustavLauncher {};
class HellfireLauncher: AT3Launcher {};
class HellfireLauncherApach : HellfireLauncher {};
class AGM114K : HellfireLauncherApach
{
ammo=AGM114K;
displayName="AGM-144 hellfire";
displayNameMagazine=AGM-144 hellfireAmmo;
shortNameMagazine=AGM-144 hellfireAmmo;
count=8;
};
class MGun: Default {};
class MachineGun7_6: MGun {};
class MachineGun30: MachineGun7_6 {};
class M230: MachineGun30
{
displayName="M230 33mm chaingun";
displayNameMagazine="$STR_DN_M230";
shortNameMagazine="$STR_DN_M230";
ammo="M230Bullet";
count=2000;
reloadTime=0.0960000;
sound[]={"\ash ah64a\chain_cannon.wav",3.162278,1};
aiRateOfFire=0; // delay between shots at given distance
aiRateOfFireDistance=0; // at shorter distance delay goes lineary to zero
};
class ZuniLauncher38: AT3Launcher {};
class Hydra70: ZuniLauncher38
{
hit=2000;
indirectHit=1000;
indirectHitRange=3;
displayName="M261 19 tube rckt louncher";
displayNameMagazine="$STR_DN_M261 tube rkt";
shortNameMagazine="$STR_DN_M261 tube rkt";
count=38;
aiRateOfFire=0; // delay between shots at given distance
aiRateOfFireDistance=0; // at shorter distance delay goes lineary to zero
opticsZoomMin=0.08;
opticsZoomMax=0.84;
};
};
class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Air: AllVehicles {};
class Helicopter: Air {};
class AH64: Helicopter {};
class AshAH64D: AH64
{
picture=\apac\iAH64;
crew = SoldierWPilot;
scope=2;
side=TWest;
displayName="AH-64D longbow";
nameSound="chopper"; //
?
accuracy=0.10;
driverOpticsModel="optika_heli_gunner";
pilotUsesgunnerView=true
driverAction = ManActAH64Pilot;
gunnerAction = ManActAH64Gunner;
maxSpeed = 365;
class ViewOptics
{
initAngleX=0; minAngleX=-30; maxAngleX=30;
initAngleY=0; minAngleY=-360; maxAngleY=360;
initFov=0.1; minFov=0.03; maxFov=1.2;
};
soundEngine[]={\apac\ah64engine,db+10,1};
armor=150;
cost=10000000;
model=\Apac\Apac;
rotorBig = vrtule_velka;
rotorBigBlend = vrtule_velka_bl_;
rotorSmall = vrtule_mala;
rotorSmallBlend = vrtule_mala_bl;
weapons[]={M230, AGM114K,Hydra70,LaserDesignatorOH,STINGERLauncher};
magazines[]={M230, AGM114K,Hydra70,LaserDesignatorOH,STINGERLauncher};
type=VAir;
//threat[] VSoft, VArmor, VAir
threat[]={0.3, 1, 0.8};
dammageHalf[]=
{
\apac\apach_in_skla.paa, \apac\apach_in_sklaC.paa
};
dammageFull[]=
{
\apac\apach_in_skla.paa, \apac\apach_in_sklaC.paa
};
class Turret
{
gunAxis = "OsaHlavne";
turretAxis = "OsaVeze";
gunBeg = "usti hlavne";
gunEnd = "konec hlavne";
soundServo[]={};
minElev=-60; maxElev=+11;
minTurn=-86; maxTurn=+86;
body = "OtocVez";
gun = "OtocHlaven";
};
class IndicatorAltRadar
{
// max for this indicator is 1000 feet (i.e. 304m)
// note: this is actualy Baro altitude (name is wrong)
selection = "alt";
axis = "osa_alt";
angle = -360;
min = 0;
max = 304;
};
class IndicatorAltBaro
{
// max for this indicator is 200 feet (i.e. 61m)
// note: this is actualy Radar altitude (name is wrong)
selection = "nm_alt";
axis = "osa_nm_alt";
angle = -180;
min = 0;
max = 61;
};
class IndicatorSpeed
{
selection = "mph";
axis = "osa_mph";
angle = -320;
min = 0;
max = 125;
};
class IndicatorVertSpeed
{
selection = "vert_speed";
axis = "osa_vert_speed";
angle = -300;
min = -30;
max = 30;
};
class IndicatorRPM
{
selection = "rpm";
axis = "osa_rpm";
angle = -320;
min = 0;
max = 12;
};
class IndicatorCompass2
{
selection = "kompas2";
axis = "osa_kompas2";
angle = -360;
min = -3.1415926536;
max = 3.1415926536;
};
};
};
class CfgNonAIVehicles
{
class ProxyCrew {};
class ProxyDriver: ProxyCrew {};
class Proxyah64pilot: ProxyDriver {};
class ProxyGunner: ProxyCrew {};
class Proxyah64gunner: ProxyGunner {};
class ProxyWeapon {};
class ProxyHellfire_proxy : ProxyWeapon {model = \Apac\hellfire_proxy; simulation = "maverickweapon";}
};
#define SPEED_STATIC 1e10
class CfgVehicleActions
{
ah64pilot = "ah64pilot";
ah64gunner = "ah64gunner";
};
class CfgMovesMC
{
class Default {};
class DefaultDie: Default {};
class States
{
class Driver: Default {};
#define VEH_DIE_CONN(Name,anim,time) \
class Name##Dying: DefaultDie \
{ \
actions = NoActions; \
file=anim##smrt.rtm; \
speed=-time; \
looped=false; \
soundEnabled=false; \
connectFrom[]={Name,1}; \
}; \
class Name##Dead: Name##Dying \
{ \
actions = DeadActions; \
file=anim##smrt2.rtm; \
speed=SPEED_STATIC; \
terminal = true; \
connectFrom[]={Name##Dying,1}; \
connectTo[]={DeadState,1}; \
}
#define VEHIN_MOVES_VAR(Name,anim,vartime) \
class Name: Driver \
{ \
file=anim##stat.rtm; \
speed=SPEED_STATIC; \
looped=true; \
variantsAI[]= {Name##V1,0.7,Name};\
interpolateWith[]={Name##V1,0.5};\
equivalentTo=Name; \
interpolationSpeed=1; \
connectTo[]={Name##Dying,1}; \
} \
class Name##V1: Name \
{ \
file=anim.rtm; \
speed=-vartime; \
looped=true; \
}
#define VEH_MOVES_VAR(Name,anim,time,vartime) \
VEHIN_MOVES_VAR(Name,anim,vartime); \
VEH_DIE_CONN(Name,anim,time)
VEH_MOVES_VAR(ah64Pilot, \apac\ah64pilot, 1, 4);
VEH_MOVES_VAR(ah64Gunner, \apac\ah64gunner, 1, 4);
};
};