Merge pull request #25 from efinst0rm/patch-1

fix: gamemode killstreaks getting overwritten
pull/23/merge
Louve 2024-06-16 11:05:21 +02:00 committed by GitHub
commit 550f1bd27d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 16 deletions

View File

@ -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 )
{

View File

@ -764,7 +764,7 @@ setSpecialLoadouts()
level.infect_loadouts["axis"]["loadoutKillstreak1"] = "none";
level.infect_loadouts["axis"]["loadoutKillstreak2"] = "none";
level.infect_loadouts["axis"]["loadoutKillstreak3"] = "none";
level.infect_loadouts["axis"]["loadoutDeathstreak"] = "none";
level.infect_loadouts["axis"]["loadoutDeathstreak"] = "specialty_null";
level.infect_loadouts["axis_initial"]["loadoutPrimary"] = "throwingknife";
level.infect_loadouts["axis_initial"]["loadoutPrimaryAttachment"] = "none";
@ -782,7 +782,7 @@ setSpecialLoadouts()
level.infect_loadouts["axis_initial"]["loadoutKillstreak1"] = "none";
level.infect_loadouts["axis_initial"]["loadoutKillstreak2"] = "none";
level.infect_loadouts["axis_initial"]["loadoutKillstreak3"] = "none";
level.infect_loadouts["axis_initial"]["loadoutDeathstreak"] = "none";
level.infect_loadouts["axis_initial"]["loadoutDeathstreak"] = "specialty_null";
level.infect_loadouts["allies"]["loadoutPrimary"] = "spas12";
level.infect_loadouts["allies"]["loadoutPrimaryAttachment"] = "xmags";