CAPTAIN SIM FORUM
Weapon for FSX >> Weapon for FSX >> Aerosoft F16 Redux
https://www.captainsim.org/forum/csf.pl?num=1407122047

Message started by Dutch on Aug 4th, 2014 at 3:14am

Title: Re: another company F16 Redux
Post by Dutch on Aug 4th, 2014 at 2:45pm
I've also created an interface gauge that links the unused weapon controls in the F16 to the CS controls, so you don't have to use the 2D CS weapons window.

For example Master Arm in the F16 cockpit will turn on the Master Arm for Weapon.

The AA button on the UFC selects Air or Ground Radar Mode - in is Air mode, out is Ground mode (the AG button is INOP alas.)

The Radar Range buttons on the left MFD will select both the radar range for the F16's search radar (like normal) and the Weapon radar range.

The top left button on the left MFD cycles between weapon types (gun, missile, rocket.)

The little rocker switch on the bottom left of the left MFD switches between HUD modes.

I changed the keys so that CTRL-6 shifts between weapons of a type.  I couldn't link that to a switch, or haven't yet figured out how to do it.

You can bring up the CS Weapon 2D and watch the controls move as you press the F16 buttons to see what effect its having.

Here's how to install it.

Make a folder in your F16 panel folder named CSI.

Copy the code below and place it in Notepad.

Save it to the newly created CSI folder and name it CSI_AS_F16.xml.

Insert this line in your [VCockpit01] section of Panel.cfg:

gauge14=CSI!CSI_AS_F16,1,1,1,1      // CS Weapon Interface

(You may need to change the 14 if that's used by another gauge, it was the next one up for me.)

Enjoy the increased immersion!

Dutch


Code (]<Gauge Name="another company F16 CS Weapon Interface" Version="1.0">

// Links certain F16 switches to CS Weapon functions

// XML Variables used by CS in their gauges:
// CSG_MasterSw - 0 or 1 for master weapons arm mode
// CSG_RadAirGrnd - 0 for air mode 1 for ground mode
// CSG_RdrRange - 0=5 1=10 2=25 3=50 4=100 5=200
// CSG_WpnSelect - 0=Gun 1=Rocket 2=Missle 3=Bomb

  <Element>
     <Select>
       <Value>

           (L:switch_master_arm,number) (>L:CSG_MasterSw,number)
           
           (L:CSG_MasterSw,number) 1 == if{
           
                 (L:AA,number) 0 == if{
                       1 (>L:CSG_RadAirGrnd,number)
                 } els{
                       0 (>L:CSG_RadAirGrnd,number)
                 }
                 
                 (L:CSG_RadAirGrnd,number) 0 == if{
                       (L:LMFD_ts_1,number) 25 == if{
                             (L:LMFD_ts1_set,bool) 0 == if{
                                    1(>L:LMFD_ts1_set,bool)
                                    (L:CSG_WpnSelect,number) 0 == if{
                                           1 (>L:CSG_WpnSelect,number)
                                    } els{
                                           0 (>L:CSG_WpnSelect,number)
                                    }
                             }
                             1 (>L:LMFD_ts1_set,bool)
                       }                              
                 }
                 
                 
                 (L:LMFD_ts_1,number) 0 == if{
                       0 (>L:LMFD_ts1_set,bool)
                 }
           }

           // HUD Mode - link to Radar Lock rocker button on LMFD
           
           (L:radar_lock,number) 25 == if{
                 (L:LMFD_rad_set,bool) 0 == if{
                        1(>L:LMFD_rad_set,bool)
                        (L:CSG_HudMode,number) 0 == if{
                               1 (>L:CSG_HudMode,number)
                        } els{
                             (L:CSG_HudMode,number) 1 == if{
                                    2 (>L:CSG_HudMode,number)
                                    } els{
                                         0 (>L:CSG_HudMode,number)
                                   }
                             }
                        }
                 }
                 1 (>L:LMFD_rad_set,bool)
           }                              
           (L:radar_lock,number) 0 == if{
                 0 (>L:LMFD_rad_set,bool)
           }

           // Radar Range
           
           (L:Radar_Range,number) 0 == if{
               2 (>L:CSG_RdrRange,number)
           }
           (L:Radar_Range,number) 1 == if{
               3 (>L:CSG_RdrRange,number)
           }
           (L:Radar_Range,number) 2 == if{
               4 (>L:CSG_RdrRange,number)
           }
           (L:Radar_Range,number) 3 == if{
               0 (>L:CSG_RdrRange,number)
           }
           (L:Radar_Range,number) 4 == if{
               1 (>L:CSG_RdrRange,number)
           }
           
           
        </Value>
     </Select>
 </Element>
</Gauge>
[/code):



Here is my CSWeapon.xml for the F16:

