Board index FlightGear Development Aircraft

F-16 upgraded to 'production' status

Questions and discussion about creating aircraft. Flight dynamics, 3d models, cockpits, systems, animation, textures.

Re: F-16 upgraded to 'production' status

Postby V12 » Wed Oct 23, 2019 5:55 am

I found small graphic bug :

J Maverick 16 wrote in Tue Oct 15, 2019 1:06 pm:ImageRegards, Mav


Czech decal has wrong rotation - it should look like this :

Image
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: F-16 upgraded to 'production' status

Postby J Maverick 16 » Wed Oct 23, 2019 9:31 am

V12 wrote in Wed Oct 23, 2019 5:55 am:I found small graphic bug :

Czech decal has wrong rotation

Hi, what you're looking at is a Dutch RNLAF 313sqn livery which has that roundel similar to the Czech, but Czech AF has no F-16s, only Gripens and L-159s. :)
Regards, Mav
Breakin' the sound barrier every day!

Scenery designer, basic livery maker, aircraft developer (KC-137R, F-16, A330, C-32J, MH-60)
Flying with Thrustmaster FCS Flight Pack + MFD Cougar
Aviation media on IG at: @j_maverick16.aviation
User avatar
J Maverick 16
 
Posts: 910
Joined: Sat Feb 01, 2014 7:26 pm
Location: Northern Italy
Callsign: J-Mav16
Version: 2020.3.19
OS: macOS

Re: F-16 upgraded to 'production' status

Postby OE-LML » Wed Oct 23, 2019 1:01 pm

Hallo!

Short question: Where do I get the latest version from?

CU.
OE-LML
 
Posts: 88
Joined: Wed Nov 14, 2018 11:18 pm
Location: irgendwo in der FIR LOVV

Re: F-16 upgraded to 'production' status

Postby J Maverick 16 » Wed Oct 23, 2019 2:49 pm

OE-LML wrote in Wed Oct 23, 2019 1:01 pm:Short question: Where do I get the latest version from?

Hi, I've linked it two pages ago, but will repost it here: https://github.com/NikolaiVChr/f16 (latest update less than 1 hour ago).
Remember to rename the folder to "f16" after unzipping it if you don't use Git.
Enjoy!
Cheers, Mav
Breakin' the sound barrier every day!

Scenery designer, basic livery maker, aircraft developer (KC-137R, F-16, A330, C-32J, MH-60)
Flying with Thrustmaster FCS Flight Pack + MFD Cougar
Aviation media on IG at: @j_maverick16.aviation
User avatar
J Maverick 16
 
Posts: 910
Joined: Sat Feb 01, 2014 7:26 pm
Location: Northern Italy
Callsign: J-Mav16
Version: 2020.3.19
OS: macOS

Re: F-16 upgraded to 'production' status

Postby OE-LML » Wed Oct 23, 2019 3:19 pm

Thank you!
I didn't see it ... :mrgreen: :mrgreen: :mrgreen:
OE-LML
 
Posts: 88
Joined: Wed Nov 14, 2018 11:18 pm
Location: irgendwo in der FIR LOVV

Re: F-16 upgraded to 'production' status

Postby Thorsten » Wed Oct 23, 2019 4:20 pm

I've made some progress with the Mk 84 explosion today, as well as different patterns for a hit into the water - I'll develop and test this a bit more and then let you guys have the result - then you can decide how you'll merge it.

Oh, and it seems buildings of all sorts yield a NIL in geodinfo - that we're able to detect - so we can actually place fire rather than a crater when a building has been bombed.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: F-16 upgraded to 'production' status

Postby J Maverick 16 » Wed Oct 23, 2019 7:21 pm

Thorsten wrote in Wed Oct 23, 2019 4:20 pm:I've made some progress with the Mk 84 explosion today, as well as different patterns for a hit into the water - I'll develop and test this a bit more and then let you guys have the result - then you can decide how you'll merge it.

Amazing! Of course can't wait to see some pictures :wink:

Thorsten wrote in Wed Oct 23, 2019 4:20 pm:Oh, and it seems buildings of all sorts yield a NIL in geodinfo - that we're able to detect - so we can actually place fire rather than a crater when a building has been bombed.

That's great news indeed, will definitely improve what we have right now for MP assets bombing.

Lately both Necolatis and me have made progress on the Hydra 70 rockets, they still require some tweaking but working good.
Regards, Mav
Breakin' the sound barrier every day!

Scenery designer, basic livery maker, aircraft developer (KC-137R, F-16, A330, C-32J, MH-60)
Flying with Thrustmaster FCS Flight Pack + MFD Cougar
Aviation media on IG at: @j_maverick16.aviation
User avatar
J Maverick 16
 
Posts: 910
Joined: Sat Feb 01, 2014 7:26 pm
Location: Northern Italy
Callsign: J-Mav16
Version: 2020.3.19
OS: macOS

Re: F-16 upgraded to 'production' status

Postby V12 » Wed Oct 23, 2019 7:25 pm

J Maverick 16 wrote in Wed Oct 23, 2019 9:31 am:Hi, what you're looking at is a Dutch RNLAF 313sqn livery which has that roundel similar to the Czech, but Czech AF has no F-16s, only Gripens and L-159s. :)
Regards, Mav

I know that Czech has not have F16. But I don't know that it is Dutch decal. Sorry for my mistake :oops:
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: F-16 upgraded to 'production' status

Postby J Maverick 16 » Wed Oct 23, 2019 7:42 pm

No problem it's easy to mistake them. Actually IIRC before I did the RNLAF liv pack rework the roundel was at the wrong angle actually looking like a Czech one.

V12 wrote in Wed Oct 23, 2019 7:25 pm:I know that Czech has not have F16.

The majority of liveries we feature are from existing serial numbers which did indeed have or had that scheme, hence requiring a through check for each one which was/is added. The of course we have a few fictional schemes (they are declared such in the livery name) made by/for OPRF pilots as well.
Regards, Mav
Breakin' the sound barrier every day!

Scenery designer, basic livery maker, aircraft developer (KC-137R, F-16, A330, C-32J, MH-60)
Flying with Thrustmaster FCS Flight Pack + MFD Cougar
Aviation media on IG at: @j_maverick16.aviation
User avatar
J Maverick 16
 
Posts: 910
Joined: Sat Feb 01, 2014 7:26 pm
Location: Northern Italy
Callsign: J-Mav16
Version: 2020.3.19
OS: macOS

Re: F-16 upgraded to 'production' status

Postby V12 » Wed Oct 23, 2019 8:47 pm

I have one stupid ask - how to use VOR / TACAN navigation ?
Fly high, fly fast - fly Concorde !
V12
 
Posts: 2757
Joined: Thu Jan 12, 2017 5:27 pm
Location: LZIB
Callsign: BAWV12

Re: F-16 upgraded to 'production' status

Postby Thorsten » Thu Oct 24, 2019 3:29 pm

Okay, I got the Mk 82 and Mk 84 visuals sorted out - here's my final result of a Mk 82 from close-up:

Image

and a near miss into the water:

Image

Sample weapons code with the explosions for the Mk 82 #200


Code: Select all
<?xml version="1.0"?>



<PropertyList>

   <name>MK-82</name>
   <path>MK-82.ac</path>

   <effect>
         <inherits-from>Aircraft/f16/Models/Effects/fuselage/model-combined-fuselage</inherits-from>
         <parameters>
             <metallic type="float">0.80</metallic>
             <ambient-factor type="float">0.0</ambient-factor>
             <rain-enabled type="int">0</rain-enabled>
             <ambient-correction type="float">0.00</ambient-correction>
             <reflection-enabled type="int">0</reflection-enabled>
         </parameters>
         <object-name>MK-82_Shell</object-name>
         <object-name>MK-82_TailFins</object-name>
         <object-name>MK-82_Detonator</object-name>
         <object-name>MK-82_Wiring</object-name>
         <object-name>MK-82_Mounts</object-name>
     </effect>

   <animation>
      <type>select</type>
      <object-name>MK-82_Shell</object-name>
         <object-name>MK-82_TailFins</object-name>
         <object-name>MK-82_Detonator</object-name>>
         <object-name>MK-82_Mounts</object-name>
      <condition>
         <property>payload/armament/mk-82/flags/msl-id-200</property>
      </condition>
   </animation>

   <animation>
      <type>select</type>
         <object-name>MK-82_Wiring</object-name>
      <condition>
      <not>
         <property>payload/armament/mk-82/flags/msl-id-200</property>
      </not>
      </condition>
   </animation>

   <animation>
        <type>rotate</type>
        <object-name>MK-82_Detonator</object-name>
        <factor>900</factor>
        <property>sim/time/elapsed-sec</property>
        <center>
         <x-m>0</x-m>
          <y-m>0</y-m>
          <z-m>0</z-m>
        </center>
        <axis>
          <x>1</x>
          <y>0</y>
          <z>0</z>
        </axis>
    </animation>
   


   <particlesystem>
         <name>explosion-inner</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">true</emissive>
         <lighting type="bool">false</lighting>

         <condition>
               <property>payload/armament/mk-82/flags/explode-id-200</property>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>-180</theta-min-deg>
           <theta-max-deg>180</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>200</value>
             <spread>40</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>0</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>20</value>
             <spread>10</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 1 </value></alpha>
             </color>
             <size>
               <value>8</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 0.5 </value></green>
               <blue><value>  0.2 </value></blue>
               <alpha><value> 0.7 </value></alpha>
             </color>
             <size>
               <value>10</value>
             </size>
           </end>

           <life-sec>
             <value>0.4</value>
           </life-sec>
             
           <mass-kg>  5 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>

    <particlesystem>
         <name>explosion-outer</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">true</emissive>
         <lighting type="bool">false</lighting>

         <condition>
               <property>payload/armament/mk-82/flags/explode-id-200</property>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>-180</theta-min-deg>
           <theta-max-deg>180</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>500</value>
             <spread>80</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>0</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>60</value>
             <spread>10</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 1 </value></alpha>
             </color>
             <size>
               <value>6</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 0.5 </value></green>
               <blue><value>  0.2 </value></blue>
               <alpha><value> 0.7 </value></alpha>
             </color>
             <size>
               <value>20</value>
             </size>
           </end>

           <life-sec>
             <value>1.0</value>
           </life-sec>
             
           <mass-kg>  5 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>

      <particlesystem>
         <name>explosion-smoke-inner</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
             <and>
               <property>payload/armament/mk-82/flags/explode-smoke-id-200</property>
             <not>
                <property>payload/armament/mk-82/flags/explode-water-id-200</property>
             </not>
             </and>
         </condition>
      
         
         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>35</theta-min-deg>
           <theta-max-deg>65</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>350</value>
             <spread>100</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>30</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>300</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   0.3 </value></red>
               <green><value> 0.3 </value></green>
               <blue><value>  0.25 </value></blue>
               <alpha><value> 1.0 </value></alpha>
             </color>
             <size>
               <value>4</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   0.4 </value></red>
               <green><value> 0.4 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 0.1 </value></alpha>
             </color>
             <size>
               <value>10</value>
             </size>
           </end>

           <life-sec>
             <value>20</value>
           </life-sec>
             
           <mass-kg>  8.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>



      <particlesystem>
         <name>explosion-smoke-outer</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
             <and>
               <property>payload/armament/mk-82/flags/explode-smoke-id-200</property>
             <not>
                <property>payload/armament/mk-82/flags/explode-water-id-200</property>
             </not>
             </and>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>0</theta-min-deg>
           <theta-max-deg>50</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>250</value>
             <spread>200</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>0</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>10</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   0.3 </value></red>
               <green><value> 0.3 </value></green>
               <blue><value>  0.25 </value></blue>
               <alpha><value> 1.0 </value></alpha>
             </color>
             <size>
               <value>20</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   0.4 </value></red>
               <green><value> 0.4 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 0.5 </value></alpha>
             </color>
             <size>
               <value>40</value>
             </size>
           </end>

           <life-sec>
             <value>30</value>
           </life-sec>
             
           <mass-kg>  5.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>

       <particlesystem>
         <name>explosion-debris</name>
         <texture>../lava.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
          <and>
             <property>payload/armament/mk-82/flags/explode-id-200</property>
          <not>
             <property>payload/armament/mk-82/flags/explode-water-id-200</property>
           </not>
          </and>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>35</theta-min-deg>
           <theta-max-deg>55</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>320</value>
             <spread>250</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>100</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>300</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>300</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   0.2 </value></red>
               <green><value> 0.2 </value></green>
               <blue><value>  0.2 </value></blue>
               <alpha><value> 1.0 </value></alpha>
             </color>
             <size>
               <value>0.5</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   0.2 </value></red>
               <green><value> 0.2 </value></green>
               <blue><value>  0.2 </value></blue>
               <alpha><value> 0.1 </value></alpha>
             </color>
             <size>
               <value>0.5</value>
             </size>
           </end>

           <life-sec>
             <value>10</value>
           </life-sec>
             
           <mass-kg>  15.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>


      <particlesystem>
         <name>explosion-water-inner</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
          <and>
             <property>payload/armament/mk-82/flags/explode-id-200</property>
             <property>payload/armament/mk-82/flags/explode-water-id-200</property>
          </and>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>0</theta-min-deg>
           <theta-max-deg>5</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>450</value>
             <spread>450</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>-30</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>30</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>800</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  1.0 </value></blue>
               <alpha><value> 0.5 </value></alpha>
             </color>
             <size>
               <value>5.0</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  1.0 </value></blue>
               <alpha><value> 0.2 </value></alpha>
             </color>
             <size>
               <value>2.5</value>
             </size>
           </end>

           <life-sec>
             <value>20</value>
           </life-sec>
             
           <mass-kg>  15.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>


      <particlesystem>
         <name>explosion-water-outer</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
          <and>
             <property>payload/armament/mk-82/flags/explode-smoke-id-200</property>
             <property>payload/armament/mk-82/flags/explode-water-id-200</property>
          </and>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>0</theta-min-deg>
           <theta-max-deg>70</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>120</value>
             <spread>80</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>-50</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>50</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>80</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  1.0 </value></blue>
               <alpha><value> 0.5 </value></alpha>
             </color>
             <size>
               <value>10.0</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  1.0 </value></blue>
               <alpha><value> 0.2 </value></alpha>
             </color>
             <size>
               <value>18.0</value>
             </size>
           </end>

           <life-sec>
             <value>18</value>
           </life-sec>
             
           <mass-kg>  8.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>      
      
   <animation>
        <type>rotate</type>
        <object-name>explosion-smoke-inner</object-name>
      <object-name>explosion-smoke-outer</object-name>
      <offset-deg>0</offset-deg>
        <factor>1</factor>
        <property>payload/armament/mk-82/flags/explode-angle</property>      
        <center>
         <x-m>0</x-m>
          <y-m>0</y-m>
          <z-m>0</z-m>
        </center>
        <axis>
          <x>1</x>
          <y>0</y>
          <z>0</z>
        </axis>
    </animation>

   <animation>
        <object-name>MK-82_Shell</object-name>
         <object-name>MK-82_TailFins</object-name>
         <object-name>MK-82_Detonator</object-name>
         <object-name>MK-82_Wiring</object-name>
         <object-name>MK-82_Mounts</object-name>
        <enable-hot type="bool">false</enable-hot>
    </animation>

</PropertyList>


As you can see, there's five components to the default explosion to give a nice dynamics, and two additional components to take care of water hits.

Here's the sample Mk 84 # 200

Code: Select all
<?xml version="1.0"?>



<PropertyList>

   <name>MK-84</name>
   <path>MK-84.ac</path>

   <effect>
         <inherits-from>Aircraft/f16/Models/Effects/fuselage/model-combined-fuselage</inherits-from>
         <parameters>
             <metallic type="float">0.80</metallic>
             <ambient-factor type="float">0.0</ambient-factor>
             <rain-enabled type="int">0</rain-enabled>
             <ambient-correction type="float">0.00</ambient-correction>
             <reflection-enabled type="int">0</reflection-enabled>
         </parameters>
         <object-name>MK-84_Shell</object-name>
         <object-name>MK-84_TailFins</object-name>
         <object-name>MK-84_Detonator</object-name>
         <object-name>MK-84_Wiring</object-name>
         <object-name>MK-84_Mounts</object-name>
     </effect>

   <animation>
      <type>select</type>
      <object-name>MK-84_Shell</object-name>
         <object-name>MK-84_TailFins</object-name>
         <object-name>MK-84_Detonator</object-name>>
         <object-name>MK-84_Mounts</object-name>
      <condition>
         <property>payload/armament/mk-84/flags/msl-id-200</property>
      </condition>
   </animation>

   <animation>
      <type>select</type>
         <object-name>MK-84_Wiring</object-name>
      <condition>
      <not>
         <property>payload/armament/mk-84/flags/msl-id-200</property>
      </not>
      </condition>
   </animation>

   <animation>
        <type>rotate</type>
        <object-name>MK-84_Detonator</object-name>
        <factor>900</factor>
        <property>sim/time/elapsed-sec</property>
        <center>
         <x-m>0</x-m>
          <y-m>0</y-m>
          <z-m>0</z-m>
        </center>
        <axis>
          <x>1</x>
          <y>0</y>
          <z>0</z>
        </axis>
    </animation>
   
   

   <particlesystem>
         <name>explosion-inner</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">true</emissive>
         <lighting type="bool">false</lighting>

         <condition>
               <property>payload/armament/mk-84/flags/explode-id-200</property>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>-180</theta-min-deg>
           <theta-max-deg>180</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>400</value>
             <spread>60</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>0</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>20</value>
             <spread>10</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 1 </value></alpha>
             </color>
             <size>
               <value>12</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 0.5 </value></green>
               <blue><value>  0.2 </value></blue>
               <alpha><value> 0.7 </value></alpha>
             </color>
             <size>
               <value>16</value>
             </size>
           </end>

           <life-sec>
             <value>0.8</value>
           </life-sec>
             
           <mass-kg>  6 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>

    <particlesystem>
         <name>explosion-outer</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">true</emissive>
         <lighting type="bool">false</lighting>

         <condition>
               <property>payload/armament/mk-84/flags/explode-id-200</property>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>-180</theta-min-deg>
           <theta-max-deg>180</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>700</value>
             <spread>120</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>0</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>60</value>
             <spread>10</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 1 </value></alpha>
             </color>
             <size>
               <value>10</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 0.5 </value></green>
               <blue><value>  0.2 </value></blue>
               <alpha><value> 0.7 </value></alpha>
             </color>
             <size>
               <value>28</value>
             </size>
           </end>

           <life-sec>
             <value>2.0</value>
           </life-sec>
             
           <mass-kg>  6 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>

      <particlesystem>
         <name>explosion-smoke-inner</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
          <and>
               <property>payload/armament/mk-84/flags/explode-id-200</property>
          <not>
               <property>payload/armament/mk-84/flags/explode-water-id-200</property>
           </not>
          </and>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>40</theta-min-deg>
           <theta-max-deg>60</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>550</value>
             <spread>50</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>30</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>300</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   0.3 </value></red>
               <green><value> 0.3 </value></green>
               <blue><value>  0.25 </value></blue>
               <alpha><value> 1.0 </value></alpha>
             </color>
             <size>
               <value>8</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   0.4 </value></red>
               <green><value> 0.4 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 0.1 </value></alpha>
             </color>
             <size>
               <value>16</value>
             </size>
           </end>

           <life-sec>
             <value>25</value>
           </life-sec>
             
           <mass-kg>  12.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>



      <particlesystem>
         <name>explosion-smoke-outer</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
         <and>
               <property>payload/armament/mk-84/flags/explode-smoke-id-200</property>
          <not>
               <property>payload/armament/mk-84/flags/explode-water-id-200</property>
           </not>
          </and>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>0</theta-min-deg>
           <theta-max-deg>50</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>400</value>
             <spread>200</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>0</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>10</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   0.3 </value></red>
               <green><value> 0.3 </value></green>
               <blue><value>  0.25 </value></blue>
               <alpha><value> 1.0 </value></alpha>
             </color>
             <size>
               <value>30</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   0.4 </value></red>
               <green><value> 0.4 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 0.5 </value></alpha>
             </color>
             <size>
               <value>60</value>
             </size>
           </end>

           <life-sec>
             <value>35</value>
           </life-sec>
             
           <mass-kg>  7.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>


      <particlesystem>
         <name>explosion-debris</name>
         <texture>../lava.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
          <and>
               <property>payload/armament/mk-84/flags/explode-id-200</property>
          <not>
               <property>payload/armament/mk-84/flags/explode-water-id-200</property>
           </not>
          </and>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>35</theta-min-deg>
           <theta-max-deg>55</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>350</value>
             <spread>250</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>100</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>300</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>500</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   0.2 </value></red>
               <green><value> 0.2 </value></green>
               <blue><value>  0.2 </value></blue>
               <alpha><value> 1.0 </value></alpha>
             </color>
             <size>
               <value>0.5</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   0.2 </value></red>
               <green><value> 0.2 </value></green>
               <blue><value>  0.2 </value></blue>
               <alpha><value> 0.1 </value></alpha>
             </color>
             <size>
               <value>0.5</value>
             </size>
           </end>

           <life-sec>
             <value>10</value>
           </life-sec>
             
           <mass-kg>  15.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>


      <particlesystem>
         <name>explosion-water-inner</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
          <and>
               <property>payload/armament/mk-84/flags/explode-id-200</property>
               <property>payload/armament/mk-84/flags/explode-water-id-200</property>
          </and>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>0</theta-min-deg>
           <theta-max-deg>3</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>650</value>
             <spread>650</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>-30</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>30</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>1200</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  1.0 </value></blue>
               <alpha><value> 0.5 </value></alpha>
             </color>
             <size>
               <value>10.0</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  1.0 </value></blue>
               <alpha><value> 0.2 </value></alpha>
             </color>
             <size>
               <value>10.0</value>
             </size>
           </end>

           <life-sec>
             <value>25</value>
           </life-sec>
             
           <mass-kg>  20.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>


      <particlesystem>
         <name>explosion-water-outer</name>
         <texture>../smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>

         <condition>
          <and>
               <property>payload/armament/mk-84/flags/explode-smoke-id-200</property>
               <property>payload/armament/mk-84/flags/explode-water-id-200</property>
          </and>
         </condition>

         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>15</theta-min-deg>
           <theta-max-deg>70</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>180</value>
             <spread>100</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>-50</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>50</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>80</value>
             <spread>5</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  1.0 </value></blue>
               <alpha><value> 0.5 </value></alpha>
             </color>
             <size>
               <value>15.0</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   1.0 </value></red>
               <green><value> 1.0 </value></green>
               <blue><value>  1.0 </value></blue>
               <alpha><value> 0.2 </value></alpha>
             </color>
             <size>
               <value>35.0</value>
             </size>
           </end>

           <life-sec>
             <value>23</value>
           </life-sec>
             
           <mass-kg>  12.0 </mass-kg>
           <radius-m> 0.5 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>

   <animation>
        <type>rotate</type>
        <object-name>explosion-smoke-inner</object-name>
      <object-name>explosion-smoke-outer</object-name>
      <offset-deg>0</offset-deg>
        <factor>1</factor>
        <property>payload/armament/mk-84/flags/explode-angle</property>      
        <center>
         <x-m>0</x-m>
          <y-m>0</y-m>
          <z-m>0</z-m>
        </center>
        <axis>
          <x>1</x>
          <y>0</y>
          <z>0</z>
        </axis>
    </animation>      
      
   <animation>
        <object-name>MK-84_Shell</object-name>
         <object-name>MK-84_TailFins</object-name>
         <object-name>MK-84_Detonator</object-name>
         <object-name>MK-84_Wiring</object-name>
         <object-name>MK-84_Mounts</object-name>
        <enable-hot type="bool">false</enable-hot>
    </animation>

