Skip to content

Commit

Permalink
Let zombies pick up weapon_c4
Browse files Browse the repository at this point in the history
  • Loading branch information
Frozen-H2O committed Oct 10, 2024
1 parent 51e6b32 commit 531db84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zombiereborn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1409,7 +1409,7 @@ bool ZR_Detour_CCSPlayer_WeaponServices_CanUse(CCSPlayer_WeaponServices *pWeapon
if (!pPawn)
return false;
const char *pszWeaponClassname = pPlayerWeapon->GetClassname();
if (pPawn->m_iTeamNum() == CS_TEAM_T && V_strncmp(pszWeaponClassname, "weapon_knife", 12))
if (pPawn->m_iTeamNum() == CS_TEAM_T && V_strncmp(pszWeaponClassname, "weapon_knife", 12) && V_strncmp(pszWeaponClassname, "weapon_c4", 9))
return false;
if (pPawn->m_iTeamNum() == CS_TEAM_CT && V_strlen(pszWeaponClassname) > 7 && !g_pZRWeaponConfig->FindWeapon(pszWeaponClassname + 7))
return false;
Expand Down

0 comments on commit 531db84

Please sign in to comment.