Jump to content
Sign in to follow this  
UllyB

A little help with a gunsight

Recommended Posts

Hello

I recently tried the YAK-38M Forger-A and I stumbled into an issue. Plane has a nice gunsight TGA which is set to appear:

- when you select air-to-air gun (in this case a gunpod actually)

- when you select an AG bomb

 

The problem is when you attach a gunpod, and you select air-to-ground gun, the gunsight won't appear anymore and you can just shoot with the gunpod but you don't have any precision not knowing where bullets exactly will go.(how much up as distance or how much down etc)

What I want is some help, if possible, in cockpit.ini. I would, please, like to know what must be changed in order to see the same nice gunsight when I select air-to-ground gun (and , of course, keeping the two setting I spoke of above). I know it must be doable, I saw many planes , in SF1, which had the same gunsight image when I used the air-to-air gun or the air-to-ground setting. Here's the cockpit.ini (just the important part with the issue):

 

[CockpitData]
Directory=cockpit
HUDMode=CAGED,AG,AA
RippleQuantity=1,2,4,8
RippleInterval=50,100,200

[GunsightFront]
HasGunsight=TRUE
GunsightMilSize=60
GunsightName=GunSight.tga
AGGunsightName=GunSight.tga
GunsightRollTabsName=Rolltab.tga
GunsightRangeBarName=Rangebar.tga
RangeBarOrientation=6TO12
RangeBarHasGunRange=TRUE
RangeBarUseWeaponRange=FALSE
//RangeBarWeaponRangeAtCenter=FALSE
RangeBarMax=10000.0
RangeBarMin=1000.0
RangeBarMaxGun=1600.0
RangeBarMinGun=100.0
LeadComputing=TRUE
MinLeadRange=100
MaxLeadRange=1200
DefaultLeadRange=300
MaxDepression=0
DefaultDepression=0

[CockpitSeat001]
ModelName=Yak_38_cockpit
OpenCockpit=FALSE
Offset=0.0,-0.3,0.0
Position=Position=0.0,4.4,0.6
ViewAngles=0.0,0.0,0.0
MaxYaw=150
MinYaw=-150
MaxPitch=90
MinPitchFront=-45
MinPitchRear=-20
LightRange=2.0
LightInnerConeAngle=50
LightOuterConeAngle=80
LightAngles=0.0,-35.0,0.0
DiffuseLightFactor=0.5
NightLightOn=0.55
NightLightColor=0.9,0.0,0.0
Gunsight=GunsightFront

 

Truth is that I don't know what exactly some parameters do and all my tries were without any positive result.

Thank you for your time!

Share this post


Link to post
Share on other sites

Aaaaa nope it didn't work. I copied the same tga and renamed it differently, Gunsight2 for example. So the lines would look now like this:

[GunsightFront]
HasGunsight=TRUE
GunsightMilSize=60
GunsightName=GunSight.tga (the same texture)
AGGunsightName=GunSight2.tga (the same texture)
GunsightRollTabsName=Rolltab.tga
GunsightRangeBarName=Rangebar.tga
RangeBarOrientation=6TO12
RangeBarHasGunRange=TRUE
RangeBarUseWeaponRange=FALSE
//RangeBarWeaponRangeAtCenter=FALSE
RangeBarMax=10000.0
RangeBarMin=1000.0
RangeBarMaxGun=1600.0
RangeBarMinGun=100.0
LeadComputing=TRUE
MinLeadRange=100
MaxLeadRange=1200
DefaultLeadRange=300
MaxDepression=0
DefaultDepression=0

 

So as you instructed , I should have had the same gunsight texture when I chose air-to-air gun or air-to-ground gun, right ? But I haven't, when I choose air-to-ground gun,   and  I shoot at something with the gunpod attached (there is one for each wing) the "gunsight" texture that should be there is missing and bullets are just going forward. Any thoughts ?

 

PS - are you sure that you were speaking about air-to-ground GUN and not air-to-ground bomb/missile etc ? "Cause , as I said, if I choose an air -to ground WEAPON (any bomb or air-to-ground missile except a gun) the texture works. I want the texture to work for air-to-ground GUN also.

Edited by UllyB

Share this post


Link to post
Share on other sites

I've got an idea. I remembered that SU-25 (a third party plane), in SF1 series,  had the same situation but it worked, it had the same TGA for air-to-air gun and for air-to-ground with a "twist" though: the model HAD a gun integrated in its fuselage (it was not a gunpod attached I mean like in our example from previous post). Settings in cockpit.ini are basically the same for SF2 as in SF1, so here are the lines I was speaking of:

[GunsightFront]
HasGunsight=TRUE
GunsightMilSize=45
GunsightName=su-24_sight.tga
GunsightRollTabsName=Su-24_Roll Tabs.tga
GunsightRangeBarName=su-27_rangebar.tga
AGGunsightName=none.tga
RangeBarOrientation=6TO12
RangeBarHasGunRange=FALSE
RangeBarUseWeaponRange=FALSE
RangeBarMax=6096.0
RangeBarMin=914.4
RangeBarMaxGun=2032.1
RangeBarMinGun=304.8
LeadComputing=True
MinLeadRange=300
MaxLeadRange=1300
DefaultLeadRange=500
MaxDepression=250
DefaultDepression=50

 

Does that help ? Maybe you have another idea how to approach the issue. I'm just saying. I tried to "copy" the settings but it doesn't work, unfortunately...My guess is that gunsight settings in cockpit.ini won't work with an attached GUNPOD... Am I mistaken?

Edited by UllyB

Share this post


Link to post
Share on other sites

Sorry if that's a dumb hint... But why don't you do some test with the Navy F-4J ? :smile:

Share this post


Link to post
Share on other sites

Because all the stock aircraft actually work...

  • Confused 1

Share this post


Link to post
Share on other sites
27 minutes ago, Wrench said:

Because all the stock aircraft actually work...

That's the reason to look at how it's done...

 

  • Thanks 1

Share this post


Link to post
Share on other sites

Yeap it works, thank you for the suggestion. It was not exactly what I was wished for but it will do. I wanted , initially to combine two gunsights, then I tried to use the same TGA for both gunsights etc.

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..