[code]<?xml version="1.0" encoding="UTF-8" ?>
<CSWeaponInfo>
   <AircraftInfo>
       <!-- aircraft section -->
       <RadarRanges>5,10,25,50,100,200</RadarRanges>
       <!-- available radar ranges in NM, coma separated. -->
       <RadarGunModeRange>10</RadarGunModeRange>
       <!-- default radar range, NM. -->
       <RadarHorizAngle>60</RadarHorizAngle>
       <!-- angle of the radar horizontal scanning. Degrees -->
       <RadarVertAngle>20</RadarVertAngle>
       <!-- angle of the radar vertical scanning. Degrees -->
       <OptimumAOA>3.0</OptimumAOA>
       <!-- aircraft cruise angle of attack. Degrees -->
       <InRangeSound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_in_range.wav" gain="0.2" />
       <!-- target is in effective range alert for selected weapon. name – path and name. gain  - volume. 1.0 = 100%. -->
       <SrmHiSound name="..\..\..\Captain_Sim\Weapon\Sound\CSWeapon_srm_hi.wav" gain="0.1" />
       <!-- IR homing missiles only: IR seeker lock tone -->
       <SrmLoSound name="..\..\..\Captain_Sim\Weapon\Sound\CSWeapon_srm_lo.wav" gain="0.1" />
       <!-- IR homing missiles only: IR seeker search tone -->
   </AircraftInfo>
   <GaugeInfo>
       <!-- gau section -->
       <AntiAlias2d>1</AntiAlias2d>
       <!-- 2D HUD anti-aliasing. 1-yes, 0-no (1).  0 increases performance.  -->
       <AntiAlias3d>1</AntiAlias3d>
       <!-- VC HUD anti-aliasing. 1-yes, 0-no (1).  0 increases performance.  -->
       <HudFov2d>11.98</HudFov2d>
       <!-- 2d HUD field of view. Degrees -->
       <HudFov3d>19.0</HudFov3d>
       <!-- vc HUD field of view. Degrees -->
       <CollimationData>0.0,31.5,-1.5,5.8</CollimationData>
       <!-- Horizonal +=left -=right -->
       <!-- Distance: +=closer -=further -->
       <!-- Vertical: +=up -=down -->
       <!-- Size: +=smaller -=larger - yes, REVERSED -->
       <EyePtDeltaRatio>0.8</EyePtDeltaRatio>
       <!-- hud acceleration sensetivity factor -->
       <Collimate>1</Collimate>
       <!-- VC HUD collimation. 1-yes, 0-no (1). -->
       <TestFrame>0</TestFrame>
       <!-- HUD test pattern. 1-yes, 0-no (0). -->
   </GaugeInfo>
   <SoundInfo>
       <!-- sound section -->
       <MasterGain>1.0</MasterGain>
       <!-- global weapon sound volume. 1.0 = 100% -->
       <ExtViewSounds>1</ExtViewSounds>
       <!-- sound for exterior cameras. 1-yes, 0-no. -->
       <MaxSimulSounds>16</MaxSimulSounds>
       <!-- max number of simultaneous sounds playback -->
   </SoundInfo>
   <ControlsInfo>
       <!-- contols section -->
       <Action name="fire" control="joystick:0:button:0" />
       <!-- fire button -->
       <Action name="fire" control="Space" />
       <!-- fire button -->
       <Action name="masterSw" control="Ctrl+Shift+7" />
       <!-- weapon master switch -->
       <Action name="nextWeaponType" control="Ctrl+7" />
       <!-- weapon type selector switch -->
       <Action name="nextWeapon" control="Ctrl+6" />
       <!-- weapon subtype selector switch -->
       <Action name="nextWeaponMode" control="Ctrl+8" />
       <!-- weapon type fire mode selector switch -->
       <Action name="groundSw" control="Ctrl+Shift+8" />
       <!-- radar AIR-SURFACE mode selector switch -->
       <Action name="hudModeSw" control="Ctrl+9" />
       <!-- HUD mode selector switch -->
       <Action name="rangeSw" control="Ctrl+0" />
       <!-- Radar range selector switch -->
       <Action name="unlock" control="Ctrl+U" />
       <!-- drop a target  lock -->
       <Action name="fovInc" control="Ctrl+Shift+9" />
       <!-- HUD FOV increase  (2D only, AUTO in VC) -->
       <Action name="fovDec" control="Ctrl+Shift+0" />
       <!-- HUD FOV decrease  (2D only, AUTO in VC) -->
   </ControlsInfo>
   <WeaponInfo>
       <!-- aircraft dependent weapon settings -->
       <Weapon>
           <Gun>M61 Vulcan</Gun>
           <Shell>Vulcan Bullet</Shell>
           <Unlimited>0</Unlimited>
           <Station name="Nose" params="0,9,0,0,0.05,0,1200" />
           <Mode name="AUTO" shotrate="100" setshots="0" sequence="1" skipFrm="0" />
           <Mode name="X10" shotrate="100" setshots="100" sequence="1" skipFrm="0" />
           <DefaultMode>AUTO</DefaultMode>
       </Weapon>
       <Weapon>
           <Gun>AIM-9</Gun>
           <Shell>AIM-9</Shell>
           <Unlimited>0</Unlimited>
           <Station name="LeftWingTip" params="-8,0,0,0,0.00,0,1" />
           <Station name="LeftWingOuter" params="-5,0,0,0,0.00,0,1" />
           <Station name="LeftWingInner" params="-2,0,0,0,0.00,0,1" />
           <Station name="RightWingInner" params="2,0,0,0,0.00,0,1" />
           <Station name="RightWingOuter" params="5,0,0,0,0.00,0,1" />
           <Station name="RightWingTip" params="8,0,0,0,0.00,0,1" />
           <Mode name="BST" setshots="1" shotrate="0.5" sequence="1,2,3,4,5,6" reset="0" />
           <!-- available names: BST, UNCAGED, TRACK  -->
           <Mode name="UNCAGED" setshots="1" shotrate="0.5" sequence="1,2,3,4,5,6" reset="0" />
           <Mode name="TRACK" setshots="1" shotrate="0.5" sequence="1,2,3,4,5,6" reset="0" />
           <DefaultMode>TRACK</DefaultMode>
       </Weapon>
       <Weapon>
           <Gun>AIM-7</Gun>
           <Shell>AIM-7</Shell>
           <Unlimited>0</Unlimited>
           <Station name="LeftWingOuter" params="-5,0,0,0,0.00,0,1" />
           <Station name="LeftWingInner" params="-2,0,0,0,0.00,0,1" />
           <Station name="RightWingInner" params="2,0,0,0,0.00,0,1" />
           <Station name="RightWingOuter" params="5,0,0,0,0.00,0,1" />
           <Mode name="TRACK" setshots="1" shotrate="0.5" sequence="1,2,3,4" reset="0" />
           <DefaultMode>TRACK</DefaultMode>
       </Weapon>
       <Weapon>
           <Gun>AIM-132</Gun>
           <Shell>AIM-132</Shell>
           <Unlimited>0</Unlimited>
           <Station name="LeftWingOuter" params="-5,0,0,0,0.00,0,1" />
           <Station name="LeftWingInner" params="-2,0,0,0,0.00,0,1" />
           <Station name="RightWingInner" params="2,0,0,0,0.00,0,1" />
           <Station name="RightWingOuter" params="5,0,0,0,0.00,0,1" />
           <Mode name="BST" setshots="1" shotrate="0.5" sequence="1,2,3,4" reset="0" />
           <Mode name="UNCAGED" setshots="1" shotrate="0.5" sequence="1,2,3,4" reset="0" />
           <Mode name="TRACK" setshots="1" shotrate="0.5" sequence="1,2,3,4" reset="0" />
           <DefaultMode>TRACK</DefaultMode>
       </Weapon>
       <Weapon>
           <Gun>AGM-88</Gun>
           <Shell>AGM-88</Shell>
           <Unlimited>0</Unlimited>
           <Station name="LeftWingOuter" params="-5,0,0,0,0.00,0,1" />
           <Station name="LeftWingInner" params="-2,0,0,0,0.00,0,1" />
           <Station name="RightWingInner" params="2,0,0,0,0.00,0,1" />
           <Station name="RightWingOuter" params="5,0,0,0,0.00,0,1" />
           <Mode name="TRACK" setshots="1" shotrate="0.5" sequence="1,2,3,4" reset="0" />
           <DefaultMode>TRACK</DefaultMode>
       </Weapon>
   </WeaponInfo>
   <GunInfo>
       <!-- aircraft independent weapon settings -->
       <Gun>
           <!-- weapon sub-type . unlimited number of -->
           <Type>MachineGun</Type>
           <!--sub-type class. USE ONLY: MachineGun, RocketLauncher, MissileLauncher, BombLauncher -->
           <Name>M60C</Name>
           <!--weapon sub-type name. must match name in WeaponInfo section -->
           <Desc>7.62mm Machine Gun</Desc>
           <!-- weapon sub-type description  -->
           <HudString>GUN</HudString>
           <!-- weapon type dispayed on HUD in weapon info string -->
           <Pix />
           <ConeAngle>0.0005</ConeAngle>
           <!-- grouping of shots cone (radians) -->
           <TargetRange>800</TargetRange>
           <!-- Effective range (metters) -->
           <Delay>0.0</Delay>
           <!-- Fire Delay - seconds. -->
           <FxFire />
           <!-- Fire visual effect name. no path -->
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_mg_shot1.wav" loopEnd="0.1" finishLoop="1" gain="0.7" />
           <!-- Fire Sound name, path, parameter -->
           <Shell>
               <!-- shell section (bullet, shell, rocket, missile, bomb). one per weapon sub-type -->
               <Name>M60C Bullet</Name>
               <!-- shell name. must match name in WeaponInfo section -->
               <Desc>7.62mm M60C Bullet</Desc>
               <!-- description. any -->
               <HudString>M60</HudString>
               <!-- weapon sub-type dispayed on HUD in weapon info string -->
               <Pix />
               <Container>CS_Weapon_M60C</Container>
               <!-- weapon simobject name. must match ../Simobjects/Misc/ name AND simobject sim.cfg title= name -->
               <FxWake />
               <!-- rocket/missile trail visual effect name. no path -->
               <Weight>0.0097</Weight>
               <!-- shell weight -->
               <TargetWeight>5000</TargetWeight>
               <!-- target wight correction factor -->
               <Lifetime>3.0</Lifetime>
               <!-- shell physical liftime -->
               <CtrLifetime>2.0</CtrLifetime>
               <!-- shell simobject liftime -->
               <Efficiency>0.01</Efficiency>
               <!-- shell damage efficiency             -->
               <RadiusRatio>1.0</RadiusRatio>
               <!-- See SDK -->
               <DragCoeff>0.295</DragCoeff>
               <!-- shell drag coefficient -->
               <OpArea>0.0000456</OpArea>
               <!-- shell net area -->
               <GravCoeff>1.0</GravCoeff>
               <!-- shell gravitation coefficient  -->
               <InitSpeed>853</InitSpeed>
               <!-- shell initial velocity (meters per second) -->
               <EngThrust>0</EngThrust>
               <!-- Rocket engine thrust  (newtons) -->
               <ThrustDuration>0</ThrustDuration>
               <!-- Rocket engine lifetime (seconds) -->
           </Shell>
       </Gun>
       <Gun>
           <Type>MachineGun</Type>
           <Name>SPPU-30</Name>
           <Desc>2xGS-30-1</Desc>
           <HudString>GUN</HudString>
           <Pix />
           <ConeAngle>0.001</ConeAngle>
           <TargetRange>1200</TargetRange>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_mg_fire1.wav" loopBeg="0.046" loopEnd="0.553" finishLoop="0" gain="1.0" />
           <Shell>
               <Name>GS-30-1 Bullet</Name>
               <Desc>30mm GS-30-1 Bullet</Desc>
               <HudString>GS30</HudString>
               <Pix />
               <Container>CS_Weapon_GSH-30</Container>
               <FxWake />
               <Weight>0.390</Weight>
               <TargetWeight>5000</TargetWeight>
               <Lifetime>3.0</Lifetime>
               <CtrLifetime>2.0</CtrLifetime>
               <ContainerLifetime>3.0</ContainerLifetime>
               <Efficiency>0.04</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.295</DragCoeff>
               <OpArea>0.0007068</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>887.5</InitSpeed>
               <EngThrust>0</EngThrust>
               <ThrustDuration>0</ThrustDuration>
           </Shell>
       </Gun>
       <Gun>
           <Type>MachineGun</Type>
           <Name>M61 Vulcan</Name>
           <Desc>M61 Vulcan six-barreled cannon</Desc>
           <HudString>GUN</HudString>
           <Pix />
           <ConeAngle>0.0015</ConeAngle>
           <TargetRange>1500</TargetRange>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\VulcanCannon.wav" loopBeg="0.5139" loopEnd="1.3059" finishLoop="0" gain="1.0" />
           <Shell>
               <Name>Vulcan Bullet</Name>
               <Desc>20mm Vulcan Bullet</Desc>
               <HudString>M61</HudString>
               <Pix />
               <Container>CS_Weapon_M61Vulcan</Container>
               <FxWake />
               <Weight>0.1024</Weight>
               <TargetWeight>5000</TargetWeight>
               <Lifetime>3.0</Lifetime>
               <CtrLifetime>2.0</CtrLifetime>
               <Efficiency>0.026</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.295</DragCoeff>
               <OpArea>0.0003141</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>1050</InitSpeed>
               <EngThrust>0</EngThrust>
               <ThrustDuration>0</ThrustDuration>
           </Shell>
       </Gun>
       <Gun>
           <Type>RocketLauncher</Type>
           <Name>Hydra 70</Name>
           <Desc>Description of rocket launcher</Desc>
           <HudString>ROCKE</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>2500</TargetRange>
           <MaxGForce>3</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket1.wav" gain="0.3" />
           <Shell>
               <Name>Hydra 70</Name>
               <Desc>Hydra 70 rocket</Desc>
               <HudString>H70</HudString>
               <Pix />
               <Container>CS_Weapon_Hydra70</Container>
               <FxWake>csweapon_rocket_wake1</FxWake>
               <Weight>12.2</Weight>
               <TargetWeight>10000</TargetWeight>
               <Lifetime>4.0</Lifetime>
               <CtrLifetime>4.0</CtrLifetime>
               <Efficiency>0.3</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.04</DragCoeff>
               <OpArea>0.004</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>5926</EngThrust>
               <ThrustDuration>1.075</ThrustDuration>
           </Shell>
       </Gun>
       <Gun>
           <Type>RocketLauncher</Type>
           <Name>Zuni127</Name>
           <Desc>Description of rocket launcher</Desc>
           <HudString>ROCKE</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>2500</TargetRange>
           <MaxGForce>3</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket1.wav" gain="1.0" />
           <Shell>
               <Name>Zuni127</Name>
               <Desc>Zuni127 rocket</Desc>
               <HudString>Z127</HudString>
               <Pix />
               <Container>CS_Weapon_Zuni127</Container>
               <FxWake>csweapon_rocket_wake1</FxWake>
               <Weight>12.2</Weight>
               <TargetWeight>10000</TargetWeight>
               <Lifetime>4.0</Lifetime>
               <CtrLifetime>4.0</CtrLifetime>
               <Efficiency>0.5</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.04</DragCoeff>
               <OpArea>0.004</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>5926</EngThrust>
               <ThrustDuration>1.075</ThrustDuration>
           </Shell>
       </Gun>
       <Gun>
           <Type>MissileLauncher</Type>
           <Name>AIM-9</Name>
           <Desc>AIM-9 Sidewinder</Desc>
           <HudString>AA</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>18000</TargetRange>
           <MinRange>1000</MinRange>
           <MaxGForce>3</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket3.wav" gain="0.5" />
           <Shell>
               <Name>AIM-9</Name>
               <Desc>AIM-9 Sidewinder</Desc>
               <HudString>AIM9</HudString>
               <Pix />
               <Container>CS_Weapon_AIM9</Container>
               <FxWake>csweapon_rocket_wake2</FxWake>
               <Weight>86.2</Weight>
               <TargetWeight>20000</TargetWeight>
               <Lifetime>25.0</Lifetime>
               <CtrLifetime>25.0</CtrLifetime>
               <Efficiency>0.3</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.18</DragCoeff>
               <OpArea>0.015</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>6000</EngThrust>
               <ThrustDuration>10.0</ThrustDuration>
               <TurnRate>0.4</TurnRate>
               <!-- missiles only: maximum turn rate. Radians -->
               <SteerDelay>1.0</SteerDelay>
               <!-- missiles only: initial acceleration time before self-homing begins. Seconds -->
               <SeekerAngle>3.1416</SeekerAngle>
               <!-- IR missiles only: IR seeker maximum vield of view angle. Radians -->
               <SelfDestrTime>10.0</SelfDestrTime>
               <!-- missiles only: self-destruction delay if a lock missed after launch. Seconds -->
           </Shell>
       </Gun>
       <Gun>
           <Type>MissileLauncher</Type>
           <Name>AIM-7</Name>
           <Desc>AIM-7 Sparrow</Desc>
           <HudString>AA</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>45000</TargetRange>
           <MinRange>2000</MinRange>
           <MaxGForce>3</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket3.wav" gain="0.7" />
           <Shell>
               <Name>AIM-7</Name>
               <Desc>AIM-7 Sparrow</Desc>
               <HudString>AIM7</HudString>
               <Pix />
               <Container>CS_Weapon_AIM7</Container>
               <FxWake>csweapon_rocket_wake2</FxWake>
               <Weight>230.0</Weight>
               <TargetWeight>20000</TargetWeight>
               <Lifetime>25.0</Lifetime>
               <CtrLifetime>25.0</CtrLifetime>
               <Efficiency>0.5</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.18</DragCoeff>
               <OpArea>0.015</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>17000</EngThrust>
               <ThrustDuration>10.0</ThrustDuration>
               <TurnRate>0.2</TurnRate>
               <SteerDelay>2.0</SteerDelay>
               <SeekerAngle>3.1416</SeekerAngle>
               <SelfDestrTime>10.0</SelfDestrTime>
           </Shell>
       </Gun>
       <Gun>
           <Type>MissileLauncher</Type>
           <Name>R-73</Name>
           <Desc>R-73M2</Desc>
           <HudString>AA</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>40000</TargetRange>
           <MinRange>1000</MinRange>
           <MaxGForce>3</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket3.wav" gain="0.6" />
           <Shell>
               <Name>R-73</Name>
               <Desc>R-73M2</Desc>
               <HudString>R73</HudString>
               <Pix />
               <Container>CS_Weapon_R-73</Container>
               <FxWake>csweapon_rocket_wake2</FxWake>
               <Weight>105.0</Weight>
               <TargetWeight>20000</TargetWeight>
               <Lifetime>25.0</Lifetime>
               <CtrLifetime>25.0</CtrLifetime>
               <Efficiency>0.5</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.18</DragCoeff>
               <OpArea>0.015</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>7000</EngThrust>
               <ThrustDuration>10.0</ThrustDuration>
               <TurnRate>0.4</TurnRate>
               <SteerDelay>1.0</SteerDelay>
               <SeekerAngle>3.1416</SeekerAngle>
               <SelfDestrTime>10.0</SelfDestrTime>
           </Shell>
       </Gun>
       <Gun>
           <Type>MissileLauncher</Type>
           <Name>R-60</Name>
           <Desc>R-60</Desc>
           <HudString>AA</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>8000</TargetRange>
           <MinRange>500</MinRange>
           <MaxGForce>4</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket3.wav" gain="0.3" />
           <Shell>
               <Name>R-60</Name>
               <Desc>R-60</Desc>
               <HudString>R60</HudString>
               <Pix />
               <Container>CS_Weapon_R-60</Container>
               <FxWake>csweapon_rocket_wake2</FxWake>
               <Weight>86.2</Weight>
               <TargetWeight>20000</TargetWeight>
               <Lifetime>25.0</Lifetime>
               <CtrLifetime>25.0</CtrLifetime>
               <Efficiency>0.3</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.18</DragCoeff>
               <OpArea>0.015</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>6000</EngThrust>
               <ThrustDuration>10.0</ThrustDuration>
               <TurnRate>0.6</TurnRate>
               <SteerDelay>1.0</SteerDelay>
               <SeekerAngle>3.1416</SeekerAngle>
               <SelfDestrTime>10.0</SelfDestrTime>
           </Shell>
       </Gun>
       <Gun>
           <Type>MissileLauncher</Type>
           <Name>AIM-132</Name>
           <Desc>AIM-132 ASRAAM</Desc>
           <HudString>AA</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>18000</TargetRange>
           <MinRange>300</MinRange>
           <MaxGForce>4</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket3.wav" gain="0.5" />
           <Shell>
               <Name>AIM-132</Name>
               <Desc>AIM-132 ASRAAM</Desc>
               <HudString>AIM132</HudString>
               <Pix />
               <Container>CS_Weapon_AIM132</Container>
               <FxWake>csweapon_rocket_wake2</FxWake>
               <Weight>88.0</Weight>
               <TargetWeight>20000</TargetWeight>
               <Lifetime>25.0</Lifetime>
               <CtrLifetime>25.0</CtrLifetime>
               <Efficiency>0.5</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.18</DragCoeff>
               <OpArea>0.015</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>6000</EngThrust>
               <ThrustDuration>10.0</ThrustDuration>
               <TurnRate>0.6</TurnRate>
               <SteerDelay>1.0</SteerDelay>
               <SeekerAngle>3.1416</SeekerAngle>
               <SelfDestrTime>10.0</SelfDestrTime>
           </Shell>
       </Gun>
       <Gun>
           <Type>MissileLauncher</Type>
           <Name>AGM-88</Name>
           <Desc>AGM-88 HARM</Desc>
           <HudString>AS</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>106000</TargetRange>
           <MinRange>2000</MinRange>
           <MaxGForce>3</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket2.wav" gain="0.3" />
           <Shell>
               <Name>AGM-88</Name>
               <Desc>AGM-88 HARM</Desc>
               <HudString>AGM88</HudString>
               <Pix />
               <Container>CS_Weapon_AGM-88</Container>
               <FxWake>csweapon_rocket_wake2</FxWake>
               <Weight>355.0</Weight>
               <TargetWeight>50000</TargetWeight>
               <Lifetime>25.0</Lifetime>
               <CtrLifetime>25.0</CtrLifetime>
               <Efficiency>1.0</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.18</DragCoeff>
               <OpArea>0.015</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>20000</EngThrust>
               <ThrustDuration>10.0</ThrustDuration>
               <TurnRate>0.2</TurnRate>
               <SteerDelay>1.0</SteerDelay>
               <SeekerAngle>3.1416</SeekerAngle>
               <SelfDestrTime>10.0</SelfDestrTime>
           </Shell>
       </Gun>
       <Gun>
           <Type>MissileLauncher</Type>
           <Name>X-29</Name>
           <Desc>X-29</Desc>
           <HudString>AS</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>12000</TargetRange>
           <MinRange>1000</MinRange>
           <MaxGForce>3</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket3.wav" gain="1.0" />
           <Shell>
               <Name>X-29</Name>
               <Desc>X-29</Desc>
               <HudString>X29</HudString>
               <Pix />
               <Container>CS_Weapon_Kh-29</Container>
               <FxWake>csweapon_rocket_wake2</FxWake>
               <Weight>685.0</Weight>
               <TargetWeight>50000</TargetWeight>
               <Lifetime>25.0</Lifetime>
               <CtrLifetime>25.0</CtrLifetime>
               <Efficiency>1.0</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.18</DragCoeff>
               <OpArea>0.015</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>20000</EngThrust>
               <ThrustDuration>10.0</ThrustDuration>
               <TurnRate>0.2</TurnRate>
               <SteerDelay>1.0</SteerDelay>
               <SeekerAngle>3.1416</SeekerAngle>
               <SelfDestrTime>10.0</SelfDestrTime>
           </Shell>
       </Gun>
       <Gun>
           <Type>MissileLauncher</Type>
           <Name>ALARM</Name>
           <Desc>Air Launched Anti-Radiation Missile</Desc>
           <HudString>AS</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>93000</TargetRange>
           <MinRange>2000</MinRange>
           <MaxGForce>3</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket2.wav" gain="0.3" />
           <Shell>
               <Name>ALARM</Name>
               <Desc>Air Launched Anti-Radiation Missile</Desc>
               <HudString>ALRM</HudString>
               <Pix />
               <Container>CS_Weapon_ALARM</Container>
               <FxWake>csweapon_rocket_wake2</FxWake>
               <Weight>268.0</Weight>
               <TargetWeight>50000</TargetWeight>
               <Lifetime>25.0</Lifetime>
               <CtrLifetime>25.0</CtrLifetime>
               <Efficiency>1.0</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.18</DragCoeff>
               <OpArea>0.015</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>15000</EngThrust>
               <ThrustDuration>10.0</ThrustDuration>
               <TurnRate>0.2</TurnRate>
               <SteerDelay>1.0</SteerDelay>
               <SeekerAngle>3.1416</SeekerAngle>
               <SelfDestrTime>10.0</SelfDestrTime>
           </Shell>
       </Gun>
       <Gun>
           <Type>MissileLauncher</Type>
           <Name>AS-34</Name>
           <Desc>AS-34 Kormoran</Desc>
           <HudString>AS</HudString>
           <Pix />
           <ConeAngle>0.005</ConeAngle>
           <TargetRange>23000</TargetRange>
           <MinRange>2000</MinRange>
           <MaxGForce>3</MaxGForce>
           <Delay>0.0</Delay>
           <FxFire />
           <Sound name="..\..\..\Captain_Sim\Weapon\Sound\csweapon_rocket2.wav" gain="0.4" />
           <Shell>
               <Name>AS-34</Name>
               <Desc>AS-34 Kormoran</Desc>
               <HudString>AS34</HudString>
               <Pix />
               <Container>CS_Weapon_AS-34</Container>
               <FxWake>csweapon_rocket_wake2</FxWake>
               <Weight>600.0</Weight>
               <TargetWeight>50000</TargetWeight>
               <Lifetime>25.0</Lifetime>
               <CtrLifetime>25.0</CtrLifetime>
               <Efficiency>1.0</Efficiency>
               <RadiusRatio>1.0</RadiusRatio>
               <DragCoeff>0.18</DragCoeff>
               <OpArea>0.015</OpArea>
               <GravCoeff>1.0</GravCoeff>
               <InitSpeed>0</InitSpeed>
               <EngThrust>15000</EngThrust>
               <ThrustDuration>10.0</ThrustDuration>
               <TurnRate>0.2</TurnRate>
               <SteerDelay>1.0</SteerDelay>
               <SeekerAngle>3.1416</SeekerAngle>
               <SelfDestrTime>10.0</SelfDestrTime>
           </Shell>
       </Gun>
       <Gun>
           <Type>BombLauncher</Type>
           <Name>MK82</Name>
           <HudString>MK82</HudString>
       </Gun>
   </GunInfo>
   <TrafficInfo>
       <!-- Target section -->
       <Traffic>
           <Type>DefaultAir</Type>
           <!-- traffic type (DefaultAir, DefaultGround, DefaultBoat)
                 DefaultAir – all aircraft.
                 DefaultGround – all ground vehicles (except highway traffic).
                 DefaultBoat – all sea traffic.
                 User can define any specific Simobject title (i.e. de Havilland Dash 8-100) to set any specific setting. -->
           <FxImpactland name="csweapon_ai_impactland" lifeTime="30.0" />
           <!-- simobject ground hit effect. name – effect name.  lifeTime – lifetime, seconds -->
           <FxImpactwater name="csweapon_ai_impactwater" />
           <!-- simobject (except ground vehicles) water hit effect. name – effect name. lifeTime – lifetime, seconds -->
           <LifeDamaged>360</LifeDamaged>
           <!-- unexploded stroked simobject lifetime, seconds. Used for FSX system load optimization.  -->
           <SpdDamagedMin>0.05</SpdDamagedMin>
           <!-- speed of unexploded stroked simobject to trigger LifeDamaged. Meters per sec  -->
           <Damage pct="10.0" release="1">
               <!-- Unlimited number of Damage sections to determine stroked simobject behavior.
                 pct – damage % to trigger the section.
                 release – FSX AI control (1-no,  0-yes).
                 remove – remove simobject form the scene (1-yes, 0-no).
                 removeDelay - simobject remove form the scene delay. Seconds -->
               <AIPilot bank="-0.2" />
               <Var name="BRAKE PARKING POSITION" units="Position" value="32000" />
           </Damage>
           <Damage pct="15.0">
               <Fx name="csweapon_ai_smoke_light" state="1" />
               <!-- visual effect name. no path, must be placed in .../Effects/ -->
           </Damage>
           <Damage pct="20.0">
               <AIPilot bank="0.2" />
               <!-- flight parameters for this % of damage.
                         bank – bank angle. Radians.
                         pitch - pitch angle. Radians.
                         IAS – KIAS (-1). -->
           </Damage>
           <Damage pct="30.0">
               <Fx name="csweapon_ai_smoke_mid" state="1" />
               <Fx name="csweapon_ai_smoke_light" state="0" />
               <AIPilot bank="-0.2" />
               <Var name="GENERAL ENG THROTTLE LEVER POSITION:1" units="Percent" value="0" />
               <Var name="GENERAL ENG THROTTLE LEVER POSITION:2" units="Percent" value="0" />
               <Var name="GENERAL ENG THROTTLE LEVER POSITION:3" units="Percent" value="0" />
               <Var name="GENERAL ENG THROTTLE LEVER POSITION:4" units="Percent" value="0" />
           </Damage>
           <Damage pct="40.0">
               <AIPilot bank="0.26" />
           </Damage>
           <Damage pct="45.0">
               <Fx name="csweapon_ai_smoke_dark" state="1" />
               <Fx name="csweapon_ai_smoke_mid" state="0" />
           </Damage>
           <Damage pct="50.0">
               <AIPilot bank="-0.52" />
               <Var name="ELECTRICAL MASTER BATTERY" units="Bool" value="0" />
           </Damage>
           <Damage pct="60.0">
               <Fx name="csweapon_ai_smoke_black" state="1" />
               <Fx name="csweapon_ai_smoke_dark" state="0" />
               <AIPilot bank="10.0" />
               <Var name="GENERAL ENG COMBUSTION:1" units="Bool" value="0" />
               <!-- FSX var for this % of damage.
                       name – var name (see FSX SDK.Core Utilities Kit > Variables > Simulation Variables).  
                       units - (see FSX SDK.Core Utilities Kit > Variables > Simulation Variables).
                       FSX events  supported as well:
                       name – event ID (see FSX SDK.Core Utilities Kit > Variables > Event ID's).
                       data – additional event data (see FSX SDK.Core Utilities Kit > Variables > Event ID's)-->
               <Var name="GENERAL ENG COMBUSTION:2" units="Bool" value="0" />
               <Var name="GENERAL ENG COMBUSTION:3" units="Bool" value="0" />
               <Var name="GENERAL ENG COMBUSTION:4" units="Bool" value="0" />
               <Var name="AILERON POSITION" units="Position" value="-16000" />
           </Damage>
           <Damage pct="80.0">
               <Var name="AILERON POSITION" units="Position" value="16000" />
           </Damage>
           <Damage pct="99.9" remove="1" removeDelay="2.0">
               <Fx name="csweapon_ai_expl_air" state="1" />
           </Damage>
       </Traffic>
       <Traffic>
           <Type>DefaultGround</Type>
           <LifeDamaged>30</LifeDamaged>
           <Damage pct="50.0" release="1">
               <Fx name="csweapon_ai_grnd_mid_dmg" state="1" />
               <Var name="GENERAL ENG COMBUSTION:1" units="Bool" value="0" />
               <Var name="GENERAL ENG COMBUSTION:2" units="Bool" value="0" />
               <Var name="GENERAL ENG COMBUSTION:3" units="Bool" value="0" />
               <Var name="GENERAL ENG COMBUSTION:4" units="Bool" value="0" />
               <Var name="ELECTRICAL MASTER BATTERY" units="Bool" value="0" />
           </Damage>
           <Damage pct="99.9">
               <Fx name="csweapon_ai_grnd_mid_dmg" state="0" />
               <Fx name="csweapon_ai_grnd_hi_dmg" state="1" />
           </Damage>
       </Traffic>
   </TrafficInfo>
</CSWeaponInfo>

CAPTAIN SIM FORUM » Powered by YaBB 2.6.0!
YaBB Forum Software © 2000-2024. All Rights Reserved.