-
Notifications
You must be signed in to change notification settings - Fork 1
/
ME5_ConfigCheck.lua
676 lines (530 loc) · 19.4 KB
/
ME5_ConfigCheck.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
-----------------------------------------------------------------
-----------------------------------------------------------------
-- MASS EFFECT: UNIFICATION Master Script by Aaron Gilbert
-- Build 31025/06
-- Screen Names: Marth8880, GT-Marth8880, [GT] Marth8880, [GT] Bran
-- E-Mail: [email protected]
-- Oct 25, 2016
-- Copyright (c) 2017, Aaron Gilbert All rights reserved.
--
-- About:
-- The purpose of this script is to load configuration parameters set by the Config Tool and set variables based on
-- existing files.
--
--
-- Legal:
-- This script is licensed under the BSD 3-Clause License. A copy of this license (as LICENSE.md) should have been included
-- with this script. If it wasn't, it can also be found here: https://www.w3.org/Consortium/Legal/2008/03-bsd-license.html
--
-- THIS SCRIPT IS NOT MADE, DISTRIBUTED, OR SUPPORTED BY LUCASARTS, A DIVISION OF LUCASFILM ENTERTAINMENT COMPANY LTD.
-----------------------------------------------------------------
-----------------------------------------------------------------
local __SCRIPT_NAME = "ME5_ConfigCheck";
local debug = true
local function PrintLog(...)
if debug == true then
print("["..__SCRIPT_NAME.."]", unpack(arg));
end
end
PrintLog("Entered")
ReadDataFile("..\\..\\addon\\ME5\\data\\_LVL_PC\\ConfigUtility\\meumodconfig.script")
ScriptCB_DoFile("meumodconfig")
meuConfigSettings = gMEUModConfig
---
-- Checks the given setting and its value based on /setting/ and /value/.
-- @param #string setting The name of the setting file to check.
-- @param #int value The value of the setting to check for.
-- @return 1 if setting's value is valid, 0 if invalid. Will also return 0 if one of the function parameters wasn't inputted.
--
local function CheckSetting(key)
-- Make sure all parameters have been inputted
if not key then
PrintLog("CheckSetting(): WARNING: Argument #0 'key' not set! Exiting function")
return 0
end
return meuConfigSettings[key]
end
PrintLog("Checking configuration parameters...")
-- ======================
-- AI HEROES
-- ======================
if CheckSetting("cfg_AIHeroes") == 0 then
PrintLog("AI Heroes are DISABLED")
ME5_AIHeroes = 0
elseif CheckSetting("cfg_AIHeroes") == 1 then
PrintLog("AI Heroes are ENABLED")
ME5_AIHeroes = 1
else
PrintLog("Error! ME5_AIHeroes flag not found or invalid! Defaulting to ENABLED")
ME5_AIHeroes = 1
end
-- ======================
-- MENU INTERFACE STYLE
-- ======================
if CheckSetting("cfg_CustomGUIEnabled") == 0 then
PrintLog("Menu Interface Style is STAR WARS BATTLEFRONT II")
ME5_CustomGUIEnabled = 0
elseif CheckSetting("cfg_CustomGUIEnabled") == 1 then
PrintLog("Menu Interface Style is MASS EFFECT: UNIFICATION")
ME5_CustomGUIEnabled = 1
elseif CheckSetting("cfg_CustomGUIEnabled") == 2 then
PrintLog("Menu Interface Style is MASS EFFECT 3")
ME5_CustomGUIEnabled = 2
else
PrintLog("Error! ME5_CustomGUIEnabled flag not found or invalid! Defaulting to MASS EFFECT: UNIFICATION")
ME5_CustomGUIEnabled = 1
end
-- ======================
-- CUSTOM HUD
-- ======================
if not ScriptCB_InMultiplayer() then
if CheckSetting("cfg_CustomHUD") == 0 then
PrintLog("Custom HUD is DISABLED")
ME5_CustomHUD = 0
elseif CheckSetting("cfg_CustomHUD") == 1 then
PrintLog("Custom HUD is ENABLED")
ME5_CustomHUD = 1
rema_noHUD = true
else
PrintLog("Error! ME5_CustomHUD flag not found or invalid! Defaulting to ENABLED")
ME5_CustomHUD = 1
end
else
-- rema_noHUD causes a crash in multiplayer, so we can't use it
PrintLog("We are in multiplayer so Custom HUD is DISABLED")
ME5_CustomHUD = 0
end
-- ======================
-- GAMEPLAY DIFFICULTY
-- ======================
if CheckSetting("cfg_Difficulty") == 0 then
PrintLog("Difficulty is CASUAL")
ME5_Difficulty = 1
elseif CheckSetting("cfg_Difficulty") == 1 then
PrintLog("Difficulty is NORMAL")
ME5_Difficulty = 2
elseif CheckSetting("cfg_Difficulty") == 2 then
PrintLog("Difficulty is VETERAN")
ME5_Difficulty = 3
elseif CheckSetting("cfg_Difficulty") == 3 then
PrintLog("Difficulty is HARDCORE")
ME5_Difficulty = 4
elseif CheckSetting("cfg_Difficulty") == 4 then
PrintLog("Difficulty is INSANITY")
ME5_Difficulty = 5
else
PrintLog("Error! ME5_Difficulty flag not found or invalid! Defaulting to VETERAN")
ME5_Difficulty = 3
end
-- ======================
-- CARNAGE MODE
-- ======================
if CheckSetting("cfg_CarnageMode") == 0 then
PrintLog("Carnage Mode is DISABLED")
ME5_CarnageMode = 0
elseif CheckSetting("cfg_CarnageMode") == 1 then
PrintLog("Carnage Mode is ENABLED")
ME5_CarnageMode = 1
else
PrintLog("Error! ME5_CarnageMode flag not found or invalid! Defaulting to DISABLED")
ME5_CarnageMode = 0
end
-- ======================
-- HEALTH FUNCTIONALITY
-- ======================
if CheckSetting("cfg_HealthFunc") == 0 then
PrintLog("Health Functionality is AUTO-REGEN")
ME5_HealthFunc = 1
elseif CheckSetting("cfg_HealthFunc") == 1 then
PrintLog("Health Functionality is PICKUPS")
ME5_HealthFunc = 2
else
PrintLog("Error! ME5_HealthFunc flag not found or invalid! Defaulting to AUTO-REGEN")
ME5_HealthFunc = 1
end
-- ======================
-- SHIELD FUNCTIONALITY
-- ======================
if CheckSetting("cfg_ShieldFunc") == 0 then
PrintLog("Shield Functionality is REGEN")
ME5_ShieldFunc = 1
elseif CheckSetting("cfg_ShieldFunc") == 1 then
PrintLog("Shield Functionality is PICKUPS")
ME5_ShieldFunc = 2
else
PrintLog("Error! ME5_ShieldFunc flag not found or invalid! Defaulting to AUTO-REGEN")
ME5_ShieldFunc = 1
end
-- ======================
-- SHIELD REGEN FUNCTIONALITY
-- ======================
if CheckSetting("cfg_ShieldRegen") == 0 then
PrintLog("Shield Regen Functionality (Player Only) is AUTOMATIC")
ME5_ShieldRegen = 0
elseif CheckSetting("cfg_ShieldRegen") == 1 then
PrintLog("Shield Regen Functionality (Player Only) is DEFERRED")
ME5_ShieldRegen = 1
else
PrintLog("Error! ME5_ShieldRegen flag not found or invalid! Defaulting to DEFERRED")
ME5_ShieldRegen = 1
end
-- ======================
-- COLLECTOR HERO CLASS
-- ======================
if CheckSetting("cfg_HeroClassCOL") == 0 then
PrintLog("COL Hero Class is RANDOM")
ME5_HeroClassCOL = math.random(1, MAX_COL_HERO_COUNT)
elseif CheckSetting("cfg_HeroClassCOL") == 1 then
PrintLog("COL Hero Class is HARBINGER")
ME5_HeroClassCOL = 1
else
PrintLog("Error! ME5_HeroClassCOL flag not found or invalid! Defaulting to RANDOM")
ME5_HeroClassCOL = math.random(1, MAX_COL_HERO_COUNT)
end
-- ======================
-- EVOLVED GETH HERO CLASS
-- ======================
if CheckSetting("cfg_HeroClassEVG") == 0 then
PrintLog("EVG Hero Class is RANDOM")
ME5_HeroClassEVG = math.random(1, MAX_EVG_HERO_COUNT)
elseif CheckSetting("cfg_HeroClassEVG") == 1 then
PrintLog("EVG Hero Class is GETH PRIME (ME2)")
ME5_HeroClassEVG = 1
elseif CheckSetting("cfg_HeroClassEVG") == 2 then
PrintLog("EVG Hero Class is GETH PRIME (ME3)")
ME5_HeroClassEVG = 2
else
PrintLog("Error! ME5_HeroClassEVG flag not found or invalid! Defaulting to RANDOM")
ME5_HeroClassEVG = math.random(1, MAX_EVG_HERO_COUNT)
end
-- ======================
-- HERETIC GETH HERO CLASS
-- ======================
if CheckSetting("cfg_HeroClassGTH") == 0 then
PrintLog("GTH Hero Class is RANDOM")
ME5_HeroClassGTH = math.random(1, MAX_GTH_HERO_COUNT)
elseif CheckSetting("cfg_HeroClassGTH") == 1 then
PrintLog("GTH Hero Class is GETH PRIME (ME2)")
ME5_HeroClassGTH = 1
elseif CheckSetting("cfg_HeroClassGTH") == 2 then
PrintLog("GTH Hero Class is GETH PRIME (ME3)")
ME5_HeroClassGTH = 2
else
PrintLog("Error! ME5_HeroClassGTH flag not found or invalid! Defaulting to RANDOM")
ME5_HeroClassGTH = math.random(1, MAX_GTH_HERO_COUNT)
end
-- ======================
-- ALLIANCE HERO CLASS
-- ======================
if CheckSetting("cfg_HeroClassSSV") == 0 then
PrintLog("SSV Hero Class is RANDOM")
ME5_HeroClassSSV = math.random(1, MAX_SSV_HERO_COUNT)
elseif CheckSetting("cfg_HeroClassSSV") == 1 then
PrintLog("SSV Hero Class is SHEPARD")
ME5_HeroClassSSV = 1
elseif CheckSetting("cfg_HeroClassSSV") == 2 then
PrintLog("SSV Hero Class is JACK")
ME5_HeroClassSSV = 2
else
PrintLog("Error! ME5_HeroClassSSV flag not found or invalid! Defaulting to RANDOM")
ME5_HeroClassSSV = math.random(1, MAX_SSV_HERO_COUNT)
end
-- ======================
-- SHEPARD CLASS
-- ======================
if CheckSetting("cfg_ShepardClass") == 0 then
PrintLog("Shepard Class is RANDOM")
ME5_ShepardClass = math.random(1, MAX_SHEP_CLASS_COUNT)
elseif CheckSetting("cfg_ShepardClass") == 1 then
PrintLog("Shepard Class is SOLDIER")
ME5_ShepardClass = 1
elseif CheckSetting("cfg_ShepardClass") == 2 then
PrintLog("Shepard Class is INFILTRATOR")
ME5_ShepardClass = 2
elseif CheckSetting("cfg_ShepardClass") == 3 then
PrintLog("Shepard Class is ENGINEER")
ME5_ShepardClass = 3
elseif CheckSetting("cfg_ShepardClass") == 4 then
PrintLog("Shepard Class is ADEPT")
ME5_ShepardClass = 4
elseif CheckSetting("cfg_ShepardClass") == 5 then
PrintLog("Shepard Class is SENTINEL")
ME5_ShepardClass = 5
elseif CheckSetting("cfg_ShepardClass") == 6 then
PrintLog("Shepard Class is VANGUARD")
ME5_ShepardClass = 6
else
PrintLog("Error! ME5_ShepardClass flag not found or invalid! Defaulting to RANDOM")
ME5_ShepardClass = math.random(1, MAX_SHEP_CLASS_COUNT)
end
-- ======================
-- SHEPARD GENDER
-- ======================
if CheckSetting("cfg_ShepardGender") == 0 then
PrintLog("Shepard Gender is RANDOM")
ME5_ShepardGender = math.random(1, MAX_SHEP_GENDER_COUNT)
elseif CheckSetting("cfg_ShepardGender") == 1 then
PrintLog("Shepard Gender is MALE")
ME5_ShepardGender = 1
elseif CheckSetting("cfg_ShepardGender") == 2 then
PrintLog("Shepard Gender is FEMALE")
ME5_ShepardGender = 2
else
PrintLog("Error! ME5_ShepardGender flag not found or invalid! Defaulting to RANDOM")
ME5_ShepardGender = math.random(1, MAX_SHEP_GENDER_COUNT)
end
-- ======================
-- SIDE VARIATION
-- ======================
if CheckSetting("cfg_SideVar") == 0 then
PrintLog("Side Variation is RANDOM")
ME5_SideVar = math.random(1, MAX_FACTION_COUNT)
elseif CheckSetting("cfg_SideVar") == 1 then
PrintLog("Side Variation is SSVxGTH")
ME5_SideVar = 1
elseif CheckSetting("cfg_SideVar") == 2 then
PrintLog("Side Variation is SSVxCOL")
ME5_SideVar = 2
elseif CheckSetting("cfg_SideVar") == 3 then
PrintLog("Side Variation is EVGxGTH")
ME5_SideVar = 3
elseif CheckSetting("cfg_SideVar") == 4 then
PrintLog("Side Variation is EVGxCOL")
ME5_SideVar = 4
elseif CheckSetting("cfg_SideVar") == 5 then
PrintLog("Side Variation is SSVxRPR")
ME5_SideVar = 5
elseif CheckSetting("cfg_SideVar") == 6 then
PrintLog("Side Variation is SSVxCER")
ME5_SideVar = 6
else
PrintLog("Error! ME5_SideVar flag not found or invalid! Defaulting to RANDOM")
ME5_SideVar = math.random(1, MAX_FACTION_COUNT)
end
-- ======================
-- EDEN PRIME WEATHER
-- ======================
if not ScriptCB_InMultiplayer() then
if CheckSetting("cfg_MapVarEDN") == 0 then
PrintLog("Eden Prime Weather is RANDOM")
ME5_MapVarEDN = math.random(1,3)
elseif CheckSetting("cfg_MapVarEDN") == 1 then
PrintLog("Eden Prime Weather is STORMY")
ME5_MapVarEDN = 1
elseif CheckSetting("cfg_MapVarEDN") == 2 then
PrintLog("Eden Prime Weather is CLOUDY")
ME5_MapVarEDN = 2
elseif CheckSetting("cfg_MapVarEDN") == 3 then
PrintLog("Eden Prime Weather is DUSK")
ME5_MapVarEDN = 3
else
PrintLog("Error! ME5_MapVarEDN flag not found or invalid! Defaulting to RANDOM")
ME5_MapVarEDN = math.random(1,3)
end
else
PrintLog("Eden Prime Weather is CLOUDY")
ME5_MapVarEDN = 2
end
-- ======================
-- VIRMIRE PLAY AREA
-- ======================
if not ScriptCB_InMultiplayer() then
if CheckSetting("cfg_MapVarVRM") == 0 then
PrintLog("Virmire Play Area is RANDOM")
ME5_MapVarVRM = math.random(1,2)
elseif CheckSetting("cfg_MapVarVRM") == 1 then
PrintLog("Virmire Play Area is UPPER LEVEL")
ME5_MapVarVRM = 1
elseif CheckSetting("cfg_MapVarVRM") == 2 then
PrintLog("Virmire Play Area is LOWER LEVEL")
ME5_MapVarVRM = 2
else
PrintLog("Error! ME5_MapVarVRM flag not found or invalid! Defaulting to RANDOM")
ME5_MapVarVRM = math.random(1,2)
end
else
PrintLog("Virmire Play Area is UPPER LEVEL")
ME5_MapVarVRM = 1
end
-- ======================
-- SOL MAP MUSIC
-- ======================
if CheckSetting("cfg_SolMapMusic") == 0 then
PrintLog("'Sol Map Pack' Map Music is AMBIENT SOUNDSCAPE")
ME5_SolMapMusic = 0
elseif CheckSetting("cfg_SolMapMusic") == 1 then
PrintLog("'Sol Map Pack' Map Music is MASS EFFECT")
ME5_SolMapMusic = 1
else
PrintLog("Error! ME5_SolMapMusic flag not found or invalid! Defaulting to AMBIENT SOUNDSCAPE")
ME5_SolMapMusic = 0
end
-- ======================
-- FACTION ANNOUNCER VO
-- ======================
if CheckSetting("cfg_FactionVO") == 0 then
PrintLog("Faction Announcer VO is DISABLED")
ME5_FactionVO = 0
elseif CheckSetting("cfg_FactionVO") == 1 then
PrintLog("Faction Announcer VO is QUIET")
ME5_FactionVO = 1
elseif CheckSetting("cfg_FactionVO") == 2 then
PrintLog("Faction Announcer VO is LOUD")
ME5_FactionVO = 2
else
PrintLog("Error! ME5_FactionVO flag not found or invalid! Defaulting to LOUD")
ME5_FactionVO = 2
end
-- ======================
-- LOW HEALTH SOUND
-- ======================
if CheckSetting("cfg_LowHealthSound") == 0 then
PrintLog("'Low Health' Feedback Sounds are DISABLED")
ME5_LowHealthSound = 0
elseif CheckSetting("cfg_LowHealthSound") == 1 then
PrintLog("'Low Health' Feedback Sounds are ENABLED")
ME5_LowHealthSound = 1
else
PrintLog("Error! ME5_LowHealthSound flag not found or invalid! Defaulting to ENABLED")
ME5_LowHealthSound = 1
end
-- ======================
-- KILL SOUND
-- ======================
if CheckSetting("cfg_KillSound") == 0 then
PrintLog("'Enemy Killed' Feedback Sounds are DISABLED")
ME5_KillSound = 0
elseif CheckSetting("cfg_KillSound") == 1 then
PrintLog("'Enemy Killed' Feedback Sounds are QUIET")
ME5_KillSound = 1
elseif CheckSetting("cfg_KillSound") == 2 then
PrintLog("'Enemy Killed' Feedback Sounds are LOUD")
ME5_KillSound = 2
else
PrintLog("Error! ME5_KillSound flag not found or invalid! Defaulting to LOUD")
ME5_KillSound = 2
end
-- ======================
-- PLAYER DAMAGE SOUNDS
-- ======================
if CheckSetting("cfg_PlayerDmgSound") == 0 then
PrintLog("'Player Damaged' Feedback Sounds are DISABLED")
ME5_PlayerDmgSound = 0
elseif CheckSetting("cfg_PlayerDmgSound") == 1 then
PrintLog("'Player Damaged' Feedback Sounds are QUIET")
ME5_PlayerDmgSound = 1
elseif CheckSetting("cfg_PlayerDmgSound") == 2 then
PrintLog("'Player Damaged' Feedback Sounds are LOUD")
ME5_PlayerDmgSound = 2
else
PrintLog("Error! ME5_PlayerDmgSound flag not found or invalid! Defaulting to LOUD")
ME5_PlayerDmgSound = 2
end
-- ======================
-- HIT MARKER SOUNDS
-- ======================
if CheckSetting("cfg_HitMarkerSound") == 0 then
PrintLog("Hit Marker Sounds are DISABLED")
ME5_HitMarkerSound = 0
elseif CheckSetting("cfg_HitMarkerSound") == 1 then
PrintLog("Hit Marker Sounds are QUIET")
ME5_HitMarkerSound = 1
elseif CheckSetting("cfg_HitMarkerSound") == 2 then
PrintLog("Hit Marker Sounds are LOUD")
ME5_HitMarkerSound = 2
else
PrintLog("Error! ME5_HitMarkerSound flag not found or invalid! Defaulting to LOUD")
ME5_HitMarkerSound = 2
end
PrintLog("Checking configuration parameters... Done!")
-- Call the AI hero support script if AI heroes are enabled
if ME5_AIHeroes == 1 then
ScriptCB_DoFile("ME5_AIHeroSupport")
end
-- Determines Shepard's class.
function DecideShepClass()
if ME5_ShepardClass == 1 then
PrintLog("DecideShepClass(): Deciding BroShep class... SOLDIER")
SSVHeroClass = "ssv_hero_shepard_soldier"
elseif ME5_ShepardClass == 2 then
PrintLog("DecideShepClass(): Deciding BroShep class... INFILTRATOR")
SSVHeroClass = "ssv_hero_shepard_infiltrator"
elseif ME5_ShepardClass == 3 then
PrintLog("DecideShepClass(): Deciding BroShep class... ENGINEER")
SSVHeroClass = "ssv_hero_shepard_engineer"
elseif ME5_ShepardClass == 4 then
PrintLog("DecideShepClass(): Deciding BroShep class... ADEPT")
SSVHeroClass = "ssv_hero_shepard_adept"
elseif ME5_ShepardClass == 5 then
PrintLog("DecideShepClass(): Deciding BroShep class... SENTINEL")
SSVHeroClass = "ssv_hero_shepard_sentinel"
elseif ME5_ShepardClass == 6 then
PrintLog("DecideShepClass(): Deciding BroShep class... VANGUARD")
SSVHeroClass = "ssv_hero_shepard_vanguard"
else
PrintLog("DecideShepClass(): Error! ME5_ShepardClass is invalid! Defaulting to SOLDIER")
SSVHeroClass = "ssv_hero_shepard_soldier"
end
end
-- Determines the Systems Alliance's hero unit.
function DecideSSVHeroClass()
if ME5_HeroClassSSV == 1 then
PrintLog("DecideSSVHeroClass(): Deciding SSV hero class... SHEPARD")
DecideShepClass()
elseif ME5_HeroClassSSV == 2 then
PrintLog("DecideSSVHeroClass(): Deciding SSV hero class... JACK")
SSVHeroClass = "ssv_hero_jack"
--[[elseif ME5_HeroClassSSV == 3 then
PrintLog("DecideSSVHeroClass(): Deciding SSV hero class... SAMARA")
SSVHeroClass = "ssv_hero_samara"
elseif ME5_HeroClassSSV == 4 then
PrintLog("DecideSSVHeroClass(): Deciding SSV hero class... LEGION")
SSVHeroClass = "ssv_hero_legion"]]
else
PrintLog("DecideSSVHeroClass(): Error! ME5_HeroClassSSV value is invalid! Defaulting to SHEPARD")
DecideShepClass()
end
end
-- Determines the Heretic Geth's hero unit.
function DecideGTHHeroClass()
if ME5_HeroClassGTH == 1 then
PrintLog("DecideGTHHeroClass(): Deciding GTH hero class... GETH PRIME (ME2)")
GTHHeroClass = "gth_hero_prime_me2"
elseif ME5_HeroClassGTH == 2 then
PrintLog("DecideGTHHeroClass(): Deciding GTH hero class... GETH PRIME (ME3)")
GTHHeroClass = "gth_hero_prime_me3"
else
PrintLog("DecideGTHHeroClass(): Error! ME5_HeroClassGTH value is invalid! Defaulting to GETH PRIME (ME2)")
GTHHeroClass = "gth_hero_prime_me2"
end
end
-- Determines the Collectors' hero unit.
function DecideCOLHeroClass()
if ME5_HeroClassCOL == 1 then
PrintLog("DecideCOLHeroClass(): Deciding COL hero class... HARBINGER")
COLHeroClass = "col_hero_harbinger"
else
PrintLog("DecideCOLHeroClass(): Error! ME5_HeroClassCOL value is invalid! Defaulting to HARBINGER")
COLHeroClass = "col_hero_harbinger"
end
end
-- Determines the Evolved Geth's hero unit.
function DecideEVGHeroClass()
if ME5_HeroClassEVG == 1 then
PrintLog("DecideEVGHeroClass(): Deciding EVG hero class... GETH PRIME (ME2)")
EVGHeroClass = "gth_hero_prime_me2"
elseif ME5_HeroClassEVG == 2 then
PrintLog("DecideEVGHeroClass(): Deciding EVG hero class... GETH PRIME (ME3)")
EVGHeroClass = "gth_hero_prime_me3"
else
PrintLog("DecideEVGHeroClass(): Error! ME5_HeroClassEVG value is invalid! Defaulting to GETH PRIME (ME3)")
EVGHeroClass = "gth_hero_prime_me3"
end
end
if not ScriptCB_InMultiplayer() then
DecideSSVHeroClass()
DecideGTHHeroClass()
DecideCOLHeroClass()
DecideEVGHeroClass()
end
PrintLog("Exited")