mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 16:14:35 +00:00
Merge branch 'NoEvo'
This commit is contained in:
commit
81f78fb075
4 changed files with 45 additions and 22 deletions
|
|
@ -47,6 +47,7 @@ function GetTeamCounts(%game)
|
||||||
//Variables
|
//Variables
|
||||||
$TotalTeamPlayerCount = $TeamRank[1, count] + $TeamRank[2, count];
|
$TotalTeamPlayerCount = $TeamRank[1, count] + $TeamRank[2, count];
|
||||||
$AllPlayerCount = $HostGamePlayerCount;
|
$AllPlayerCount = $HostGamePlayerCount;
|
||||||
|
$Observers = $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]);
|
||||||
|
|
||||||
//echo("$PlayerCount[0] " @ $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]));
|
//echo("$PlayerCount[0] " @ $HostGamePlayerCount - ($TeamRank[1, count] + $TeamRank[2, count]));
|
||||||
//echo("$PlayerCount[1] " @ $TeamRank[1, count]);
|
//echo("$PlayerCount[1] " @ $TeamRank[1, count]);
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ function DefaultGame::testTeamKill(%game, %victimID, %killerID)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// Ignore this map
|
// Ignore this map
|
||||||
if($CurrentMission $= "Mac_FlagArena")
|
if($CurrentMission $= "Mac_FlagArena" || $CurrentMission $= "Machineeggs")
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
// warn the player
|
// warn the player
|
||||||
|
|
|
||||||
|
|
@ -174,6 +174,32 @@ function DefaultGame::missionLoadDone(%game)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Temp Fix for Asset nameTag Strings
|
||||||
|
function GameBaseData::onAdd(%data, %obj)
|
||||||
|
{
|
||||||
|
if(%data.targetTypeTag !$= "")
|
||||||
|
{
|
||||||
|
// use the name given to the object in the mission file
|
||||||
|
if(%obj.nameTag !$= "" && strpos(%obj.nameTag,"\x01") == -1)
|
||||||
|
{
|
||||||
|
%obj.nameTag = addTaggedString(%obj.nameTag);
|
||||||
|
%nameTag = %obj.nameTag;
|
||||||
|
}
|
||||||
|
else if(%data.targetNameTag !$= "")
|
||||||
|
%nameTag = %data.targetNameTag;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if(%obj.name !$= "")
|
||||||
|
%nameTag = %obj.nameTag = addTaggedString(%obj.name);
|
||||||
|
else
|
||||||
|
%nameTag = %obj.nameTag = addTaggedString("Base"); // fail safe so it shows up on cc
|
||||||
|
}
|
||||||
|
%obj.target = createTarget(%obj, %nameTag, "", "", %data.targetTypeTag, 0, 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
%obj.target = -1;
|
||||||
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Prevent package from being activated if it is already
|
// Prevent package from being activated if it is already
|
||||||
|
|
|
||||||
|
|
@ -2800,27 +2800,23 @@ function Armor::damageObject(%data, %targetObject, %sourceObject, %position, %am
|
||||||
%flash = 0.75;
|
%flash = 0.75;
|
||||||
|
|
||||||
// Teratos: Originally from Eolk? Mine+Disc tracking/death message support.
|
// Teratos: Originally from Eolk? Mine+Disc tracking/death message support.
|
||||||
// client.mineDisc = [true|false]
|
// No Schedules by DarkTiger
|
||||||
// client.mineDiscCheck [0-None|1-Disc Damage|2-Mine Damage]
|
|
||||||
// Teratos: Don't understand why "%client = %targetClient;" -- possibly to avoid carrying .minediscCheck field?
|
|
||||||
// Teratos: A little more redundant code and less readable for a few less comparisons.
|
|
||||||
%targetClient.mineDisc = false;
|
%targetClient.mineDisc = false;
|
||||||
if(%damageType == $DamageType::Disc) {
|
switch$(%damageType)
|
||||||
%client = %targetClient; // Oops
|
{
|
||||||
if(%client.minediscCheck == 0) { // No Mine or Disc damage recently
|
case $DamageType::Disc:
|
||||||
%client.minediscCheck = 1;
|
if(%targetClient.mdc == 1 && (getSimTime() - %targetClient.mdcTime1) < 256)
|
||||||
schedule(300, 0, "resetMineDiscCheck", %client);
|
%targetClient.mineDisc = true;
|
||||||
} else if(%client.minediscCheck == 2) { // Recent Mine damage
|
|
||||||
%client.mineDisc = true;
|
%targetClient.mdc = 2;
|
||||||
}
|
%targetClient.mdcTime2 = getSimTime();
|
||||||
} else if (%damageType == $DamageType::Mine) {
|
|
||||||
%client = %targetClient; // Oops
|
case $DamageType::Mine:
|
||||||
if(%client.minediscCheck == 0) { // No Mine or Disc damage recently
|
if(%targetClient.mdc == 2 && (getSimTime() - %targetClient.mdcTime2) < 256)
|
||||||
%client.minediscCheck = 2;
|
%targetClient.mineDisc = true;
|
||||||
schedule(300, 0, "resetMineDiscCheck", %client);
|
|
||||||
} else if(%client.minediscCheck == 1) { // Recent Disc damage
|
%targetClient.mdc = 1;
|
||||||
%client.mineDisc = true;
|
%targetClient.mdcTime1 = getSimTime();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// -- End Mine+Disc insert.
|
// -- End Mine+Disc insert.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue