fix: gamemode killstreaks getting overwritten

This commit is contained in:
efinst0rm authored and GitHub committed 2024-03-03 13:51:35 -06:00
1 parent 4652b1ad41
commit 1652ed0a0e
1 file changed
+2 -2
+2 -2
View File
@@ -312,7 +312,7 @@ giveLoadout( team, class, allowCopycat )
clearAmmo = false;
// set in game mode custom class
// set in game mode custom class
loadoutKillstreak1 = undefined;
loadoutKillstreak2 = undefined;
loadoutKillstreak3 = undefined;
@@ -527,7 +527,7 @@ giveLoadout( team, class, allowCopycat )
self _clearPerks();
self _detachAll();
if ( level.killstreakRewards )
if ( level.killstreakRewards && !isDefined( loadoutKillstreak1 ) && !isDefined( loadoutKillstreak2 ) && !isDefined( loadoutKillstreak3 ) )
{
if ( getDvarInt( "scr_classic" ) == 1 )
{