Page 3 of 3
Re: JAI T-28B Trojan
Posted: 10 Jul 2013, 20:51
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.

Re: JAI T-28B Trojan
Posted: 10 Jul 2013, 21:33
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.
Re: JAI T-28B Trojan
Posted: 11 Jul 2013, 00:07
by aerogator
Man! I'm too dense to understand that even if I wasn't taking a double handfull of pills every day

Tell me something to try. I don' think you can 'splain dose codes to me.
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,

Re: JAI T-28B Trojan
Posted: 11 Jul 2013, 06:45
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.
Re: JAI T-28B Trojan
Posted: 11 Jul 2013, 14:51
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.

Re: JAI T-28B Trojan
Posted: 24 May 2017, 22:15
by RjSchreiber63
I know it has been awhile but where can I download the latest and greatest version of the trojan?