@jtff/miztemplate-lib 3.7.0 → 3.7.2

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.
@@ -1,4 +1,4 @@
1
- env.info('*** MOOSE GITHUB Commit Hash ID: 2025-03-22T14:58:24+01:00-792aa73832fd42310307b25131f35d6fbb201b86 ***')
1
+ env.info('*** MOOSE GITHUB Commit Hash ID: 2025-03-23T14:11:21+01:00-4955fe4d9260ad3fba0e0688a0be4f562f872614 ***')
2
2
  if not MOOSE_DEVELOPMENT_FOLDER then
3
3
  MOOSE_DEVELOPMENT_FOLDER='Scripts'
4
4
  end
@@ -19787,13 +19787,14 @@ SpawnPoint.helipadId=nil
19787
19787
  SpawnPoint.airdromeId=nil
19788
19788
  local AirbaseID=SpawnAirbase:GetID()
19789
19789
  local AirbaseCategory=SpawnAirbase:GetAirbaseCategory()
19790
- SpawnPoint.airdromeId=AirbaseID
19791
19790
  if AirbaseCategory==Airbase.Category.SHIP then
19792
19791
  SpawnPoint.linkUnit=AirbaseID
19793
19792
  SpawnPoint.helipadId=AirbaseID
19794
19793
  elseif AirbaseCategory==Airbase.Category.HELIPAD then
19795
19794
  SpawnPoint.linkUnit=AirbaseID
19796
19795
  SpawnPoint.helipadId=AirbaseID
19796
+ else
19797
+ SpawnPoint.airdromeId=AirbaseID
19797
19798
  end
19798
19799
  SpawnPoint.alt=0
19799
19800
  SpawnPoint.type=GROUPTEMPLATE.Takeoff[Takeoff][1]
@@ -29,3 +29,69 @@ AAMAxRange = {
29
29
  TARGET_THREAT_EST = 3,
30
30
  RANDOM_RANGE = 4,
31
31
  }
32
+
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
+ }
@@ -99,7 +99,13 @@ for index, tankerconfig in ipairs(TankersConfig) do
99
99
  if not(GROUP:FindByName(self.escortGroupObject.GroupName)) then
100
100
  jtff_log.info('Respawning escort Group '..self.escortGroupObject.GroupName,"TANKER")
101
101
  self.escortGroupObject = self.escortSpawnObject
102
- :SpawnAtAirbase(AIRBASE:FindByName(self.customconfig.baseUnit),SPAWN.Takeoff.Cold, self.customconfig.altitude)
102
+ :SpawnAtAirbase(
103
+ AIRBASE:FindByName(self.customconfig.baseUnit),
104
+ SPAWN.Takeoff.Cold,
105
+ self.customconfig.altitude,
106
+ nil,
107
+ true
108
+ )
103
109
  end
104
110
  end
105
111
  end
@@ -286,7 +292,8 @@ function triggerOnDemandTanker(type, askedDuration, askedFL, askedSpeed, askedAn
286
292
  AIRBASE:FindByName(OnDemandTanker.baseUnit),
287
293
  SPAWN.Takeoff.Hot,
288
294
  nil,
289
- OnDemandTanker.terminalType
295
+ OnDemandTanker.terminalType,
296
+ true
290
297
  )
291
298
  table.insert(TankerRoute,
292
299
  AIRBASE
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jtff/miztemplate-lib",
3
- "version": "3.7.0",
3
+ "version": "3.7.2",
4
4
  "description": "JTFF mission template library",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -219,13 +219,6 @@ async function doInject(ciObject, sourceMizFileName, workspacePath,destinationMi
219
219
  file: "settings-global.lua",
220
220
  },
221
221
  );
222
- libsArray.push({
223
- folder: 'lib',
224
- scriptTitle: 'FunkMan',
225
- scripts: ['funkman.lua'],
226
- timing: 15,
227
- color: '0xffff00ff'
228
- });
229
222
  libsArray.push({
230
223
  folder: 'src',
231
224
  scriptTitle: 'JTFF Libraries',
@@ -233,6 +226,13 @@ async function doInject(ciObject, sourceMizFileName, workspacePath,destinationMi
233
226
  timing: 15,
234
227
  color: '0xffff00ff'
235
228
  });
229
+ libsArray.push({
230
+ folder: 'lib',
231
+ scriptTitle: 'FunkMan',
232
+ scripts: ['funkman.lua'],
233
+ timing: 16,
234
+ color: '0xffff00ff'
235
+ });
236
236
  // traitement de la file d'attente des librairies (injection des triggers et des fichiers lua)
237
237
  for ( libscript of libsArray) {
238
238
  console.log(['adding library',libscript.scripts.join(' and '),'from',workspacePath + '/.workspace/' + libscript.folder, 'folder...'].join(' '));