Jump to content
Sign in to follow this  
gregoryp

Is there any way to make a weapon/rack specific to an aircraft?

Recommended Posts

For example the Christmas tree type missile rack on the P-38. Is there any way to keep it from showing up for other aircraft? And other aircraft missile pods from showing up on the P-38’s loadout screen?

 

 

Share this post


Link to post
Share on other sites

Sure, use the SpecificStationCode=xxxx parameter(where xxxx is a four character alpha numeric code) within the weaponstation entry of the data.ini of the aircraft AND within the data.ini of the weapon.

 

The weapon will only get loaded if the number matches the entry in the data.ini. This is only applicable for patch level Oct 08 or later.

 

FC

Edited by FastCargo

Share this post


Link to post
Share on other sites

Sure, use the SpecificStationCode=xxxx parameter(where xxxx is a four character alpha numeric code) within the weaponstation entry of the data.ini of the aircraft AND within the data.ini of the weapon.

 

The weapon will only get loaded if the number matches the entry in the data.ini. This is only applicable for patch level Oct 08 or later.

 

FC

 

 

Thanks! Using SF2 for all my WW2 mod's now.

 

Here's the P-38 outer station. Where would I add the 4 digit code? Is the code alpha numeric?

 

[LeftWingStationOutboard]

SystemType=WEAPON_STATION

StationID=3

StationGroupID=2

StationType=EXTERNAL

LoadLimit=1000

DiameterLimit=

LengthLimit=

NumWeapons=5

AllowedWeaponClass=RP

AttachmentType=USAF

ModelNodeName=WW2_US_Pod_HVAR2x5_P-38

PylonMass=0

PylondragArea=0.03

FuelTankName=

FuelTankNodeName=

MissileRollAngle=

EjectVelocity=

AttachmentAngles=0.0,0.0,0.0

BombBayAnimationID=

BombBayOpenTime=

BombBayCloseTime=

AttachmentPosition=-5.5,0.1,0.6

 

Here's the P-38 rocket pod

 

[WeaponData001]

TypeName=WW2_US_Pod_HVAR2x5_P-38

FullName=Pod HVAR2 x 5 (P-38)

ModelName=WW2_US_Pod_HVAR2x5_P-38

Mass=25.000000

Diameter=0.000000

Length=1.500000

SubsonicDragCoeff=0.200000

SupersonicDragCoeff=0.770000

AttachmentType=USAF

SpecificStationCode= <---- 4 digit code goes here?

NationName=USAF

StartYear=1944

EndYear=1955

Availability=2

BaseQuantity=10

Exported=FALSE

ExportStartYear=0

ExportEndYear=0

ExportAvailability=0

WeaponDataType=2

RailLaunched=FALSE

RocketTypeName=WW2_US_Rocket_HVAR2_GP

NumRockets=5

ROF=0.000000

FireEffectName=RocketPodEffect

FireEffectTime=0.150000

FrontCoverNodeName=

RearCoverNodeName=

ShowRockets=TRUE

Rocket01Position=0.400000,0.000000,-0.475000

Rocket02Position=-0.400000,0.000000,-0.475000

Rocket03Position=0.250000,0.000000,-0.800000

Rocket04Position=-0.250000,0.000000,-0.800000

Rocket05Position=0.000000,0.000000,-1.100000

Share this post


Link to post
Share on other sites

Just had this very self-same problem with some J skins I'm doing for 20th FG, ETO.

 

You CAN use the StationSpecific code, or the "OnlyAllowedWeapon=" or "NotAllowedWeapon" on the hard point

 

[LeftWingStationOutboard]

SystemType=WEAPON_STATION

StationID=3

StationGroupID=2

StationType=EXTERNAL

AttachmentPosition=-5.5,0.1,0.6

AttachmentAngles=0.0,0.0,0.0

LoadLimit=27

AllowedWeaponClass=RP

AttachmentType=USAF

ModelNodeName=

PylonMass=20.0

PylonDragArea=0.03

NotAllowedWeapon=Triple_Bazooka

OnlyAllowedWeapon=P-38_Rack

 

[RightWingStationOutboard]

SystemType=WEAPON_STATION

StationID=4

StationGroupID=2

StationType=EXTERNAL

AttachmentPosition=5.5,0.1,0.6

AttachmentAngles=0.0,0.0,0.0

LoadLimit=27

AllowedWeaponClass=RP

AttachmentType=USAF

ModelNodeName=

PylonMass=20.0

PylonDragArea=0.03

NotAllowedWeapon=Triple_Bazooka

OnlyAllowedWeapon=P-38_Rack

 

you'll note I changed the LoadLimit=, too

btw, this is in 06 ETO; for 08/SF2 the two statements DO work, but station specific code would probably be best, given the fact the xmas tree rack was ONLY used on H/J models.

 

You should be able to add it to the weaponsdata ini for the rack, via the sf2 weapons editor, and add the ssc line to the hardpoint (the stock mig-23 uses this for the apex stations)

 

SpecificStationCode= *name of weapon, must match that used in loadoutini*

 

wrench

kevin stein

Edited by Wrench

Share this post


Link to post
Share on other sites

Just had this very self-same problem with some J skins I'm doing for 20th FG, ETO.

 

You CAN use the StationSpecific code, or the "OnlyAllowedWeapon=" or "NotAllowedWeapon" on the hard point

 

[LeftWingStationOutboard]

SystemType=WEAPON_STATION

StationID=3

StationGroupID=2

StationType=EXTERNAL

AttachmentPosition=-5.5,0.1,0.6

AttachmentAngles=0.0,0.0,0.0

LoadLimit=27

AllowedWeaponClass=RP

AttachmentType=USAF

ModelNodeName=

PylonMass=20.0

PylondragArea=0.03

NotAllowedWeapon=Triple_Bazooka

OnlyAllowedWeapon=P-38_Rack

 

[RightWingStationOutboard]

SystemType=WEAPON_STATION

StationID=4

StationGroupID=2

StationType=EXTERNAL

AttachmentPosition=5.5,0.1,0.6

AttachmentAngles=0.0,0.0,0.0

LoadLimit=27

AllowedWeaponClass=RP

AttachmentType=USAF

ModelNodeName=

PylonMass=20.0

PylondragArea=0.03

NotAllowedWeapon=Triple_Bazooka

OnlyAllowedWeapon=P-38_Rack

 

you'll note I changed the LoadLimit=, too

btw, this is in 06 ETO; for 08/SF2 the two statements DO work, but station specific code would probably be best, given the fact the xmas tree rack was ONLY used on H/J models.

 

You should be able to add it to the weaponsdata ini for the rack, via the sf2 weapons editor, and add the ssc line to the hardpoint (the stock mig-23 uses this for the apex stations)

 

SpecificStationCode= *name of weapon, must match that used in loadoutini*

 

wrench

kevin stein

 

Thanks Wrench, I'll add

 

NotAllowedWeapon=

OnlyAllowedWeapon=

 

to my program. Do I also need to add a

 

SpecificStationCode=

 

also to the Station section too? So both the weapon and station would have SpecificStationCode= in them?

 

BTW, got your WW2 pak converted to SF2. Just starting to go over the data. I have a small DATCOM program to calc the drag for each weapon grin.gif

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..