Post: Killstreak Monitor Help
11-01-2014, 10:45 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I have been trying to make a killstreak monitor for a gamemode where it disabled killstreaks except for the custom killstreaks in the GSC. However, I come across an issue whilst monitoring the killstreak the player is on.

The issue is that once I get a kill the game will continue to increase my killstreakCount even though I haven't gotten any more kills.
    csDeathMonitor()
{
self endon("disconnect");
level endon("game_ended");

for (;Winky Winky
{
self waittill("death");
if (self.killstreakCount > 0)
{
self.killStreakCount = 0;
self.currentKills = 0;
}
wait 0.05;
}
}

cskillstreakMonitor()
{
self endon("disconnect");
level endon("game_ended");

thread ksMonitor();
wait 0.2;
for(;Winky Winky
{
if(self.killstreakCount == 2)
{
self setperk("specialty_scavenger");
self iprintln("Gained Scavenger");
wait 0.3;
}
if(self.killstreakCount == 3)
{
self setperk("specialty_unlimitedsprint");
self iprintln("Gained Extreme Conditioning");
wait 0.3;
}
if(self.killstreakCount == 4)
{
self setperk("specialty_movefaster");
self iprintln("Gained Lightweight");
wait 0.3;
}
if(self.killstreakCount == 5)
{
self setperk("specialty_fastequipmentuse");
self setperk("specialty_fastladderclimb");
self setperk("specialty_fastmantle");
self setperk("specialty_fastmeleerecovery");
self iprintln("Gained Adrenaline");
wait 0.3;
}
wait 0.03;
}
}

ksMonitor()
{
level endon( "game_ended" );
self endon( "disconnected" );
self endon("death");
self iPrintln("Kilstreak Monitor Initialized");
wait 0.1;
self iPrintln("Wait Success");
for(;Winky Winky
{
if(self.pers["kills"] != self.currentKills)
{
self.killstreakCount++;
self iprintln("Killstreak is: " + self.killstreakCount);
}
else
{
self.currentkills = self.pers["kills"];
}
wait 0.3;
}
}

If anyone can help me fix this, do not hesitate to give suggestions, or if you know of a native GSC function that monitors killstreaks that would be wonderful too.
(adsbygoogle = window.adsbygoogle || []).push({});
11-02-2014, 02:29 AM #2
MrToxlcBooty
I defeated!
do this :troll:
    
self thread maps/mp/gametypes/killstreaks:HappyisableScoreStreaks(false);
11-02-2014, 02:48 AM #3
ItzMatriix
Are you high?
Originally posted by FineNerds View Post
I have been trying to make a killstreak monitor for a gamemode where it disabled killstreaks except for the custom killstreaks in the GSC. However, I come across an issue whilst monitoring the killstreak the player is on.

The issue is that once I get a kill the game will continue to increase my killstreakCount even though I haven't gotten any more kills.
    csDeathMonitor()
{
self endon("disconnect");
level endon("game_ended");

for (;Winky Winky
{
self waittill("death");
if (self.killstreakCount > 0)
{
self.killStreakCount = 0;
self.currentKills = 0;
}
wait 0.05;
}
}

cskillstreakMonitor()
{
self endon("disconnect");
level endon("game_ended");

thread ksMonitor();
wait 0.2;
for(;Winky Winky
{
if(self.killstreakCount == 2)
{
self setperk("specialty_scavenger");
self iprintln("Gained Scavenger");
wait 0.3;
}
if(self.killstreakCount == 3)
{
self setperk("specialty_unlimitedsprint");
self iprintln("Gained Extreme Conditioning");
wait 0.3;
}
if(self.killstreakCount == 4)
{
self setperk("specialty_movefaster");
self iprintln("Gained Lightweight");
wait 0.3;
}
if(self.killstreakCount == 5)
{
self setperk("specialty_fastequipmentuse");
self setperk("specialty_fastladderclimb");
self setperk("specialty_fastmantle");
self setperk("specialty_fastmeleerecovery");
self iprintln("Gained Adrenaline");
wait 0.3;
}
wait 0.03;
}
}

ksMonitor()
{
level endon( "game_ended" );
self endon( "disconnected" );
self endon("death");
self iPrintln("Kilstreak Monitor Initialized");
wait 0.1;
self iPrintln("Wait Success");
for(;Winky Winky
{
if(self.pers["kills"] != self.currentKills)
{
self.killstreakCount++;
self iprintln("Killstreak is: " + self.killstreakCount);
}
else
{
self.currentkills = self.pers["kills"];
}
wait 0.3;
}
}

If anyone can help me fix this, do not hesitate to give suggestions, or if you know of a native GSC function that monitors killstreaks that would be wonderful too.


If you would like you can add me on Skype and I'll show u how I made my own version of this
11-02-2014, 04:58 AM #4
No duh :P

Edit: In reply to Mr.
11-02-2014, 05:03 AM #5
Originally posted by ItzMatriix View Post
If you would like you can add me on Skype and I'll show u how I made my own version of this


That would be awesome. My skype is WeHaXandTuT

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo