fix: gamemode killstreaks getting overwritten

pull/25/head
efinst0rm 2024-03-03 13:51:35 -06:00 committed by GitHub
parent 4652b1ad41
commit 1652ed0a0e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -312,7 +312,7 @@ giveLoadout( team, class, allowCopycat )
clearAmmo = false; clearAmmo = false;
// set in game mode custom class // set in game mode custom class
loadoutKillstreak1 = undefined; loadoutKillstreak1 = undefined;
loadoutKillstreak2 = undefined; loadoutKillstreak2 = undefined;
loadoutKillstreak3 = undefined; loadoutKillstreak3 = undefined;
@ -527,7 +527,7 @@ giveLoadout( team, class, allowCopycat )
self _clearPerks(); self _clearPerks();
self _detachAll(); self _detachAll();
if ( level.killstreakRewards ) if ( level.killstreakRewards && !isDefined( loadoutKillstreak1 ) && !isDefined( loadoutKillstreak2 ) && !isDefined( loadoutKillstreak3 ) )
{ {
if ( getDvarInt( "scr_classic" ) == 1 ) if ( getDvarInt( "scr_classic" ) == 1 )
{ {