Jump to content

Warthog script for Hornet C


Recommended Posts

Can anyone post a script they are using please?  The tmc file please and thanks.

 

I dont need ideas etc, I just wanted the format so I dont have to type it all out by hand.

 

Also, where can I find a list of the throttle button names please for the scripting?


Edited by Mower

My monitor replacement fundraiser...PayPal mech.driver@rogers.com

Link to post
Share on other sites

I have one script that i use for every aircraft; I just use it to make sure all the DX buttons are working as i expect; and then i just map the DX buttons in game

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Thrustmaster Warthog + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

 

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to post
Share on other sites

This uses the 128Key library but otherwise has every button position so should help, its potentially an old version as I dont see my lighting commands but it was all I could reference at work so ping me if you want the current version and I'll pick it up tonight:

include "targetdx128.tmh"
int main()
{

		Configure(&T16000, MODE_EXCLUDED);
		Configure(&TFRPRudder, MODE_EXCLUDED);
		Configure(&T16000L, MODE_EXCLUDED);
		Configure(&TWCSThrottle, MODE_EXCLUDED);
	if(Init(&EventHandle)) return 1;
	SetKBRate(32, 50);
	SetKBLayout(KB_ENG);
	SetShiftButton(0, 0, 0, 0, 0, 0);
	MapKey(&Throttle, SC, DX1);
	MapKey(&Throttle, MSU, DX2);
	MapKey(&Throttle, MSD, DX3);
	MapKey(&Throttle, MSL, DX4);
	MapKey(&Throttle, MSR, DX5);
	MapKey(&Throttle, MSP, DX6);
	MapKey(&Throttle, SPDF, DX7);
	MapKey(&Throttle, SPDM, PULSE+DX8);
	MapKey(&Throttle, SPDB, DX9);
	MapKey(&Throttle, BSF, DX10);
	MapKey(&Throttle, BSM, PULSE+DX11);
	MapKey(&Throttle, BSB, DX12);
	MapKey(&Throttle, CHF, DX13);
	MapKey(&Throttle, CHM, PULSE+DX14);
	MapKey(&Throttle, CHB, DX15);
	MapKey(&Throttle, PSF, PULSE+DX16);
	MapKey(&Throttle, PSM, PULSE+DX17);
	MapKey(&Throttle, PSB, PULSE+DX18);
	MapKey(&Throttle, CSU, DX19);
	MapKey(&Throttle, CSD, DX20);
	MapKey(&Throttle, CSL, DX21);
	MapKey(&Throttle, CSR, DX22);
	MapKey(&Throttle, LTB, DX23);
	MapKey(&Throttle, EFLNORM, PULSE+DX24);
	MapKey(&Throttle, EFLOVER, PULSE+DX25);
	MapKey(&Throttle, EFRNORM, PULSE+DX26);
	MapKey(&Throttle, EFROVER, PULSE+DX27);
	MapKey(&Throttle, EOLIGN, DX28);
	MapKey(&Throttle, EOLNORM, PULSE+DX29);
	MapKey(&Throttle, EOLMOTOR,DX30);
	MapKey(&Throttle, EORIGN, DX31);
	MapKey(&Throttle, EORNORM, PULSE+DX32);
	MapKey(&Throttle, EORMOTOR, PULSE+DX33);
	MapKey(&Throttle, APUON, DX34);
	MapKey(&Throttle, APUOFF, PULSE+DX35);
	MapKey(&Throttle, LDGH, DX36);
	MapKey(&Throttle, FLAPU, DX37);
	MapKey(&Throttle, FLAPM, PULSE+DX38);
	MapKey(&Throttle, FLAPD, DX39);
	MapKey(&Throttle, EACON, PULSE+DX40);
	MapKey(&Throttle, EACOFF, PULSE+DX41);
	MapKey(&Throttle, RDRNRM, PULSE+DX42);
	MapKey(&Throttle, RDRDIS, PULSE+DX43);
	MapKey(&Throttle, APPAT, DX44);
	MapKey(&Throttle, APAH, PULSE+DX45);
	MapKey(&Throttle, APALT, DX46);
	MapKey(&Throttle, APENG, DX47);
	MapKey(&Throttle, IDLELON, PULSE+DX48);
	MapKey(&Throttle, IDLERON, PULSE+DX49);
	MapAxis(&Throttle, SCX, DX_XROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&Throttle, SCX, 0, 0, 0, 0, 0);
	MapAxis(&Throttle, SCY, DX_YROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&Throttle, SCY, 0, 0, 0, 0, 0);
	MapAxis(&Throttle, THR_RIGHT, DX_Z_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&Throttle, THR_RIGHT, 0, 0, 0, 0, 0);
	MapAxis(&Throttle, THR_LEFT, DX_ZROT_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&Throttle, THR_LEFT, 0, 0, 0, 0, 0);
	MapAxis(&Throttle, THR_FC, DX_SLIDER_AXIS, AXIS_NORMAL, MAP_ABSOLUTE);
	SetSCurve(&Throttle, THR_FC, 0, 0, 0, 0, 0);
}

