mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-03-06 21:20:22 +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
|
|
@ -31,10 +31,7 @@ if (!isActivePackage(StartTeamCounts))
|
|||
activatePackage(StartTeamCounts);
|
||||
|
||||
function GetTeamCounts( %game, %client, %respawn )
|
||||
{
|
||||
//Run MissionTypeOptions
|
||||
MissionTypeOptions();
|
||||
|
||||
{
|
||||
//Get teamcounts
|
||||
if( $GetCountsClientTeamChange && $countdownStarted && $MatchStarted )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -10,35 +10,50 @@
|
|||
// $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()
|
||||
{
|
||||
//Only run before mission start and countdown start
|
||||
if( !$MatchStarted && !$countdownStarted )
|
||||
if( $CurrentMissionType !$= "LakRabbit" )
|
||||
{
|
||||
if( $CurrentMissionType !$= "LakRabbit" )
|
||||
{
|
||||
if( $Host::TournamentMode && $Host::PUGautoPassword )
|
||||
|
||||
$Host::Password = $Host::PUGPassword;
|
||||
|
||||
else if( !$Host::TournamentMode )
|
||||
{
|
||||
$Host::Password = "";
|
||||
}
|
||||
|
||||
$Host::HiVisibility = "0";
|
||||
}
|
||||
else if( $CurrentMissionType $= "LakRabbit" )
|
||||
if( $Host::TournamentMode && $Host::PUGautoPassword )
|
||||
|
||||
$Host::Password = $Host::PUGPassword;
|
||||
|
||||
else if( !$Host::TournamentMode )
|
||||
{
|
||||
$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