Actually fix secondary offhand error
parent
5bc60e7923
commit
34776bef4b
|
@ -602,27 +602,27 @@ giveLoadout( team, class, allowCopycat )
|
||||||
// Primary Offhand was given by givePerk (it's your perk1)
|
// Primary Offhand was given by givePerk (it's your perk1)
|
||||||
|
|
||||||
// Secondary Offhand
|
// Secondary Offhand
|
||||||
offhandSecondaryWeapon = loadoutOffhand;
|
offhandSecondaryWeapon = loadoutOffhand + "_mp";
|
||||||
|
|
||||||
if ( loadoutOffhand == "none" )
|
if ( loadoutOffhand == "none" )
|
||||||
self SetOffhandSecondaryClass( "none" );
|
self SetOffhandSecondaryClass( "none" );
|
||||||
else if ( loadoutOffhand == "flash_grenade_mp" )
|
else if ( loadoutOffhand == "flash_grenade" )
|
||||||
self SetOffhandSecondaryClass( "flash" );
|
self SetOffhandSecondaryClass( "flash" );
|
||||||
else if ( loadoutOffhand == "smoke_grenade_mp" || loadoutOffhand == "concussion_grenade_mp" )
|
else if ( loadoutOffhand == "smoke_grenade" || loadoutOffhand == "concussion_grenade" )
|
||||||
self SetOffhandSecondaryClass( "smoke" );
|
self SetOffhandSecondaryClass( "smoke" );
|
||||||
else
|
else
|
||||||
self SetOffhandSecondaryClass( "flash" );
|
self SetOffhandSecondaryClass( "flash" );
|
||||||
|
|
||||||
switch( offhandSecondaryWeapon )
|
switch( loadoutOffhand )
|
||||||
{
|
{
|
||||||
case "none":
|
case "none":
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
self giveWeapon( offhandSecondaryWeapon );
|
self giveWeapon( offhandSecondaryWeapon );
|
||||||
|
|
||||||
if ( loadOutOffhand == "flash_grenade_mp" )
|
if ( loadOutOffhand == "flash_grenade" )
|
||||||
self setWeaponAmmoClip( offhandSecondaryWeapon, 2 );
|
self setWeaponAmmoClip( offhandSecondaryWeapon, 2 );
|
||||||
else if( loadOutOffhand == "concussion_grenade_mp" )
|
else if( loadOutOffhand == "concussion_grenade" )
|
||||||
self setWeaponAmmoClip( offhandSecondaryWeapon, 2 );
|
self setWeaponAmmoClip( offhandSecondaryWeapon, 2 );
|
||||||
else
|
else
|
||||||
self setWeaponAmmoClip( offhandSecondaryWeapon, 1 );
|
self setWeaponAmmoClip( offhandSecondaryWeapon, 1 );
|
||||||
|
|
Loading…
Reference in New Issue