Skip to content

Commit

Permalink
Merge pull request #20 from RomeoCantCode/main
Browse files Browse the repository at this point in the history
1.2.2 / fix ms querying UDP port on register
  • Loading branch information
xamionex authored May 5, 2022
2 parents 76ff76c + afe0614 commit 0cceec5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "UnholyTrinity",
"version_number": "1.2.1",
"version_number": "1.2.2",
"website_url": "https://github.com/xamionex/xamionex.UnholyTrinity",
"description": "Quake Unholy Trinity similar gameplay in titanfall 2",
"dependencies": []
Expand Down
2 changes: 1 addition & 1 deletion mods/xamionex.UnholyTrinity/mod.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"Name": "xamionex.UnholyTrinity",
"Description": "This is my custom weapons for the UnholyTrinity server\n\nThis is a server side script, no need for clients to download",
"Version": "1.2.1",
"Version": "1.2.2",
"LoadPriority": 2,
"Scripts":[
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ string uht_gamemode

void function UnholyTrinity_Init()
{
thread ThreadUnholyTrinity()
}

void function ThreadUnholyTrinity()
{
wait 5.0 // this wait is needed otherwise master server can't connect to game session if you change the map immediately.
uht_wenttolobbyfirst = GetConVarInt( "uht_wenttolobbyfirst" )

if( uht_wenttolobbyfirst == 0)
Expand All @@ -30,12 +36,8 @@ void function UnholyTrinity_Init()
GameRules_ChangeMap( "mp_lobby", "private_match" )
SetConVarInt( "uht_wenttolobbyfirst", 1 )
}
thread ThreadUnholyTrinity()
}

void function ThreadUnholyTrinity()
{
wait 2.0
wait 2.0 // just wait a bit between mapchange, why not

if( GetMapName() == "mp_lobby" )
{
Expand Down

0 comments on commit 0cceec5

Please sign in to comment.