Swaty Posted January 26, 2016 Posted January 26, 2016 (edited) Hello, I am working on a TARGET script for Bf-109 Κ. There is no documentation atm , only the comments you can see on editor. My set up is: Warthog + Cougar (Ι use only Z Axis for Rudder) + Simpeds (No brakes) + Track IR 5 The keys are the DCS default (except Machine Guns changed from SPACE to ENTER) Some examples: Machine Guns - Cannon: Only MG or only Cannon when TG1 pressed (depends on IO switch) and both when TG2 pressed // TG1 and TG2 MapKeyIO(&Joystick, TG1, R_ALT+SPC , ENT ); // S3 ΙΝ (Pressed) only Cannon - S3 Out only MG MapKey(&Joystick, TG2, CHAIN(ENT, R_ALT+SPC)); //Both Pump Primer ( One press and pumps 5 times automatically) So, you set primer by pressing 3-4 times the key and you sit back watching Warthog do it automatically! primer = CHAIN( DOWN++INS,D(1000), UP+INS,D(1000), DOWN++INS,D(1000), UP+INS,D(1000), DOWN++INS,D(1000), UP+INS,D(1000), DOWN++INS,D(1000), UP+INS,D(1000), DOWN++INS,D(1000), UP+INS,D(1000)); MapKey(&Throttle, APENG, REXEC(0, 1000, "ActKey(KEYON+primer);")); Start Engine (China Hat) Back: ask Ground Crew to Run inertial Starter, Front: one sec click forward open cover and when holding more more than 1 sec will start engine. MapKeyUMD(&Throttle, CHF,PULSE+ '0', PULSE+'0', TEMPO (HOME, L_WIN+HOME)); //Run inertial Starter (Ground Crew) MapKey(&Throttle, CHB, CHAIN(PULSE+'\\', D(),PULSE+F8, D(), PULSE+F4 ));DCS Bf-109K.rar Edited February 2, 2016 by Swaty documentation [sIGPIC][/sIGPIC] My Pit
Swaty Posted February 1, 2016 Author Posted February 1, 2016 The following part doesn't work as I want to! Working great at Battle Of Stalingrad but now here.... KeyAxis(&HCougar, RUDDER, 0,AXMAP2(LIST(0,90,10,100), L_CTL+'w', PULSE+'0', L_ALT+'w')); // Left and Right Wheel brake when pedals are at last 20% left or right Keeps brakes down and I perform a ground loop. On the other hand if I use "CHAIN", I don't have brakes at all! I am working on it. [sIGPIC][/sIGPIC] My Pit
Sokol1_br Posted February 1, 2016 Posted February 1, 2016 Probable because in BoS the "British/Russian" brake system: Press a lever in control column to brake both wheels and move the rudder bar for left/right to brake the wheel on this same side more and the other less work too for Luftwaffe planes and P-40. Or, is not need exclusively "toe brakes" to brake individual wheel in that planes (although can be used if available), a desirable feature for a game target for casual pilots with "3in1" joystick with twist rudder - then without "toe brakes" - and not fancy (and expensive) rudder pedals. :joystick:
Swaty Posted February 2, 2016 Author Posted February 2, 2016 In old foxy I had a function that when Shift was out (/O) simpeds were only rudder controls and when was in in (/I) were brakes AND rudder. For those with no separate braking system I just use a key or another axis. But in TARGET there is no "KeyAxisIO" function!! I have to try to build a new function! [sIGPIC][/sIGPIC] My Pit
Sokol1_br Posted February 2, 2016 Posted February 2, 2016 I can do similar thing with DCS Controls options: modifier and switches, and VKB T-Rudder uniaxial pedal. In the case using ScrlLk key as "switches". With ScrLk on, the rudder movement will send "ScrLk+Joy#_Bt1 or Bt3 (set in pedal firmware, and set in DCS as left/right brakes), then I have rudder and brake for taxi maneuvers, with ScrLk off only rudder.
Swaty Posted February 2, 2016 Author Posted February 2, 2016 I was trying the same as you did and finally I make it! Having brakes at the last 20% of the motion left and right was not a problem during taxiing. The problem was during take off where there was a delay. The brakes were still active for a sec or two even if you release the break and this situation usually drives the plane to a ground loop or the wing hitting the ground. The new line of code enables brakes only when SHIFT is pressed. KeyAxis(&HCougar, RUDDER, 'i',AXMAP2(3,L_CTL+'w',PULSE+'0',L_ALT+'w')); 'i' means SHIFT pressed. [sIGPIC][/sIGPIC] My Pit
Recommended Posts