Actually fix secondary offhand error

pull/4/head
efinst0rm 2023-11-01 13:09:20 -05:00 committed by GitHub
parent 5bc60e7923
commit 34776bef4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -602,27 +602,27 @@ giveLoadout( team, class, allowCopycat )
// Primary Offhand was given by givePerk (it's your perk1)
// Secondary Offhand
offhandSecondaryWeapon = loadoutOffhand;
offhandSecondaryWeapon = loadoutOffhand + "_mp";
if ( loadoutOffhand == "none" )
self SetOffhandSecondaryClass( "none" );
else if ( loadoutOffhand == "flash_grenade_mp" )
else if ( loadoutOffhand == "flash_grenade" )
self SetOffhandSecondaryClass( "flash" );
else if ( loadoutOffhand == "smoke_grenade_mp" || loadoutOffhand == "concussion_grenade_mp" )
else if ( loadoutOffhand == "smoke_grenade" || loadoutOffhand == "concussion_grenade" )
self SetOffhandSecondaryClass( "smoke" );
else
self SetOffhandSecondaryClass( "flash" );
switch( offhandSecondaryWeapon )
switch( loadoutOffhand )
{
case "none":
break;
default:
self giveWeapon( offhandSecondaryWeapon );
if ( loadOutOffhand == "flash_grenade_mp" )
if ( loadOutOffhand == "flash_grenade" )
self setWeaponAmmoClip( offhandSecondaryWeapon, 2 );
else if( loadOutOffhand == "concussion_grenade_mp" )
else if( loadOutOffhand == "concussion_grenade" )
self setWeaponAmmoClip( offhandSecondaryWeapon, 2 );
else
self setWeaponAmmoClip( offhandSecondaryWeapon, 1 );