mirror of
https://github.com/JezuzLizard/BO2-Reimagined.git
synced 2025-06-12 08:08:00 -05:00
Tombstone: fix switching out of animation weapon
This commit is contained in:
@ -4310,7 +4310,16 @@ tombstone_give()
|
|||||||
return ;
|
return ;
|
||||||
}
|
}
|
||||||
|
|
||||||
self takeAllWeapons(); // fixes player always having knife_zm
|
primary_weapons = self getWeaponsListPrimaries();
|
||||||
|
foreach(weapon in primary_weapons)
|
||||||
|
{
|
||||||
|
self takeWeapon(weapon);
|
||||||
|
}
|
||||||
|
|
||||||
|
self takeWeapon(self get_player_melee_weapon());
|
||||||
|
self takeWeapon(self get_player_lethal_grenade());
|
||||||
|
self takeWeapon(self get_player_tactical_grenade());
|
||||||
|
self takeWeapon(self get_player_placeable_mine());
|
||||||
|
|
||||||
primary_weapons_returned = 0;
|
primary_weapons_returned = 0;
|
||||||
i = 0;
|
i = 0;
|
||||||
@ -4424,22 +4433,26 @@ tombstone_give()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
primaries = self getweaponslistprimaries();
|
current_wep = self getCurrentWeapon();
|
||||||
switched = 0;
|
if(!isSubStr(current_wep, "perk_bottle") && !isSubStr(current_wep, "knuckle_crack") && !isSubStr(current_wep, "flourish"))
|
||||||
foreach ( weapon in primaries )
|
|
||||||
{
|
{
|
||||||
if ( isDefined( self.tombstone_savedweapon_currentweapon ) && self.tombstone_savedweapon_currentweapon == weapon )
|
switched = 0;
|
||||||
|
primaries = self getweaponslistprimaries();
|
||||||
|
foreach ( weapon in primaries )
|
||||||
{
|
{
|
||||||
switched = 1;
|
if ( isDefined( self.tombstone_savedweapon_currentweapon ) && self.tombstone_savedweapon_currentweapon == weapon )
|
||||||
self switchtoweapon( weapon );
|
{
|
||||||
|
switched = 1;
|
||||||
|
self switchtoweapon( weapon );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if(!switched)
|
if(!switched)
|
||||||
{
|
|
||||||
if ( primaries.size > 0 )
|
|
||||||
{
|
{
|
||||||
self switchtoweapon( primaries[ 0 ] );
|
if ( primaries.size > 0 )
|
||||||
|
{
|
||||||
|
self switchtoweapon( primaries[ 0 ] );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user