</PropertyList>


Basically the fireball is more long-lived and the whole blast is about twice as large (there's four times as much explosive, and I believe the shock strength would go with an inverse square law).

The relevant part of the missile script is changed as

Code: Select all
   animation_flags_props: func {
      # Create animation flags properties.
      var path_base = "payload/armament/"~me.type_lc~"/flags/";

      var msl_path = path_base~"msl-id-" ~ me.ID;
      me.msl_prop = props.globals.initNode( msl_path, TRUE, "BOOL", TRUE);
      me.msl_prop.setBoolValue(TRUE);# this is cause it might already exist, and so need to force value

      var smoke_path = path_base~"smoke-id-" ~ me.ID;
      me.smoke_prop = props.globals.initNode( smoke_path, FALSE, "BOOL", TRUE);

      var explode_path = path_base~"explode-id-" ~ me.ID;
      me.explode_prop = props.globals.initNode( explode_path, FALSE, "BOOL", TRUE);

      var explode_smoke_path = path_base~"explode-smoke-id-" ~ me.ID;
      me.explode_smoke_prop = props.globals.initNode( explode_smoke_path, FALSE, "BOOL", TRUE);
      
      var explode_water_path = path_base~"explode-water-id-" ~ me.ID;
      me.explode_water_prop = props.globals.initNode( explode_water_path, FALSE, "BOOL", TRUE);
      
      var explode_angle_path = path_base~"explode-angle";
      me.explode_angle_prop = props.globals.initNode( explode_angle_path, 0.0, "DOUBLE", TRUE);

      var explode_sound_path = "payload/armament/flags/explode-sound-on-" ~ me.ID;;
      me.explode_sound_prop = props.globals.initNode( explode_sound_path, FALSE, "BOOL", TRUE);

      var explode_sound_vol_path = "payload/armament/flags/explode-sound-vol-" ~ me.ID;;
      me.explode_sound_vol_prop = props.globals.initNode( explode_sound_vol_path, 0, "DOUBLE", TRUE);

      var deploy_path = path_base~"deploy-id-" ~ me.ID;
      me.deploy_prop = props.globals.initNode(deploy_path, 0, "DOUBLE", TRUE);
   },

   animate_explosion: func {
      #
      # a last position update to where the explosion happened:
      #
      me.latN.setDoubleValue(me.coord.lat());
      me.lonN.setDoubleValue(me.coord.lon());
      me.altN.setDoubleValue(me.coord.alt()*M2FT);
      me.pitchN.setDoubleValue(0);# this will make explosions from cluster bombs (like M90) align to ground 'sorta'.
      me.rollN.setDoubleValue(0);
      me.msl_prop.setBoolValue(FALSE);
      me.smoke_prop.setBoolValue(FALSE);
      var info = geodinfo(me.coord.lat(), me.coord.lon());
   
      if (info[1] == nil)
         {print ("Building hit!");}
   
      if ((info[1] != nil) and(info[1].solid == 0))
         {
         me.explode_water_prop.setValue(TRUE);
         }
      else
         {
         me.explode_water_prop.setValue(FALSE);
         }
   
      #print (me.typeShort);
   
      me.explode_prop.setBoolValue(TRUE);
      me.explode_angle_prop.setDoubleValue((rand() - 0.5) * 50);
      settimer( func me.explode_prop.setBoolValue(FALSE), 0.5 );
      settimer( func me.explode_smoke_prop.setBoolValue(TRUE), 0.5 );
      settimer( func me.explode_smoke_prop.setBoolValue(FALSE), 3 );
      
      
      
      settimer ( func {
      
         if (info[1] == nil)
            {
               geo.put_model(
                    "Aircraft/f16/Models/Armament/Weapons/bomb_hit_smoke.xml",
                    me.coord.lat(),
                    me.coord.lon()
                    );
            }
      
         else if ((info[1] != nil) and (info[1].solid == 1))
               {
               
               var crater_model = "";
               
               if ((me.typeShort == "B82") or (me.typeShort == "B83"))
                  {
                  crater_model = "Aircraft/f16/Models/Armament/Weapons/crater_small.xml";
                  }
               else if (me.typeShort == "B84")
                  {
                  crater_model = "Aircraft/f16/Models/Armament/Weapons/crater_big.xml";
                  }
               
               if (crater_model != "")
                    {
                    geo.put_model(
                    crater_model,
                    me.coord.lat(),
                    me.coord.lon()
                    );
                    }
               }
            }, 0.5);

      
   },


Basically there's an inspection of the impact point with a geodinfo call - if the call returns water, then the water flag is set and no decal is placed. If the call returns a nil in the hash the bomb has hit a static model, so a different decal (a particle system generating smoke) is set - so if you bomb the runway there's a crater, if you bomb the terminal it burns.

The code does not treat random buildings as targets, but since we have the geodinfo return at this point, it would be easy to check for urban or residential landclass and place a suitable decal (smoke probably) just the same.

The code also checks which weapon detonates and selects decal accordingly, so aerial explosions of an AIM-9 or so would not trigger this code part at all.

AI or MP objects do not register on the geodinfo, so you have to handle these on your own, but you detect hits before that part of the code, so basically you need to execute whatever you want to execute here.

Currently I've only done the Mk 82 and Mk 84 which should work for the equivalent guided weapons just the same. The cluster bombs are going to be a challenge, but presumably a large emitter region of the particle system can do that.

I'm not sure the decal set I've been using should be the last word, likely a 3d modeler should get better craters - in any case, if you need the model I've been using, the Vulcan bomber on FGAddon has it.

If so desired, I can make the commits on FGAddon (or any other SF repository) but I don't want to get accounts at all different GIT hosts.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

Re: F-16 upgraded to 'production' status

Postby Necolatis » Thu Oct 24, 2019 3:51 pm

Really cool, and that water explosion look very good.

No, please dont merge this into FGAddon we dont commit directly to that, I will try to merge it into github, and from there back into FGAddon.

As for the cluster bomb, Jmav16 took the Viggen M90 (it uses a sector type placer) and tweaked it for CBU-87. It will give alot of small explosions in an area. But this has not been ported over to FGAddon yet.

It can probably be improved though, I reckon around monday will update the FGAddon F16, hopefully including your mk82/84 code. :)
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2233
Joined: Mon Oct 29, 2012 1:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2020.3.19
OS: Windows 10

