@@ -591,21 +591,15 @@ bool SSJ_PrintStats(int client, int target)
591
591
if (g_iJump [target ] == 1 )
592
592
{
593
593
if (! g_bFirstJump [client ] && g_iUsageMode [client ] != 1 )
594
- {
595
594
return false ;
596
- }
597
595
}
598
596
else if (g_bUsageRepeat [client ])
599
597
{
600
598
if (g_iJump [target ] % g_iUsageMode [client ] != 0 )
601
- {
602
599
return false ;
603
- }
604
600
}
605
601
else if (g_iJump [target ] != g_iUsageMode [client ])
606
- {
607
602
return false ;
608
- }
609
603
610
604
float velocity [3 ];
611
605
GetEntPropVector (target , Prop_Data , " m_vecAbsVelocity" , velocity );
@@ -616,21 +610,15 @@ bool SSJ_PrintStats(int client, int target)
616
610
617
611
float coeffsum = 0.0 ;
618
612
if (g_iStrafeTick [target ] > 0 )
619
- {
620
613
coeffsum = g_fRawGain [target ] / g_iStrafeTick [target ] * 100.0 ;
621
- }
622
614
623
615
float distance = GetVectorLength (g_fTraveledDistance [target ]);
624
616
if (distance > g_fTrajectory [target ])
625
- {
626
617
distance = g_fTrajectory [target ];
627
- }
628
618
629
619
float efficiency = 0.0 ;
630
620
if (distance > 0.0 && g_fTrajectory [target ] > 0.0 )
631
- {
632
621
efficiency = coeffsum * distance / g_fTrajectory [target ];
633
- }
634
622
635
623
coeffsum = RoundToFloor (coeffsum * 100.0 + 0.5 ) / 100.0 ;
636
624
efficiency = RoundToFloor (efficiency * 100.0 + 0.5 ) / 100.0 ;
@@ -642,36 +630,24 @@ bool SSJ_PrintStats(int client, int target)
642
630
char sTime [32 ];
643
631
644
632
if (g_bCurrentSpeed [client ])
645
- {
646
633
Format (sMessage , sizeof (sMessage ), " %s %s | Spd: %s%i " , sMessage , gS_ChatStrings .sText , gS_ChatStrings .sVariable , RoundToFloor (GetVectorLength (velocity )));
647
- }
648
634
649
635
if (g_iJump [target ] > 0 )
650
636
{
651
637
if (g_bHeightDiff [client ])
652
- {
653
638
Format (sMessage , sizeof (sMessage ), " %s %s | H Δ: %s%i " , sMessage , gS_ChatStrings .sText , gS_ChatStrings .sVariable , RoundToFloor (origin [2 ]) - RoundToFloor (g_fInitialHeight [target ]));
654
- }
655
639
656
640
if (g_bGainStats [client ])
657
- {
658
641
Format (sMessage , sizeof (sMessage ), " %s %s | Gn: %s%.2f%% " , sMessage , gS_ChatStrings .sText , gS_ChatStrings .sVariable , coeffsum );
659
- }
660
642
661
643
if (g_bStrafeSync [client ])
662
- {
663
644
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
- }
665
645
666
646
if (g_bEfficiency [client ])
667
- {
668
647
Format (sMessage , sizeof (sMessage ), " %s %s | Eff: %s%.2f%% " , sMessage , gS_ChatStrings .sText , gS_ChatStrings .sVariable , efficiency );
669
- }
670
648
671
649
if (g_bStrafeCount [client ])
672
- {
673
650
Format (sMessage , sizeof (sMessage ), " %s %s | Strf: %s%i " , sMessage , gS_ChatStrings .sText , gS_ChatStrings .sVariable , g_iStrafeCount [target ]);
674
- }
675
651
676
652
if (g_bTime [client ])
677
653
{
0 commit comments