[MP] HUD Killstreak Counter
-
A simple killstreak counter that displays the player's current kill streak on top of the screen.

All the credits for this script go to Kalitos.
I just slightly modified and then compiled his IW5 killstreak counter script for T6 and reposted it.Download
Instructions to load the script:::
Source code
#include maps\mp\gametypes\_hud_util; Init() { level thread OnPlayerConnected(); } OnPlayerConnected() { for(;;) { level waittill("connected", player); // Don't thread DisplayPlayerKillstreak() on bots if (isDefined(player.pers["isBot"])) { if (player.pers["isBot"]) { continue; // skip } } player thread DisplayPlayerKillstreak(); } } DisplayPlayerKillstreak() { self endon ("disconnect"); level endon("game_ended"); self.killstreak_text = createFontString( "DEFAULT" , 1 ); self.killstreak_text setPoint( 0, "TOP", 0, -25 ); self.killstreak_text.label = &"^1KILLSTREAK: "; while(true) { if(!IsDefined(self.playerstreak) || self.playerstreak != self.pers["cur_kill_streak"]) { self.playerstreak = self.pers["cur_kill_streak"]; self.killstreak_text setValue(self.pers["cur_kill_streak"]); } wait 0.01; } }:::
-
A simple killstreak counter that displays the player's current kill streak on top of the screen.

All the credits for this script go to Kalitos.
I just slightly modified and then compiled his IW5 killstreak counter script for T6 and reposted it.Download
Instructions to load the script:::
Source code
#include maps\mp\gametypes\_hud_util; Init() { level thread OnPlayerConnected(); } OnPlayerConnected() { for(;;) { level waittill("connected", player); // Don't thread DisplayPlayerKillstreak() on bots if (isDefined(player.pers["isBot"])) { if (player.pers["isBot"]) { continue; // skip } } player thread DisplayPlayerKillstreak(); } } DisplayPlayerKillstreak() { self endon ("disconnect"); level endon("game_ended"); self.killstreak_text = createFontString( "DEFAULT" , 1 ); self.killstreak_text setPoint( 0, "TOP", 0, -25 ); self.killstreak_text.label = &"^1KILLSTREAK: "; while(true) { if(!IsDefined(self.playerstreak) || self.playerstreak != self.pers["cur_kill_streak"]) { self.playerstreak = self.pers["cur_kill_streak"]; self.killstreak_text setValue(self.pers["cur_kill_streak"]); } wait 0.01; } }:::
@lResxt This is nice. Thank you Monke King!
-
Sorry for necro'ing but does anyone got this still
-
@Embolden sorry I forgot to update my post link after deleting my Google account.
The topic and the download link are updated -
I think the & is overkill since KILLSTREAK is not a localized string.
-
Nevermind, apparently the game goes schizo without &
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login