Post: Scorestreaks enabled or not?
03-01-2016, 10:07 PM #1
BullyWiiPlaza
Climbing up the ladder
(adsbygoogle = window.adsbygoogle || []).push({}); How do you check if the current game mode has scorestreaks enabled or not? For some weird reason the "obvious" ways don't work. The following variables always hold the values indicated by the comments no matter if I play a game mode with Scorestreaks disabled (e.g. Gun Game) or a game mode with Scorestreaks enabled (Free-For-All).
    isDefined(level.usingScoreStreaks) // 1
level.usingScoreStreaks // 1
isDefined(self.pers["killstreak_quantity"]) // 1
self.pers["killstreak_quantity"] // 0

Finally there also is the amount of currently equipped Scorestreaks (+ 1 due to the extra slot apparently):
    self.killstreak.size

This works (0 if Scorestreaks are disabled and greater than 0 if they're not) but since I need to check before the player spawns this can't be used either. Any ideas? Needa
(adsbygoogle = window.adsbygoogle || []).push({});
03-01-2016, 10:26 PM #2
HiddenHour
I defeated!
Originally posted by BullyWiiPlaza View Post
How do you check if the current game mode has scorestreaks enabled or not? For some weird reason the "obvious" ways don't work. The following variables always hold the values indicated by the comments no matter if I play a game mode with Scorestreaks disabled (e.g. Gun Game) or a game mode with Scorestreaks enabled (Free-For-All).
    isDefined(level.usingScoreStreaks) // 1
level.usingScoreStreaks // 1
isDefined(self.pers["killstreak_quantity"]) // 1
self.pers["killstreak_quantity"] // 0

Finally there also is the amount of currently equipped Scorestreaks (+ 1 due to the extra slot apparently):
    self.killstreak.size

This works (0 if Scorestreaks are disabled and greater than 0 if they're not) but since I need to check before the player spawns this can't be used either. Any ideas? Needa


Try something like this?
    if(self.pers["momentum"] > 1)
_setplayermomentum(client, 0);


In shark's zombieland he has it like this
setActionSlot(slot 1-4, "");
03-01-2016, 10:44 PM #3
Patrick
League Champion
if you are just wanting to check to see if killstreaks are enabled or disabled use this or to disable or enable them use this function:

    Check_Killstreaks_Ext()
{
//level.killstreaksenabled = 0; Disabled
//level.killstreaksenabled = 1; Enabled
for(;Winky Winky
{
if( level.killstreaksenabled == 0)
self iprintln("Killstreaks Disabled");

if( level.killstreaksenabled == 1)
self iprintln("Killstreaks Enabled");

wait 1;
}
}
03-02-2016, 08:12 PM #4
BullyWiiPlaza
Climbing up the ladder
Originally posted by 32085
if you are just wanting to check to see if killstreaks are enabled or disabled use this or to disable or enable them use this function:

    Check_Killstreaks_Ext()
{
//level.killstreaksenabled = 0; Disabled
//level.killstreaksenabled = 1; Enabled
for(;Winky Winky
{
if( level.killstreaksenabled == 0)
self iprintln("Killstreaks Disabled");

if( level.killstreaksenabled == 1)
self iprintln("Killstreaks Enabled");

wait 1;
}
}

Thanks for this but it's not working. The value of
    level.killstreaksEnabled
is always 1 even when streaks are disabled.
03-02-2016, 08:14 PM #5
Patrick
League Champion
Originally posted by BullyWiiPlaza View Post
Thanks for this but it's not working. The value of
    level.killstreaksEnabled
is always 1 even when streaks are disabled.


no it isn't i have tested it?
03-02-2016, 08:31 PM #6
BullyWiiPlaza
Climbing up the ladder
Originally posted by 32085
no it isn't i have tested it?

If you for example play gun game and domination on local the value is 1 in both cases so it's not working correctly. My currently only/best working solution is the following:
    playingGunGame()
{
return playingGameType("gun");
}

playingStickAndStones()
{
return playingGameType("sas");
}

playingSharpshooter()
{
return playingGameType("shrp");
}

playingOneInTheChamber()
{
return playingGameType("oic");
}

playingStandardGameMode()
{
return !playingPartyGameMode();
}

playingPartyGameMode()
{
return playingGunGame() || playingStickAndStones() || playingSharpshooter() || playingOneInTheChamber();
}

usingScorestreaks()
{
return playingStandardGameMode();
}

playingGameType(gametype)
{
return level.gametype == gametype;
}
03-02-2016, 08:39 PM #7
Patrick
League Champion
Originally posted by BullyWiiPlaza View Post
If you for example play gun game and domination on local the value is 1 in both cases so it's not working correctly. My currently only/best working solution is the following:
    playingGunGame()
{
return playingGameType("gun");
}

playingStickAndStones()
{
return playingGameType("sas");
}

playingSharpshooter()
{
return playingGameType("shrp");
}

playingOneInTheChamber()
{
return playingGameType("oic");
}

playingStandardGameMode()
{
return !playingPartyGameMode();
}

playingPartyGameMode()
{
return playingGunGame() || playingStickAndStones() || playingSharpshooter() || playingOneInTheChamber();
}

usingScorestreaks()
{
return playingStandardGameMode();
}

playingGameType(gametype)
{
return level.gametype == gametype;
}


oh i get you now, sorry.
03-06-2016, 09:23 AM #8
HiddenHour
I defeated!
Originally posted by BullyWiiPlaza View Post
How do you check if the current game mode has scorestreaks enabled or not? For some weird reason the "obvious" ways don't work. The following variables always hold the values indicated by the comments no matter if I play a game mode with Scorestreaks disabled (e.g. Gun Game) or a game mode with Scorestreaks enabled (Free-For-All).
    isDefined(level.usingScoreStreaks) // 1
level.usingScoreStreaks // 1
isDefined(self.pers["killstreak_quantity"]) // 1
self.pers["killstreak_quantity"] // 0

Finally there also is the amount of currently equipped Scorestreaks (+ 1 due to the extra slot apparently):
    self.killstreak.size

This works (0 if Scorestreaks are disabled and greater than 0 if they're not) but since I need to check before the player spawns this can't be used either. Any ideas? Needa


getgametypesetting( "loadoutKillstreaksEnabled" );

The following user thanked HiddenHour for this useful post:

BullyWiiPlaza
03-06-2016, 12:18 PM #9
BullyWiiPlaza
Climbing up the ladder
Originally posted by TheHiddenHour View Post
getgametypesetting( "loadoutKillstreaksEnabled" );

This works, nice. Happy

A slightly better script would be the following then:
    usingScorestreaks()
{
return level.loadoutKillstreaksEnabled;
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo