Difference between revisions of "DCS enum weapon flag"

From DCS World Wiki - Hoggitworld.com
m (1 revision imported)
 
 
(One intermediate revision by the same user not shown)
Line 36: Line 36:
 
     2097152 = CruiseMissile
 
     2097152 = CruiseMissile
 
  1073741824 = AntiRadarMissile2
 
  1073741824 = AntiRadarMissile2
 +
8589934592 = Decoys
 
     1572864 = GuidedASM (LaserASM + TeleASM)
 
     1572864 = GuidedASM (LaserASM + TeleASM)
 
     1835008 = TacticalASM (GuidedASM + FireAndForgetASM)
 
     1835008 = TacticalASM (GuidedASM + FireAndForgetASM)
Line 54: Line 55:
 
  536870912 = BuiltInCannon
 
  536870912 = BuiltInCannon
 
  805306368 = Cannons (GUN_POD + BuiltInCannon)
 
  805306368 = Cannons (GUN_POD + BuiltInCannon)
 +
 +
Shells
 +
  17179869184 = SmokeShell
 +
  34359738368 = Illumination Shell
 +
  51539607552 = MarkerShell
 +
  68719476736 = SubmunitionDispenserShell
 +
137438953472 = GuidedShell
 +
206963736576 = ConventionalShell
 +
258503344128 = AnyShell
  
 +
Torpedo
 +
  4294967296 = Torpedo
  
 
Combinations
 
Combinations
2956984318 = AnyAGWeapon (BuiltInCannon + GUN_POD + AnyBomb + AnyRocket + AnyASM)  
+
  2956984318 = AnyAGWeapon (BuiltInCannon + GUN_POD + AnyBomb + AnyRocket + AnyASM)  
  264241152 = AnyAAWeapon (BuiltInCannon + GUN_POD + AnyAAM)  
+
    264241152 = AnyAAWeapon (BuiltInCannon + GUN_POD + AnyAAM)  
2952822768 = UnguidedWeapon (Cannons + BuiltInCannon + GUN_POD + AnyUnguidedBomb + AnyRocket)  
+
  2952822768 = UnguidedWeapon (Cannons + BuiltInCannon + GUN_POD + AnyUnguidedBomb + AnyRocket)  
  268402702 = GuidedWeapon (GuidedBomb + AnyASM + AnyAAM)
+
    268402702 = GuidedWeapon (GuidedBomb + AnyASM + AnyAAM)
3221225470 = AnyWeapon (AnyBomb + AnyRocket + AnyMissile + Cannons)  
+
  3221225470 = AnyWeapon (AnyBomb + AnyRocket + AnyMissile + Cannons)  
      13312 = MarkerWeapon (MarkerRocket + CandleRocket + CandleBomb)  
+
        13312 = MarkerWeapon (MarkerRocket + CandleRocket + CandleBomb)  
  3221212158 = ArmWeapon (AnyWeapon - MarkerWeapon)
+
  209379642366 = ArmWeapon (AnyWeapon - MarkerWeapon)
  
 
[[Category: Scripting]]
 
[[Category: Scripting]]
 
[[Category: Enumerators|Weapon Flag]]
 
[[Category: Enumerators|Weapon Flag]]

Latest revision as of 23:22, 28 October 2022

Weapon.flag is an identifier for a bunch of different types of weapons and groupings of weapons. These values are typically used in association with task creation to define "weaponType" entries. Each type of weapon is indexed by the power of 2. Some values are generated by adding enumerators together to create a generalized category. These entries are fixed values.

0 = No Weapon

Bombs

         2 = LGB
         4 = TvGB
         8 = SNSGB
        16 = HEBomb
        32 = Penetrator
        64 = NapalmBomb
       128 = FAEBomb
       256 = ClusterBomb
       512 = Dispencer
      1024 = CandleBomb
2147483648 = ParachuteBomb
        14 = GuidedBomb (LGB + TvGB + SNSGB)
2147485680 = AnyUnguidedBomb (HeBomb + Penetrator + NapalmBomb + FAEBomb + ClusterBomb + Dispencer + CandleBomb + ParachuteBomb)
2147485694 = AnyBomb (GuidedBomb + AnyUnguidedBomb)
                

Rockets

      2048 = LightRocket 
      4096 = MarkerRocket 
      8192 = CandleRocket
     16384 = HeavyRocket
     30720 = AnyRocket (LightRocket + MarkerRocket + CandleRocket + HeavyRocket)

Missiles

     32768 = AntiRadarMissile 
     65536 = AntiShipMissile
    131072 = AntiTankMissile
    262144 = FireAndForgetASM
    524288 = LaserASM
   1048576 = TeleASM
   2097152 = CruiseMissile
1073741824 = AntiRadarMissile2
8589934592 = Decoys
   1572864 = GuidedASM (LaserASM + TeleASM)
   1835008 = TacticalASM (GuidedASM + FireAndForgetASM)
   4161536 = AnyASM (AntiRadarMissile + AntiShipMissile + AntiTankMissile + FireAndForgetASM + GuidedASM + CruiseMissile)

AAM

  4194304 = SRAAM
  8388608 = MRAAM 
 16777216 = LRAAM
 33554432 = IR_AAM
 67108864 = SAR_AAM
134217728 = AR_AAM
264241152 = AnyAMM(IR_AAM + SAR_AAM + AR_AAM + SRAAM + MRAAM + LRAAM)
268402688 = AnyMissile (ASM + AnyAAM)   
 36012032 = AnyAutonomousMissile (IR_AAM + AntiRadarMissile + AntiShipMissile + FireAndForgetASM + CruiseMissile)

Guns

268435456 = GUN_POD
536870912 = BuiltInCannon
805306368 = Cannons (GUN_POD + BuiltInCannon)

Shells

 17179869184 = SmokeShell
 34359738368 = Illumination Shell
 51539607552 = MarkerShell
 68719476736 = SubmunitionDispenserShell
137438953472 = GuidedShell
206963736576 = ConventionalShell
258503344128 = AnyShell

Torpedo

  4294967296 = Torpedo

Combinations

  2956984318 = AnyAGWeapon (BuiltInCannon + GUN_POD + AnyBomb + AnyRocket + AnyASM) 
   264241152 = AnyAAWeapon (BuiltInCannon + GUN_POD + AnyAAM) 
  2952822768 = UnguidedWeapon (Cannons + BuiltInCannon + GUN_POD + AnyUnguidedBomb + AnyRocket) 
   268402702 = GuidedWeapon (GuidedBomb + AnyASM + AnyAAM)
  3221225470 = AnyWeapon (AnyBomb + AnyRocket + AnyMissile + Cannons) 
       13312 = MarkerWeapon (MarkerRocket + CandleRocket + CandleBomb) 
209379642366 = ArmWeapon (AnyWeapon - MarkerWeapon)