From 34776bef4b9a82f625eb119f34a9200ca9f6c315 Mon Sep 17 00:00:00 2001 From: efinst0rm Date: Wed, 1 Nov 2023 13:09:20 -0500 Subject: [PATCH] Actually fix secondary offhand error --- iw4x/iw4x_00/maps/mp/gametypes/_class.gsc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/iw4x/iw4x_00/maps/mp/gametypes/_class.gsc b/iw4x/iw4x_00/maps/mp/gametypes/_class.gsc index d981d4a..63a4547 100644 --- a/iw4x/iw4x_00/maps/mp/gametypes/_class.gsc +++ b/iw4x/iw4x_00/maps/mp/gametypes/_class.gsc @@ -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 );