int EventHandle(int type, alias o, int x)
{
	DefaultMapping(&o, x);
}

 

  • Like 2

Hornet, Super Carrier, Warthog & (II), Mustang, Sabre, Combined Arms, FC3, Nevada, Gulf, Normandy, Syria AH-6J

i9 10900K @ 5.0GHz, Gigabyte Z490 Vision G, Cooler Master ML120L, Gigabyte RTX3080 OC Gaming 10Gb, 64GB RAM, Reverb G2 @ 2480x2428, TM Warthog, Saitek pedals & throttle, DIY collective, TrackIR4, Cougar MFDs, vx3276-2k

Combat Wombat's Airfield & Enroute Maps and Planning Tools

 

cw1.png

Link to post
Share on other sites
20 hours ago, Mower said:

Can anyone post a script they are using please?  The tmc file please and thanks.

I dont need ideas etc, I just wanted the format so I dont have to type it all out by hand.

Also, where can I find a list of the throttle button names please for the scripting?

 

You are one hell of a lazy dude... LOL.

Target includes a template.tmc file. This is an "empty" tmc with all throttle, joystick and mfd names.

  • Like 1

Win10 Pro 64-bit, i7-4770K @ 4.5 GHz, Corsair H100i, AsRock Extreme4, ASUS Strix 1080Ti OC 11GB, 32 GB DDR3 G.Skill 2400. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base & hegykc MFG Crosswind modded pedals, TrackIR4, Oculus Rift S.

Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance!

Link to post
Share on other sites
Posted (edited)
48 minutes ago, Lange_666 said:

You are one hell of a lazy dude... LOL.

 

Here's what Ive learned in that regard:  if I wait long enough, my laziness is usually rewarded.  Im lazy but patient.  Thanks folks.

 

BTW, is there a list somewhere of what the Throttle buttons are?  Not the DX ones but the names?


Edited by Mower

My monitor replacement fundraiser...PayPal mech.driver@rogers.com

Link to post
Share on other sites

They are all mapped in game... chucks guide is a good place to start to look for the mappings

SYSTEM SPECS: Hardware Intel Corei7-9700K @ 5.1 GHz, 32Gb RAM, EVGA 3090 XC3, Dell S2716DG, Thrustmaster Warthog + MFG Crosswinds V2, HP Reverb G2 @ 2836 x 2768
SOFTWARE: Microsoft Windows 10 Pro x64, VoiceAttack & VIACOM PRO, TacView

VR Stuff:   My Settings for 3090 and G2  My Settings for 1080ti  Shaders MOD for VR  My variant of Kegetys mod with clear water and also IC PASS for current beta & stable, Patch Status

 

1569924735_WildcardsBadgerFAASig.jpg.dbb8c2a337e37c2bfb12855f86d70fd5.jpg

