fixed last hit bug and problems with c4 damage

This commit is contained in:
Lukasz Wlasinksi 2004-10-16 17:03:53 +00:00
parent 14c3930b3d
commit 61fc7da654
2 changed files with 8 additions and 11 deletions

View File

@ -205,6 +205,9 @@ public client_putinserver(id)
public client_death(killer,victim,wpnindex,hitplace,TK) {
if ( wpnindex == CSW_C4 )
return
new headshot = ( hitplace == HIT_HEAD ) ? 1:0
new selfkill = ( killer == victim ) ? 1:0

View File

@ -1402,13 +1402,16 @@ public eventEndRound() {
g_izTeamScore[1]++
}
set_task(0.3,"ERTask",997)
return PLUGIN_CONTINUE
}
public ERTask(){
// Flag round end triggered.
g_iRoundEndTriggered = 1
// Display round end stats to all players.
endround_stats()
return PLUGIN_CONTINUE
}
endround_stats() {
@ -1421,15 +1424,6 @@ endround_stats() {
get_players( iaPlayers, iPlayers )
#if defined STATSX_OLD_DEATHMSG
// Bail out if not all killers got their damage event (ie last stats)
for ( iPlayer = 0; iPlayer < iPlayers; iPlayer++ ) {
id = iaPlayers[iPlayer]
if ( g_izKilled[id][KILLED_KILLER_ID] && !g_izKilled[id][KILLED_KILLER_STATSFIX] )
return
}
#endif
// Display attacker & victim list for all living players.
// This will also update all round and game stats for all players
// not killed.