mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-28 06:28:04 +03:00
CBasePlayer::SelectItem:: Add check for item can to holster.
This commit is contained in:
parent
6e9ece411b
commit
2defb8ad8e
@ -5646,6 +5646,11 @@ NOXREF void CBasePlayer::SelectNextItem(int iItem)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
if (m_pActiveItem && !m_pActiveItem->CanHolster())
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (pItem == m_pActiveItem)
|
if (pItem == m_pActiveItem)
|
||||||
{
|
{
|
||||||
pItem = m_pActiveItem->m_pNext;
|
pItem = m_pActiveItem->m_pNext;
|
||||||
@ -5697,6 +5702,11 @@ void CBasePlayer::SelectItem(const char *pstr)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
if (m_pActiveItem && !m_pActiveItem->CanHolster())
|
||||||
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
auto pItem = GetItemByName(pstr);
|
auto pItem = GetItemByName(pstr);
|
||||||
if (!pItem || pItem == m_pActiveItem)
|
if (!pItem || pItem == m_pActiveItem)
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user