mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-16 00:24:35 +00:00
Fog bug fix
Better transition from distance to speed etc
This commit is contained in:
parent
8fcf30cc39
commit
933b1f6db2
2 changed files with 39 additions and 27 deletions
|
|
@ -32,9 +32,6 @@ if (!isActivePackage(StartTeamCounts))
|
||||||
|
|
||||||
function GetTeamCounts( %game, %client, %respawn )
|
function GetTeamCounts( %game, %client, %respawn )
|
||||||
{
|
{
|
||||||
//Run MissionTypeOptions
|
|
||||||
MissionTypeOptions();
|
|
||||||
|
|
||||||
//Get teamcounts
|
//Get teamcounts
|
||||||
if( $GetCountsClientTeamChange && $countdownStarted && $MatchStarted )
|
if( $GetCountsClientTeamChange && $countdownStarted && $MatchStarted )
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -10,35 +10,50 @@
|
||||||
// $Host::PUGPassword = "pickup";
|
// $Host::PUGPassword = "pickup";
|
||||||
//
|
//
|
||||||
|
|
||||||
|
package MissionTypeOptions
|
||||||
|
{
|
||||||
|
|
||||||
|
function loadMissionStage2()
|
||||||
|
{
|
||||||
|
//Run MissionTypeOptions
|
||||||
|
MissionTypeOptions();
|
||||||
|
|
||||||
|
parent::loadMissionStage2();
|
||||||
|
}
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
// Prevent package from being activated if it is already
|
||||||
|
if (!isActivePackage(MissionTypeOptions))
|
||||||
|
activatePackage(MissionTypeOptions);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function MissionTypeOptions()
|
function MissionTypeOptions()
|
||||||
{
|
{
|
||||||
//Only run before mission start and countdown start
|
if( $CurrentMissionType !$= "LakRabbit" )
|
||||||
if( !$MatchStarted && !$countdownStarted )
|
|
||||||
{
|
{
|
||||||
if( $CurrentMissionType !$= "LakRabbit" )
|
if( $Host::TournamentMode && $Host::PUGautoPassword )
|
||||||
{
|
|
||||||
if( $Host::TournamentMode && $Host::PUGautoPassword )
|
|
||||||
|
|
||||||
$Host::Password = $Host::PUGPassword;
|
$Host::Password = $Host::PUGPassword;
|
||||||
|
|
||||||
else if( !$Host::TournamentMode )
|
else if( !$Host::TournamentMode )
|
||||||
{
|
|
||||||
$Host::Password = "";
|
|
||||||
}
|
|
||||||
|
|
||||||
$Host::HiVisibility = "0";
|
|
||||||
}
|
|
||||||
else if( $CurrentMissionType $= "LakRabbit" )
|
|
||||||
{
|
{
|
||||||
$Host::Password = "";
|
$Host::Password = "";
|
||||||
$Host::TournamentMode = 0;
|
|
||||||
|
|
||||||
$Host::HiVisibility = "1";
|
|
||||||
}
|
}
|
||||||
//For zCheckVar.cs TournyNetClient
|
|
||||||
if( $CurrentMissionType !$= "CTF" && $CheckVerObserverRunOnce )
|
|
||||||
CheckVerObserverReset();
|
|
||||||
|
|
||||||
//echo ("PUGpassCheck");
|
$Host::HiVisibility = "0";
|
||||||
}
|
}
|
||||||
|
else if( $CurrentMissionType $= "LakRabbit" )
|
||||||
|
{
|
||||||
|
$Host::Password = "";
|
||||||
|
$Host::TournamentMode = 0;
|
||||||
|
|
||||||
|
$Host::HiVisibility = "1";
|
||||||
|
}
|
||||||
|
//For zCheckVar.cs TournyNetClient
|
||||||
|
if( $CurrentMissionType !$= "CTF" && $CheckVerObserverRunOnce )
|
||||||
|
CheckVerObserverReset();
|
||||||
|
|
||||||
|
//echo ("PUGpassCheck");
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue