@jtff/miztemplate-lib 3.6.1 → 3.6.3
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.
|
@@ -107,9 +107,11 @@ function QRATrigger(params)
|
|
|
107
107
|
local QRAIndex = params[3]
|
|
108
108
|
local msgTriggeredGround = ""
|
|
109
109
|
local msgTriggeredOthers = ""
|
|
110
|
+
local triggerPlayerName = ""
|
|
110
111
|
if (objQRA.customconfig.type == JTFF_QRA.Type.TangoAuto) then
|
|
111
112
|
local playerClient = CLIENT:FindByName(trigerringUnitName)
|
|
112
113
|
local playerName = playerClient:GetPlayer()
|
|
114
|
+
triggerPlayerName = playerName
|
|
113
115
|
local playerCoord = playerClient:GetCoordinate()
|
|
114
116
|
QRAArray[QRAIndex].objBogeyGroup = QRALaunchBogey(params)
|
|
115
117
|
local bullsCoord = COORDINATE.GetBullseyeCoordinate(objQRA.customconfig.benefit_coalition)
|
|
@@ -177,6 +179,7 @@ function QRATrigger(params)
|
|
|
177
179
|
playerName = playerClient:GetPlayer()
|
|
178
180
|
playerCoord = playerClient:GetCoordinate()
|
|
179
181
|
end
|
|
182
|
+
triggerPlayerName = playerName
|
|
180
183
|
local formatString = "QRA %s has been triggered by %s !\n" ..
|
|
181
184
|
"Type is : %s\n" ..
|
|
182
185
|
"If you're on Alert," ..
|
|
@@ -212,6 +215,7 @@ function QRATrigger(params)
|
|
|
212
215
|
playerName = playerClient:GetPlayer()
|
|
213
216
|
playerCoord = playerClient:GetCoordinate()
|
|
214
217
|
end
|
|
218
|
+
triggerPlayerName = playerName
|
|
215
219
|
local formatString = "QRA %s has been triggered by %s !\n" ..
|
|
216
220
|
"Type is : %s\n" ..
|
|
217
221
|
"If you're on Alert," ..
|
package/package.json
CHANGED
|
@@ -223,14 +223,14 @@ async function doInject(ciObject, sourceMizFileName, workspacePath,destinationMi
|
|
|
223
223
|
folder: 'lib',
|
|
224
224
|
scriptTitle: 'FunkMan',
|
|
225
225
|
scripts: ['funkman.lua'],
|
|
226
|
-
timing:
|
|
226
|
+
timing: 15,
|
|
227
227
|
color: '0xffff00ff'
|
|
228
228
|
});
|
|
229
229
|
libsArray.push({
|
|
230
230
|
folder: 'src',
|
|
231
231
|
scriptTitle: 'JTFF Libraries',
|
|
232
232
|
scripts: ['010-root_menus.lua', '020-mission_functions.lua'],
|
|
233
|
-
timing:
|
|
233
|
+
timing: 15,
|
|
234
234
|
color: '0xffff00ff'
|
|
235
235
|
});
|
|
236
236
|
// traitement de la file d'attente des librairies (injection des triggers et des fichiers lua)
|
|
@@ -395,6 +395,10 @@ async function doInject(ciObject, sourceMizFileName, workspacePath,destinationMi
|
|
|
395
395
|
file: "settings-intercept.lua",
|
|
396
396
|
objectName: "InterceptConfig"
|
|
397
397
|
},
|
|
398
|
+
{
|
|
399
|
+
file: "settings-qra.lua",
|
|
400
|
+
objectName: "QRAConfig"
|
|
401
|
+
},
|
|
398
402
|
);
|
|
399
403
|
scriptsArray.push({
|
|
400
404
|
folder: 'src',
|
|
@@ -525,7 +529,7 @@ async function doInject(ciObject, sourceMizFileName, workspacePath,destinationMi
|
|
|
525
529
|
settingsArray.map(a => a.file),
|
|
526
530
|
'Mission Settings',
|
|
527
531
|
mizObject,
|
|
528
|
-
|
|
532
|
+
17,
|
|
529
533
|
'0xffff00ff',
|
|
530
534
|
false
|
|
531
535
|
);
|