• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Fuel dump and burn

Messages
26
Country
australia
Trying to create a gauge to activate a fuel dump and burn effect on condition of the fuel dump being activated and the afterburners engaged.
Did this code which will turn on the effect.

(A:Turb eng1 n2, percent) 99 > { 1 (L:Fuel_Dump, bool) } ! and and @SMK_CTRL(2)

However, once the effect is on need either shutting the fuel dump switch off or disengaging the afterburners to switch the dump and burn effect off as well.

Any ideas on how to update the code so the fuel dump switch in the off position will stop the effect?
 
That looks like it came right out of our F-111 project from many years back.. If so, it relies on a whole bunch more to work correctly.
First off, this was made to be used in both accell/non-accell versions of FSX - a nightmare.
The code below includes a much better smoke control macro and is generic to any FSX accell aircraft using stock fuel dump and afterburner commands.
XML:
<Gauge Name="Generic Dumb and Burn" Version="1.0">

<!--
Commands required to activate this logic gauge:
<OPTIONAL based on aircraft.cfg entries> (>K:TOGGLE_AFTERBURNER<#>),
(>K:FUEL_DUMP_TOGGLE) -or-
1 (>K:FUEL_DUMP_SWITCH_SET)
0 (>K:FUEL_DUMP_SWITCH_SET)

aircraft.cfg -

[turbineenginedata]
afterburner_available= # // In the Flight Simulator X: Acceleration Expansion Pack SDK this has been extended to take a number, indicating the number of afterburner stages available.
afterburner_throttle_threshold= # // Percentage of throttle range when the afterburner engages.

[fuel]
fuel_dump_rate=#  //Percent of fuel that can be dumped per second.
-->

    <Macro Name="SMK_CTRL">if{ (A:SMOKE ENABLE:@1, bool) 0 == if{ @1 (>K:SMOKE_ON) } } els{ (A:SMOKE ENABLE:@1, bool) 0 != if{ @1 (>K:SMOKE_OFF) } }</Macro>
    <Update>
        (A:FUEL DUMP SWITCH, bool) (A:TURB ENG1 AFTERBURNER, bool) and @SMK_CTRL(2)
    </Update>
</Gauge>
 
Last edited:
Thanks Roman for that code. Work perfect now!

Yes, the smoke control worked great, and just trying to add this gauge to the Virtavia version of the F-111.
Minor update, but a bit more realistic than punching an extra key to get the effect to kick in.
 
Back
Top