@jtff/miztemplate-lib 3.8.13 → 3.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,67 +31,4 @@ AAMAxRange = {
31
31
  }
32
32
 
33
33
  --SplashDamage configuration
34
- splash_damage_options = {
35
- --debug options
36
- ["game_messages"] = true, --enable some messages on screen
37
- ["debug"] = DEBUG_MSG, --enable debugging messages
38
- ["weapon_missing_message"] = false, --false disables messages alerting you to weapons missing from the explTable
39
-
40
- ["track_pre_explosion_debug"] = false, --Toggle to enable/disable pre-explosion tracking debugging
41
-
42
- ["enable_radio_menu"] = true, --enables the in-game radio menu for modifying settings
43
-
44
- ["static_damage_boost"] = 2000, --apply extra damage to Unit.Category.STRUCTUREs with wave explosions
45
- ["wave_explosions"] = false, --secondary explosions on top of game objects, radiating outward from the impact point and scaled based on size of object and distance from weapon impact point
46
- ["larger_explosions"] = true, --secondary explosions on top of weapon impact points, dictated by the values in the explTable
47
- ["damage_model"] = false, --allow blast wave to affect ground unit movement and weapons
48
- ["blast_search_radius"] = 100, --this is the max size of any blast wave radius, since we will only find objects within this zone
49
- ["cascade_damage_threshold"] = 0.1, --if the calculated blast damage doesn't exceed this value, there will be no secondary explosion damage on the unit. If this value is too small, the appearance of explosions far outside of an expected radius looks incorrect.
50
- ["blast_stun"] = false, --not implemented
51
- ["unit_disabled_health"] = 30, --if health is below this value after our explosions, disable its movement
52
- ["unit_cant_fire_health"] = 40, --if health is below this value after our explosions, set ROE to HOLD to simulate damage weapon systems
53
- ["infantry_cant_fire_health"] = 70, --if health is below this value after our explosions, set ROE to HOLD to simulate severe injury
54
-
55
- ["rocket_multiplier"] = 1.3, --multiplied by the explTable value for rockets
56
- ["overall_scaling"] = 1, --overall scaling for explosive power
57
-
58
- ["apply_shaped_charge_effects"] = true, --apply reduction in blastwave etc for shaped charge munitions
59
- ["shaped_charge_multiplier"] = 0.2, --multiplier that reduces blast radius and explosion power for shaped charge munitions.
60
-
61
- ["use_dynamic_blast_radius"] = true, --if true, blast radius is calculated from explosion power; if false, blast_search_radius (90) is used
62
- ["dynamic_blast_radius_modifier"] = 2, --multiplier for the blast radius
63
-
64
- ["cascade_scaling"] = 1, --multiplier for secondary (cascade) blast damage, 1 damage fades out too soon, 3 damage seems a good balance
65
- ["cascade_explode_threshold"] = 60, --only trigger cascade explosion if the unit's current health is <= this percent of its maximum, setting can help blow nearby jeeps but not tanks
66
- ["always_cascade_explode"] = false, --switch if you want everything to explode like with the original script
67
-
68
-
69
- --track_pre_explosion/enable_cargo_effects should both be the same value
70
- ["track_pre_explosion"] = true, --Toggle to enable/disable pre-explosion tracking
71
- ["enable_cargo_effects"] = true, --Toggle for enabling/disabling cargo explosions and cook-offs
72
- ["cargo_damage_threshold"] = 60, --Health % below which cargo explodes (0 = destroyed only)
73
- ["debris_effects"] = true, --Enable debris from cargo cook-offs
74
- ["debris_power"] = 1, --Power of each debris explosion
75
- ["debris_count_min"] = 6, --Minimum debris pieces per cook-off
76
- ["debris_count_max"] = 12, --Maximum debris pieces per cook-off
77
- ["debris_max_distance"] = 10, --Max distance debris can travel (meters), the min distance from the vehicle will be 10% of this
78
-
79
- ["ordnance_protection"] = true, --Toggle ordinance protection features
80
- ["ordnance_protection_radius"] = 10, --Distance in meters to protect nearby bombs
81
- ["detect_ordnance_destruction"] = true, --Toggle detection of ordnance destroyed by large explosions
82
- ["snap_to_ground_if_destroyed_by_large_explosion"] = true, --If the ordnance protection fails or is disabled we can snap larger_explosions to the ground (if enabled - power as set in weapon list) - so an explosion still does hit the ground
83
- ["recent_large_explosion_snap"] = true, --enable looking for a recent large_explosion generated by the script
84
- ["recent_large_explosion_range"] = 200, --range its looking for in meters for a recent large_explosion generated by the script
85
- ["recent_large_explosion_time"] = 4, --in seconds how long ago there was a recent large_explosion generated by the script
86
-
87
- -- Cluster bomb settings
88
- ["cluster_enabled"] = false,
89
- ["cluster_base_length"] = 150, -- Base forward spread (meters)
90
- ["cluster_base_width"] = 200, -- Base lateral spread (meters)
91
- ["cluster_max_length"] = 300, -- Max forward spread (meters)
92
- ["cluster_max_width"] = 400, -- Max lateral spread (meters)
93
- ["cluster_min_length"] = 100, -- Min forward spread
94
- ["cluster_min_width"] = 150, -- Min lateral spread
95
- ["cluster_bomblet_reductionmodifier"] = true, -- Use equation to reduce number of bomblets (to make it look better)
96
- ["cluster_bomblet_damage_modifier"] = 1, -- Adjustable global modifier for bomblet explosive power
97
- }
34
+ splash_damage_options.debug = DEBUG_MSG
@@ -4,19 +4,23 @@
4
4
 
