@@ -322,7 +322,11 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
322322
323323 if ( attacker == self || G_Q3F_IsAllied ( attacker , self ) )
324324 {
325- AddScore ( attacker , self -> r .currentOrigin , -1 );
325+ if ( attacker != self || (attacker == self && g_suicideScorePenalty .integer > 0 ) )
326+ AddScore ( attacker , self -> r .currentOrigin , -1 );
327+ if (attacker == self ) {
328+ self -> client -> pers .stats .suicides ++ ;
329+ }
326330
327331 // Golliwog: Cheak for teamkills and ban accordingly.
328332 if ( attacker != self &&
@@ -337,6 +341,8 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
337341 // Golliwog.
338342 }
339343 else {
344+ self -> client -> pers .stats .player_deaths ++ ;
345+ attacker -> client -> pers .stats .enemykills ++ ;
340346 G_DeathStats ( self -> client , attacker -> client , meansOfDeath );
341347 attacker -> client -> sess .enemyKill ++ ;
342348 AddScore ( attacker , self -> r .currentOrigin , 1 );
@@ -371,7 +377,9 @@ void player_die( gentity_t *self, gentity_t *inflictor, gentity_t *attacker, int
371377
372378 }
373379 } else {
374- AddScore ( self , self -> r .currentOrigin , -1 );
380+ if ( g_suicideScorePenalty .integer > 0 )
381+ AddScore ( self , self -> r .currentOrigin , -1 );
382+ self -> client -> pers .stats .suicides ++ ;
375383 }
376384
377385 // Add team bonuses
0 commit comments