JAI T-28B Trojan

Here you can search for, request or display your military AI repaints for others to enjoy.
aerogator

Re: JAI T-28B Trojan

Post by aerogator »

I have the tailhook working sort-of. It comes down on final but does not stay down. Here is the code I'm using:

<part>
<name>anim_tail_hook</name>
<animation>
<parameter>
<code>(A:FLAPS HANDLE PERCENT,percent)</code>
<lag>50</lag>
</parameter>
</animation>
</part>

Keyframes are: 0 hook up, 50 hook down, 100 hook up. Not sure where I got those keyframes, they could be wrong. I can't really tell what position the flaps are in. If anyone can help, it would be appreciated. :)
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12400
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: JAI T-28B Trojan

Post by Firebird »

I am thinking that it could be simplified but I would ask whether you want the hook down on half flap or just full flap?
Also do you use xml flaps? As the code will only work for actually FDE generated flap settings.

The code will really depend on what you want. My gut feeling here is that you only need 50 frames as 51-100 are just reversing out the lowering off the hook. I think that the code should be returning 50 if your conditions are met for hook down or 0 if not.

The <code>(A:FLAPS HANDLE PERCENT,percent)</code> should be altered to either
<code>(A:FLAPS HANDLE PERCENT,percent) 0 ></code> if you just want the flaps to be lowered or
<code>(A:FLAPS HANDLE PERCENT,percent) 99 ></code> if you want the flaps full down before deployment.

Of course you can always do in between if you want to.

I hope I am making sense here.

What you currently get is that the frame is the percentage of the flap deployment. Flaps up frame 0, flaps half down frame 50 flaps full down frame 100.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
aerogator

Re: JAI T-28B Trojan

Post by aerogator »

Man! I'm too dense to understand that even if I wasn't taking a double handfull of pills every day :smt101 Tell me something to try. I don' think you can 'splain dose codes to me. :lol:

If I try one of the code suggestions, what happens to my keyframes? I think it would be good if when the flaps go to full on short final, the hook drops and then retracts when the flaps retract. I think that's the way it used to do.

Does changing these values in the .cfg file change the speed at which the flaps move?
[Reference Speeds]
flaps_up_stall_speed = 70 //Knots True (KTAS)
full_flaps_stall_speed = 60 //Knots True (KTAS)
cruise_speed = 203 //Knots True (KTAS)
max_indicated_speed = 180 //Red line (KIAS)

Thanks, :)
User avatar
Firebird
MAIW Admin
MAIW Admin
Posts: 12400
Joined: 11 Aug 2006, 21:04
Version: FS9
Location: EGLL

Re: JAI T-28B Trojan

Post by Firebird »

In which case Jake, it is quite easy. Reset your hook anim to 50 frames, 0 being up and 50 being down.

Then try this code <code>(A:FLAPS HANDLE PERCENT,percent) 99 > if{ 50 } else {0}</code>

This will mean that the hook will only come down with full flap and it will retract on a roller or overshoot, or at at least it will unless I have cocked up.
Steve
_______________________________________________________
Image
Quid Si Coelum Ruat
_______________________________________________________
aerogator

Re: JAI T-28B Trojan

Post by aerogator »

Thanks Steve! :) I'll try that. Thought about dropping when gear comes down but don't know how to do that or how to get it up after landing. :?
User avatar
RjSchreiber63
Second Lieutenant
Second Lieutenant
Posts: 17
Joined: 23 Jan 2013, 23:21
Version: FSX
Location: Pensacola, Fl

Re: JAI T-28B Trojan

Post by RjSchreiber63 »

I know it has been awhile but where can I download the latest and greatest version of the trojan?
Rob "Muckdog" Schreiber
Post Reply