mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-07-15 08:04:39 +00:00
Score Restore Exception 3
This commit is contained in:
parent
b38b29b871
commit
8fcf30cc39
1 changed files with 20 additions and 19 deletions
|
|
@ -2375,7 +2375,7 @@ function dtStatsMissionDropReady(%game, %client){ // called when client has fini
|
||||||
for (%i = 0; %i < statsGroup.getCount(); %i++)
|
for (%i = 0; %i < statsGroup.getCount(); %i++)
|
||||||
{ // check to see if my old data is still there
|
{ // check to see if my old data is still there
|
||||||
%dtStats = statsGroup.getObject(%i);
|
%dtStats = statsGroup.getObject(%i);
|
||||||
if(%dtStats.guid == %client.guid)
|
if(%dtStats.guid == %client.guid && %dtStats.markForDelete == 0)
|
||||||
{
|
{
|
||||||
if(%dtStats.leftPCT < $dtStats::fgPercentage[%game.class] && $dtStats::fullGames[%game.class])
|
if(%dtStats.leftPCT < $dtStats::fgPercentage[%game.class] && $dtStats::fullGames[%game.class])
|
||||||
{
|
{
|
||||||
|
|
@ -2389,7 +2389,9 @@ function dtStatsMissionDropReady(%game, %client){ // called when client has fini
|
||||||
%dtStats.markForDelete = 0;
|
%dtStats.markForDelete = 0;
|
||||||
%foundOld =1;
|
%foundOld =1;
|
||||||
resGameStats(%client,%game.class); // restore stats;
|
resGameStats(%client,%game.class); // restore stats;
|
||||||
|
if(%client.score >= 1 || %client.score <= -1 ){ //if(%num >= 1 || %num <= -1 ){
|
||||||
messageClient(%client, 'MsgClient', '\crWelcome back %1. Your score has been restored.~wfx/misc/rolechange.wav', %client.name);
|
messageClient(%client, 'MsgClient', '\crWelcome back %1. Your score has been restored.~wfx/misc/rolechange.wav', %client.name);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2425,10 +2427,9 @@ function dtStatsMissionDropReady(%game, %client){ // called when client has fini
|
||||||
%client.dtStats.gameData[%game.class] = 1;
|
%client.dtStats.gameData[%game.class] = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function dtStatsClientLeaveGame(%game, %client){
|
function dtStatsClientLeaveGame(%game, %client){
|
||||||
if(!%client.isAiControlled()){
|
if(!%client.isAiControlled() && isObject(%client.dtStats)){
|
||||||
if(%client.score == 0){
|
if(%client.score < 1 && %client.score > -1 ){ // if(%num < 1 && %num > -1 ){
|
||||||
%client.dtStats.delete();
|
%client.dtStats.delete();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue