Addendum to revision 3434; fixed for other mods, although they're not multilingual, just in-case.

This commit is contained in:
Steve Dudenhoeffer 2007-03-30 13:35:08 +00:00
parent 1161b5ee7e
commit 03bae80ed2
3 changed files with 15 additions and 15 deletions

View File

@ -713,17 +713,17 @@ public client_death(killer,victim,wpnindex,hitplace,TK)
if ( headshot && (HeadShotKill || HeadShotKillSound) && !xmod_is_melee_wpn(wpnindex) ){ if ( headshot && (HeadShotKill || HeadShotKillSound) && !xmod_is_melee_wpn(wpnindex) ){
if ( HeadShotKill ){ if ( HeadShotKill ){
new weapon[32], message[128], players[32], pnum new weapon[32], message[256], players[32], pnum
xmod_get_wpnname(wpnindex,weapon,31) xmod_get_wpnname(wpnindex,weapon,31)
get_players(players,pnum,"c") get_players(players,pnum,"c")
for (new i=0;i<pnum;i++) { for (new i=0;i<pnum;i++) {
if ( g_Killers[i][0] && g_DeathStats[i] > get_gametime() ) if ( g_Killers[i][0] && g_DeathStats[i] > get_gametime() )
continue continue
format( message, 127, "%L",players[i],g_HeadShots[ random_num(0,6) ] ) format( message, sizeof(message)-1, "%L",players[i],g_HeadShots[ random_num(0,6) ] )
replace( message, 127 , "$vn", victim_name ) replace( message, sizeof(message)-1, "$vn", victim_name )
replace( message, 127 , "$wn", weapon ) replace( message, sizeof(message)-1, "$wn", weapon )
replace( message, 127 , "$kn", killer_name ) replace( message, sizeof(message)-1, "$kn", killer_name )
set_hudmessage(100, 100, 255, -1.0, 0.19, 0, 6.0, 6.0, 0.5, 0.15, -1) set_hudmessage(100, 100, 255, -1.0, 0.19, 0, 6.0, 6.0, 0.5, 0.15, -1)
ShowSyncHudMsg(players[i], g_center2_sync, "%s", message) ShowSyncHudMsg(players[i], g_center2_sync, "%s", message)
} }

View File

@ -595,12 +595,12 @@ public client_death(killer,victim,wpnindex,hitplace,TK){
if ( headshot && (HeadShotKill || HeadShotKillSound) && !xmod_is_melee_wpn(wpnindex) ){ if ( headshot && (HeadShotKill || HeadShotKillSound) && !xmod_is_melee_wpn(wpnindex) ){
if ( HeadShotKill ){ if ( HeadShotKill ){
new weapon[32], message[128] new weapon[32], message[256]
xmod_get_wpnname(wpnindex,weapon,31) xmod_get_wpnname(wpnindex,weapon,31)
copy( message, 127, g_HeadShots[ random_num(0,6) ] ) copy( message, sizeof(message)-1, g_HeadShots[ random_num(0,6) ] )
replace( message, 127 , "$vn", victim_name ) replace( message, sizeof(message)-1, "$vn", victim_name )
replace( message, 127 , "$wn", weapon ) replace( message, sizeof(message)-1, "$wn", weapon )
replace( message, 127 , "$kn", killer_name ) replace( message, sizeof(message)-1, "$kn", killer_name )
set_hudmessage(100, 100, 255, -1.0, 0.19, 0, 6.0, 6.0, 0.5, 0.15, -1) set_hudmessage(100, 100, 255, -1.0, 0.19, 0, 6.0, 6.0, 0.5, 0.15, -1)
for (new i=1;i<=get_maxplayers();i++){ for (new i=1;i<=get_maxplayers();i++){
if ( g_Killers[i][0] && g_DeathStats[i] > get_gametime() ) if ( g_Killers[i][0] && g_DeathStats[i] > get_gametime() )

View File

@ -383,12 +383,12 @@ public client_death(killer,victim,wpnindex,hitplace,TK){
} }
else if ( headshot && (HeadShotKill || HeadShotKillSound) && !xmod_is_melee_wpn(wpnindex) ){ else if ( headshot && (HeadShotKill || HeadShotKillSound) && !xmod_is_melee_wpn(wpnindex) ){
if ( HeadShotKill ){ if ( HeadShotKill ){
new weapon[32], message[128] new weapon[32], message[256]
xmod_get_wpnname(wpnindex,weapon,31) xmod_get_wpnname(wpnindex,weapon,31)
copy( message, 127, g_HeadShots[ random_num(0,6) ] ) copy( message, sizeof(message)-1, g_HeadShots[ random_num(0,6) ] )
replace( message, 127 , "$vn", victim_name ) replace( message, sizeof(message)-1, "$vn", victim_name )
replace( message, 127 , "$wn", weapon ) replace( message, sizeof(message)-1 , "$wn", weapon )
replace( message, 127 , "$kn", killer_name ) replace( message, sizeof(message)-1, "$kn", killer_name )
set_hudmessage(100, 100, 255, -1.0, 0.29, 0, 6.0, 6.0, 0.5, 0.15, -1) set_hudmessage(100, 100, 255, -1.0, 0.29, 0, 6.0, 6.0, 0.5, 0.15, -1)
for (new i=1;i<=get_maxplayers();i++){ for (new i=1;i<=get_maxplayers();i++){
if ( g_Killers[i][0] && g_DeathStats[i] > get_gametime() ) if ( g_Killers[i][0] && g_DeathStats[i] > get_gametime() )