Link to post
Share on other sites
7 hours ago, Mower said:

BTW, is there a list somewhere of what the Throttle buttons are?  Not the DX ones but the names?

 

Do you mean the throttle buttons/switches like they are named by Thrustmaster?

Then the list of shu77 has them all. And you can find them in the template.tmc file that comes with Target, like i mentioned.

 

If that is not what you mean, maybe a little extra effort to explain what you really need/want would be helpfull... (lazy bastard) .

Win10 Pro 64-bit, i7-4770K @ 4.5 GHz, Corsair H100i, AsRock Extreme4, ASUS Strix 1080Ti OC 11GB, 32 GB DDR3 G.Skill 2400. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base & hegykc MFG Crosswind modded pedals, TrackIR4, Oculus Rift S.

Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance!

Link to post
Share on other sites
3 hours ago, Lange_666 said:

Do you mean the throttle buttons/switches like they are named by Thrustmaster?

 

Precisely...for example, what button on the throttle is "BSF"?  Surely there is a picture with the button names around somewhere.

My monitor replacement fundraiser...PayPal mech.driver@rogers.com

Link to post
Share on other sites

SC: Slew Cursor Press

MSU: Mic Switch Up

SPDF: Speedbrake Forward

BSF: Boat Switch Forward

CHF: China Hat Forward

PSF: Pinky Switch Forward

CSU: Control Switch Up

LTB: Left Throttle Button

EFLOVER: Engine Left Overide

EFLNORM: Engine Left Fuel Norm

EOLIGN: Engine Left IGN

EOLMOTOR: Engine Left Motor

APUON: APU Start

LDGH: Landing Gear Button

FLAPU: FlapsUp

EACON: EAC ARM

RDRNRM: Radar Alt NRM

APPAT: AutoPilot Path

APAH: AutoPilot ALT/HDG

APALT: AutoPilot ALT

APENG: AutoPilot Engage/Disengage

IDLELON: Left Throttle Idle Position.

 

I'm sure you can figure out the other derivates yourself...

 


Edited by Lange_666

Win10 Pro 64-bit, i7-4770K @ 4.5 GHz, Corsair H100i, AsRock Extreme4, ASUS Strix 1080Ti OC 11GB, 32 GB DDR3 G.Skill 2400. Monitors: LG 27GL850-B27 2560x1440 + Samsung SyncMaster 2443 1920x1200, HOTAS: Warthog with Virpil WarBRD base & hegykc MFG Crosswind modded pedals, TrackIR4, Oculus Rift S.

Personal Wish List: A6 Intruder, Vietnam theater, decent ATC module, better VR performance!

Link to post
Share on other sites
16 hours ago, Mower said:

 

Precisely...for example, what button on the throttle is "BSF"?  Surely there is a picture with the button names around somewhere.

 

When you install Target, it has a subfolder called Resources with the diagrams for Cougar and Warthog showing the button names.

i386DX40@42 MHz w/i387 CP, 4 MB RAM (8*512 kB), Trident 8900C 1 MB w/16-bit RAMDAC ISA, Quantum 340 MB UDMA33, SB 16, DOS 6.22 w/QEMM + Win3.11CE, Quickshot 1btn 2axis, Numpad as hat. 2 FPH on a good day, 1 FPH avg.

 

DISCLAIMER: My posts are still absolutely useless. Just finding excuses not to learn the F-14 (HB's Swansong?).

 

Annoyed by my posts? Please consider donating. Once the target sum is reached, I'll be off to somewhere nice I promise not to post from. I'd buy that for a dollar!

Link to post
Share on other sites
6 hours ago, Dudikoff said:

 

When you install Target, it has a subfolder called Resources with the diagrams for Cougar and Warthog showing the button names.

 

Good call brother thanks.

My monitor replacement fundraiser...PayPal mech.driver@rogers.com

Link to post
Share on other sites
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...