Re: F-16 upgraded to 'production' status

Postby Necolatis » Thu Oct 24, 2019 4:00 pm

V12 wrote in Wed Oct 23, 2019 8:47 pm:I have one stupid ask - how to use VOR / TACAN navigation ?


Use the Menu->Equipment->Radio to set the frequencies etc.

Then when your not in Tactical Mode (masterarm OFF) then you should get some info in HUD.
You can also use the HSI (lower part of middle console).

Remember to set the knob next to the HSI to TACAN if you want to use TACAN.

See also the video tutorials for the F-16:
https://www.youtube.com/watch?v=iSkxDhy8-zk
https://www.youtube.com/watch?v=uN6pddgHaog
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2233
Joined: Mon Oct 29, 2012 1:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2020.3.19
OS: Windows 10

Re: F-16 upgraded to 'production' status

Postby Necolatis » Thu Oct 24, 2019 4:14 pm

I found the Vulcans crater, but how does your crater_small.xml, crater_big.xml and bomb_hit_smoke.xml look like?
"Airplane travel is nature's way of making you look like your passport photo."
— Al Gore
User avatar
Necolatis
 
Posts: 2233
Joined: Mon Oct 29, 2012 1:40 am
Location: EKOD
Callsign: Leto
IRC name: Neco
Version: 2020.3.19
OS: Windows 10

