added forgot pistols fiveseven and dualelite touching for vip (#1045)

This commit is contained in:
Vaqtincha 2025-03-28 03:21:24 +05:00 committed by GitHub
parent 518f142635
commit 94a7eb4cbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -618,11 +618,17 @@ void CBasePlayerItem::DefaultTouch(CBaseEntity *pOther)
CBasePlayer *pPlayer = static_cast<CBasePlayer *>(pOther); CBasePlayer *pPlayer = static_cast<CBasePlayer *>(pOther);
if (pPlayer->m_bIsVIP if (pPlayer->m_bIsVIP
&& m_iId != WEAPON_USP &&
#ifndef REGAMEDLL_FIXES
m_iId != WEAPON_USP
&& m_iId != WEAPON_GLOCK18 && m_iId != WEAPON_GLOCK18
&& m_iId != WEAPON_P228 && m_iId != WEAPON_P228
&& m_iId != WEAPON_DEAGLE && m_iId != WEAPON_DEAGLE
&& m_iId != WEAPON_KNIFE) && m_iId != WEAPON_KNIFE
#else
!IsSecondaryWeapon(m_iId)
#endif
)
{ {
return; return;
} }