Skip to content

Commit 76ff76c

Browse files
authored
Merge pull request #19 from RomeoCantCode/main
faky not not being able to commit fix
2 parents ce28607 + edbe858 commit 76ff76c

File tree

3 files changed

+36
-26
lines changed

3 files changed

+36
-26
lines changed

manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "UnholyTrinity",
3-
"version_number": "1.2.0",
3+
"version_number": "1.2.1",
44
"website_url": "https://github.com/xamionex/xamionex.UnholyTrinity",
55
"description": "Quake Unholy Trinity similar gameplay in titanfall 2",
66
"dependencies": []

mods/xamionex.UnholyTrinity/mod.json

+20-12
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,38 @@
11
{
22
"Name": "xamionex.UnholyTrinity",
33
"Description": "This is my custom weapons for the UnholyTrinity server\n\nThis is a server side script, no need for clients to download",
4-
"Version": "1.2.0",
4+
"Version": "1.2.1",
55
"LoadPriority": 2,
6-
"Scripts":[
6+
"Scripts":[
77
{
88
"Path": "WeaponBanList.nut",
99
"RunOn": "SERVER && MP",
1010
"ServerCallback": {
1111
"After": "WeaponBanList_Init"
1212
}
13-
},
14-
{
15-
"Path": "UnholyTrinity.nut",
16-
"RunOn": "SERVER && MP",
17-
"ServerCallback": {
18-
"After": "UnholyTrinity_Init"
19-
}
20-
}
13+
},
14+
{
15+
"Path": "UnholyTrinity.nut",
16+
"RunOn": "SERVER && MP",
17+
"ServerCallback": {
18+
"After": "UnholyTrinity_Init"
19+
}
20+
}
2121
],
22-
23-
"ConVars":
22+
23+
"ConVars":
2424
[
2525
{
2626
"Name": "uht_wenttolobbyfirst",
2727
"DefaultValue": "0"
28+
},
29+
{
30+
"Name": "uht_map",
31+
"DefaultValue": "mp_forwardbase_kodai"
32+
},
33+
{
34+
"Name": "uht_gamemode",
35+
"DefaultValue": "tdm"
2836
}
2937
]
3038
}

mods/xamionex.UnholyTrinity/mod/scripts/vscripts/UnholyTrinity.nut

+15-13
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,31 @@ untyped
22

33
global function UnholyTrinity_Init
44

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
86
string uht_map
97
string uht_gamemode
108

119
void function UnholyTrinity_Init()
1210
{
13-
wentToLobbyFirst = GetConVarInt( "uht_wenttolobbyfirst" )
14-
15-
if( wentToLobbyFirst == 0)
11+
uht_wenttolobbyfirst = GetConVarInt( "uht_wenttolobbyfirst" )
12+
13+
if( uht_wenttolobbyfirst == 0)
1614
{
1715
if( GetMapName() == "mp_lobby" )
1816
{
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
2022
}
2123
else
2224
{
2325
SetConVarString ( "uht_map", GetMapName() )
2426
SetConVarString( "uht_gamemode", GetConVarString( "mp_gamemode" ) )
2527
}
26-
27-
SetCurrentPlaylist( "private_match" )
28+
29+
SetCurrentPlaylist( "private_match" )
2830
GameRules_ChangeMap( "mp_lobby", "private_match" )
2931
SetConVarInt( "uht_wenttolobbyfirst", 1 )
3032
}
@@ -39,7 +41,7 @@ void function ThreadUnholyTrinity()
3941
{
4042
uht_gamemode = GetConVarString( "uht_gamemode" )
4143
uht_map = GetConVarString( "uht_map" )
42-
44+
4345
SetPlaylistVarOverride( "custom_air_accel_pilot", "9000" )
4446
SetPlaylistVarOverride( "featured_mode_amped_tacticals", "1" )
4547
SetPlaylistVarOverride( "fp_embark_enabled", "1" )
@@ -51,8 +53,8 @@ void function ThreadUnholyTrinity()
5153
SetPlaylistVarOverride( "scorelimit", "200" )
5254
SetPlaylistVarOverride( "timelimit", "30" )
5355
ServerCommand( "slide_step_velocity_reduction -45" )
54-
55-
SetCurrentPlaylist( uht_gamemode )
56+
57+
SetCurrentPlaylist( uht_gamemode )
5658
GameRules_ChangeMap( uht_map , uht_gamemode )
5759
}
58-
}
60+
}

0 commit comments

Comments
 (0)