Re: F-16 upgraded to 'production' status

Postby Thorsten » Thu Oct 24, 2019 5:19 pm

I found the Vulcans crater, but how does your crater_small.xml, crater_big.xml and bomb_hit_smoke.xml look like?


As I said - not really finished, but anyway

bomb_hit_smoke.xml:

Code: Select all
<?xml version="1.0"?>
<PropertyList>
   <particlesystem>
      <name>bombhit-smoke</name>

      <texture>../smoke.png</texture>

      <emissive>false</emissive>
      <lighting>false</lighting>
      <align>billboard</align>
      <attach>world</attach>
      <placer>
         <type>point</type>
      </placer>
      <shooter>
         <theta-min-deg>30</theta-min-deg>
         <theta-max-deg>60</theta-max-deg>
         <phi-min-deg>-180</phi-min-deg>
         <phi-max-deg> 180</phi-max-deg>
         <speed-mps>
            <value>5</value>
            <spread>5</spread>
         </speed-mps>
         <rotation-speed>
            <x-min-deg-sec>0</x-min-deg-sec>
            <y-min-deg-sec>0</y-min-deg-sec>
            <z-min-deg-sec>-60</z-min-deg-sec>
            <x-max-deg-sec>0</x-max-deg-sec>
            <y-max-deg-sec>0</y-max-deg-sec>
            <z-max-deg-sec>60</z-max-deg-sec>
         </rotation-speed>
      </shooter>
      <counter>
         <particles-per-sec>
            <value>3</value>
            <spread>5</spread>
         </particles-per-sec>
      </counter>
      <particle>
         <start>
            <color>
               <red><value>0.0</value></red>
               <green><value>0.0</value></green>
               <blue><value>0.0</value></blue>
               <alpha><value>0.2</value></alpha>
            </color>
            <size>
               <value>12.0</value>
            </size>
         </start>
         <end>
            <color>
               <red><value>0.0</value></red>
               <green><value>0.0</value></green>
               <blue><value>0.0</value></blue>
               <alpha><value>0.05</value></alpha>
            </color>
            <size>
               <value>80.0</value>
            </size>
         </end>
         <life-sec>
            <value>120</value>
         </life-sec>
         <mass-kg>0.025</mass-kg>
         <radius-m>0.40</radius-m>
      </particle>
      <program>
         <fluid>air</fluid>
         <gravity>true</gravity>
         <wind>true</wind>
      </program>
   </particlesystem>
