@@ -2,29 +2,31 @@ untyped
2
2
3
3
global function UnholyTrinity_Init
4
4
5
- array<string> maplist = [" mp_forwardbase_kodai" , " mp_grave" ," mp_homestead" ," mp_thaw" ," mp_black_water_canal" ," mp_eden" ," mp_drydock" ," mp_crashsite3" ," mp_complex3" ," mp_coliseum" ," mp_angel_city" ," mp_colony02" ," mp_relic02" ," mp_glitch" ," mp_lf_stacks" ," mp_lf_meadow" ," mp_lf_deck" ," mp_lf_traffic" ," mp_lf_township" ," mp_lf_uma" ," mp_coliseum_column" ," mp_wargames" ," mp_rise" ]
6
- array< string> types = [" ps" ," gg" ," tt" ," inf" ," fastball" ," ctf_comp" ," hs" ," cp" ," lts" ," ctf" ," ttdm" ," turbo_ttdm" ," attdm" ," ffa" ," fra" ," coliseum" ," lf" ," rocket_lf" ," mfd" , " chamber" ]
7
- int wentToLobbyFirst
5
+ int uht_wenttolobbyfirst
8
6
string uht_map
9
7
string uht_gamemode
10
8
11
9
void function UnholyTrinity_Init()
12
10
{
13
- wentToLobbyFirst = GetConVarInt ( " uht_wenttolobbyfirst" )
14
-
15
- if ( wentToLobbyFirst == 0 )
11
+ uht_wenttolobbyfirst = GetConVarInt ( " uht_wenttolobbyfirst" )
12
+
13
+ if ( uht_wenttolobbyfirst == 0 )
16
14
{
17
15
if ( GetMapName () == " mp_lobby" )
18
16
{
19
- SetConVarString ( " uht_map" , " mp_forwardbase_kodai" )
17
+ // SetConVarString ( "uht_map", "mp_forwardbase_kodai" )
18
+ SetConVarInt ( " uht_wenttolobbyfirst" , 1 )
19
+ SetConVarString ( " uht_map" , GetConVarString ( " ns_private_match_last_map" ) )
20
+ SetConVarString ( " uht_gamemode" , GetConVarString ( " ns_private_match_last_mode" ) )
21
+ return
20
22
}
21
23
else
22
24
{
23
25
SetConVarString ( " uht_map" , GetMapName () )
24
26
SetConVarString ( " uht_gamemode" , GetConVarString ( " mp_gamemode" ) )
25
27
}
26
-
27
- SetCurrentPlaylist ( " private_match" )
28
+
29
+ SetCurrentPlaylist ( " private_match" )
28
30
GameRules_ChangeMap ( " mp_lobby" , " private_match" )
29
31
SetConVarInt ( " uht_wenttolobbyfirst" , 1 )
30
32
}
@@ -39,7 +41,7 @@ void function ThreadUnholyTrinity()
39
41
{
40
42
uht_gamemode = GetConVarString ( " uht_gamemode" )
41
43
uht_map = GetConVarString ( " uht_map" )
42
-
44
+
43
45
SetPlaylistVarOverride ( " custom_air_accel_pilot" , " 9000" )
44
46
SetPlaylistVarOverride ( " featured_mode_amped_tacticals" , " 1" )
45
47
SetPlaylistVarOverride ( " fp_embark_enabled" , " 1" )
@@ -51,8 +53,8 @@ void function ThreadUnholyTrinity()
51
53
SetPlaylistVarOverride ( " scorelimit" , " 200" )
52
54
SetPlaylistVarOverride ( " timelimit" , " 30" )
53
55
ServerCommand ( " slide_step_velocity_reduction -45" )
54
-
55
- SetCurrentPlaylist ( uht_gamemode )
56
+
57
+ SetCurrentPlaylist ( uht_gamemode )
56
58
GameRules_ChangeMap ( uht_map , uht_gamemode )
57
59
}
58
- }
60
+ }
0 commit comments