From afe0614b42c6cf40132087e759da08d4534ef102 Mon Sep 17 00:00:00 2001 From: RomeoCantCode Date: Thu, 5 May 2022 14:08:30 +0200 Subject: [PATCH] 1.2.2 / fix ms querying UDP port on register --- manifest.json | 2 +- mods/xamionex.UnholyTrinity/mod.json | 2 +- .../mod/scripts/vscripts/UnholyTrinity.nut | 12 +++++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/manifest.json b/manifest.json index 48d6458..cca944f 100644 --- a/manifest.json +++ b/manifest.json @@ -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": [] diff --git a/mods/xamionex.UnholyTrinity/mod.json b/mods/xamionex.UnholyTrinity/mod.json index afe679d..e84ee2b 100644 --- a/mods/xamionex.UnholyTrinity/mod.json +++ b/mods/xamionex.UnholyTrinity/mod.json @@ -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":[ { diff --git a/mods/xamionex.UnholyTrinity/mod/scripts/vscripts/UnholyTrinity.nut b/mods/xamionex.UnholyTrinity/mod/scripts/vscripts/UnholyTrinity.nut index 3a01ecc..d3294e1 100644 --- a/mods/xamionex.UnholyTrinity/mod/scripts/vscripts/UnholyTrinity.nut +++ b/mods/xamionex.UnholyTrinity/mod/scripts/vscripts/UnholyTrinity.nut @@ -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) @@ -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" ) {