</PropertyList>


crater_small.xml:

Code: Select all
<?xml version="1.0"?>

<PropertyList>

 <path>crater.ac</path>
 
      <particlesystem>
         <name>explosion-smoke-longterm</name>
         <texture>smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>


         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>0</theta-min-deg>
           <theta-max-deg>20</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>30</value>
             <spread>10</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>5</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>2</value>
             <spread>0</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   0.3 </value></red>
               <green><value> 0.3 </value></green>
               <blue><value>  0.25 </value></blue>
               <alpha><value> 0.3 </value></alpha>
             </color>
             <size>
               <value>6</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   0.4 </value></red>
               <green><value> 0.4 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 0.05 </value></alpha>
             </color>
             <size>
               <value>10</value>
             </size>
           </end>

           <life-sec>
             <value>60</value>
           </life-sec>
             
           <mass-kg>  5.0 </mass-kg>
           <radius-m> 0.4 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>

</PropertyList>


crater_big.xml:

Code: Select all
<?xml version="1.0"?>

<PropertyList>

 <path>crater.ac</path>
 
 <animation>
   <type>scale</type>
   <object-name>Sphere</object-name>
   <x-offset>1.8</x-offset>
   <y-offset>1.8</y-offset>
   <z-offset>1.3</z-offset>
 </animation>

      <particlesystem>
         <name>explosion-smoke-longterm</name>
         <texture>smoke.png</texture>

         <emissive type="bool">false</emissive>
         <lighting type="bool">false</lighting>


         <attach>world</attach>

         <placer>
           <type>point</type>
         </placer>

         <shooter>
           <theta-min-deg>0</theta-min-deg>
           <theta-max-deg>20</theta-max-deg>
           <phi-min-deg>-180</phi-min-deg>
           <phi-max-deg>180</phi-max-deg>
           <speed-mps>
             <value>30</value>
             <spread>10</spread>
           </speed-mps>
           <rotation-speed>
             <x-min-deg-sec>0</x-min-deg-sec>
             <y-min-deg-sec>0</y-min-deg-sec>
             <z-min-deg-sec>0</z-min-deg-sec>
             <x-max-deg-sec>0</x-max-deg-sec>
             <y-max-deg-sec>0</y-max-deg-sec>
             <z-max-deg-sec>5</z-max-deg-sec>
           </rotation-speed>
         </shooter>

         <counter>
           <particles-per-sec>
             <value>2</value>
             <spread>0</spread>
           </particles-per-sec>
         </counter>
           
         <align>billboard</align>

         <particle>
           <start>
             <color>
               <red><value>   0.3 </value></red>
               <green><value> 0.3 </value></green>
               <blue><value>  0.25 </value></blue>
               <alpha><value> 0.3 </value></alpha>
             </color>
             <size>
               <value>6</value>
             </size>
           </start>

           <end>
             <color>
               <red><value>   0.4 </value></red>
               <green><value> 0.4 </value></green>
               <blue><value>  0.4 </value></blue>
               <alpha><value> 0.05 </value></alpha>
             </color>
             <size>
               <value>12</value>
             </size>
           </end>

           <life-sec>
             <value>100</value>
           </life-sec>
             
           <mass-kg>  4.0 </mass-kg>
           <radius-m> 0.4 </radius-m>
         </particle>

         <program>
           <fluid>               air  </fluid>
           <gravity type="bool"> true </gravity>
           <wind typ="bool">     true </wind>
         </program>

       </particlesystem>

</PropertyList>


The debris particle lava.png texture you can get from $FGdata/Models/Volcanoes/Etna/

it's just the de-saturated texture.

As for the cluster bomb, Jmav16 took the Viggen M90 (it uses a sector type placer) and tweaked it for CBU-87. It will give alot of small explosions in an area. But this has not been ported over to FGAddon yet.


Well, I am not in a hurry... So I can wait to study that.

It can probably be improved though, I reckon around monday will update the FGAddon F16, hopefully including your mk82/84 code.


Take your time... I'll do a Mk83 (which should be easy...) and then perhaps study the Maverick.
Thorsten
 
Posts: 12490
Joined: Mon Nov 02, 2009 9:33 am

PreviousNext

Return to Aircraft

Who is online

Users browsing this forum: No registered users and 17 guests

cron