Skip to content

Commit bfab42b

Browse files
authored
Update shavit-ssj.sp
deshitify more
1 parent 1783c67 commit bfab42b

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

shavit-ssj.sp

-24
Original file line numberDiff line numberDiff line change
@@ -591,21 +591,15 @@ bool SSJ_PrintStats(int client, int target)
591591
if (g_iJump[target] == 1)
592592
{
593593
if (!g_bFirstJump[client] && g_iUsageMode[client] != 1)
594-
{
595594
return false;
596-
}
597595
}
598596
else if (g_bUsageRepeat[client])
599597
{
600598
if (g_iJump[target] % g_iUsageMode[client] != 0)
601-
{
602599
return false;
603-
}
604600
}
605601
else if (g_iJump[target] != g_iUsageMode[client])
606-
{
607602
return false;
608-
}
609603

610604
float velocity[3];
611605
GetEntPropVector(target, Prop_Data, "m_vecAbsVelocity", velocity);
@@ -616,21 +610,15 @@ bool SSJ_PrintStats(int client, int target)
616610

617611
float coeffsum = 0.0;
618612
if (g_iStrafeTick[target] > 0)
619-
{
620613
coeffsum = g_fRawGain[target] / g_iStrafeTick[target] * 100.0;
621-
}
622614

623615
float distance = GetVectorLength(g_fTraveledDistance[target]);
624616
if (distance > g_fTrajectory[target])
625-
{
626617
distance = g_fTrajectory[target];
627-
}
628618

629619
float efficiency = 0.0;
630620
if (distance > 0.0 && g_fTrajectory[target] > 0.0)
631-
{
632621
efficiency = coeffsum * distance / g_fTrajectory[target];
633-
}
634622

635623
coeffsum = RoundToFloor(coeffsum * 100.0 + 0.5) / 100.0;
636624
efficiency = RoundToFloor(efficiency * 100.0 + 0.5) / 100.0;
@@ -642,36 +630,24 @@ bool SSJ_PrintStats(int client, int target)
642630
char sTime[32];
643631

644632
if (g_bCurrentSpeed[client])
645-
{
646633
Format(sMessage, sizeof(sMessage), "%s %s| Spd: %s%i", sMessage, gS_ChatStrings.sText, gS_ChatStrings.sVariable, RoundToFloor(GetVectorLength(velocity)));
647-
}
648634

649635
if (g_iJump[target] > 0)
650636
{
651637
if (g_bHeightDiff[client])
652-
{
653638
Format(sMessage, sizeof(sMessage), "%s %s| H Δ: %s%i", sMessage, gS_ChatStrings.sText, gS_ChatStrings.sVariable, RoundToFloor(origin[2]) - RoundToFloor(g_fInitialHeight[target]));
654-
}
655639

656640
if (g_bGainStats[client])
657-
{
658641
Format(sMessage, sizeof(sMessage), "%s %s| Gn: %s%.2f%%", sMessage, gS_ChatStrings.sText, gS_ChatStrings.sVariable, coeffsum);
659-
}
660642

661643
if (g_bStrafeSync[client])
662-
{
663644
Format(sMessage, sizeof(sMessage), "%s %s| Snc: %s%.2f%%", sMessage, gS_ChatStrings.sText, gS_ChatStrings.sVariable, 100.0 * g_iSyncedTick[target] / g_iStrafeTick[target]);
664-
}
665645

666646
if (g_bEfficiency[client])
667-
{
668647
Format(sMessage, sizeof(sMessage), "%s %s| Eff: %s%.2f%%", sMessage, gS_ChatStrings.sText, gS_ChatStrings.sVariable, efficiency);
669-
}
670648

671649
if (g_bStrafeCount[client])
672-
{
673650
Format(sMessage, sizeof(sMessage), "%s %s| Strf: %s%i", sMessage, gS_ChatStrings.sText, gS_ChatStrings.sVariable, g_iStrafeCount[target]);
674-
}
675651

676652
if (g_bTime[client])
677653
{

0 commit comments

Comments
 (0)