5
5
  SamsArray = {}
6
6
  compteur = 0
7
- mainRadioMenuForSamsBlue = MENU_COALITION:New( coalition.side.BLUE , "SAMs", MenuCoalitionBlue )
8
- mainRadioMenuForSamsRed = MENU_COALITION:New( coalition.side.RED , "SAMs", MenuCoalitionRed )
7
+ mainRadioMenuForSamsBlue = MENU_COALITION:New( coalition.side.BLUE , "SAMs" )
8
+ mainRadioMenuForSamsRed = MENU_COALITION:New( coalition.side.RED , "SAMs" )
9
9
  for index, samconfig in ipairs(SamsConfig) do
10
10
  if samconfig.enable == true then
11
11
  compteur = compteur + 1
12
12
  env.info('creation Sam site : '.. samconfig.name..'...')
13
13
  SamsArray[compteur] = {
14
- customconfig = samconfig
14
+ customconfig = samconfig,
15
+ RangeRootMenu = {},
16
+ SubRangeMenus = {},
15
17
  }
16
18
  if (samconfig.benefit_coalition == coalition.side.BLUE) then
17
- local radioMenuForRange = MENU_COALITION:New( coalition.side.BLUE, samconfig.name , mainRadioMenuForSamsBlue)
18
- for index, subRangeConfig in ipairs(samconfig.subRange) do
19
- local radioMenuSubRange = MENU_COALITION:New(samconfig.benefit_coalition, subRangeConfig.name, radioMenuForRange)
19
+ SamsArray[compteur].RangeRootMenu = MENU_COALITION:New( coalition.side.BLUE, samconfig.name , mainRadioMenuForSamsBlue)
20
+ local radioMenuForRange = SamsArray[compteur].RangeRootMenu
21
+ for indexsubRange, subRangeConfig in ipairs(samconfig.subRange) do
22
+ SamsArray[compteur].SubRangeMenus[indexsubRange] = MENU_COALITION:New(samconfig.benefit_coalition, subRangeConfig.name, radioMenuForRange)
23
+ local radioMenuSubRange = SamsArray[compteur].SubRangeMenus[indexsubRange]
20
24
  if (subRangeConfig.subsubRange ~= nil) then
21
25
  for index, subsubRangeConfig in ipairs(subRangeConfig.subsubRange) do
22
26
  local radioMenuSubSubRange = MENU_COALITION:New(samconfig.benefit_coalition, subsubRangeConfig.name, radioMenuSubRange)
@@ -26,6 +30,7 @@ for index, samconfig in ipairs(SamsConfig) do
26
30
  addSubRangeRadioMenus(radioMenuSubRange, samconfig, subRangeConfig)
27
31
  end
28
32
  end
33
+ AddWholeRangeCoalitionCommandMenus(radioMenuForRange, samconfig)
29
34
  else
30
35
  local radioMenuForRange = MENU_COALITION:New( coalition.side.RED, samconfig.name , mainRadioMenuForSamsRed)
31
36
  for index, subRangeConfig in ipairs(samconfig.subRange) do
@@ -39,6 +44,7 @@ for index, samconfig in ipairs(SamsConfig) do
39
44
  addSubRangeRadioMenus(radioMenuSubRange, samconfig, subRangeConfig)
40
45
  end
41
46
  end
47
+ AddWholeRangeCoalitionCommandMenus(radioMenuForRange, samconfig)
42
48
  end
43
49
  end
44
50
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.8.13",
3
+ "version": "3.9.1",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [