Skip to content

Commit

Permalink
Tell the user how to drop a weapon if their inventory is full
Browse files Browse the repository at this point in the history
  • Loading branch information
TomyLobo committed Dec 20, 2019
1 parent e6d1561 commit 36ffba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mp/src/game/shared/sdk/weapon_sdkbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,7 @@ void CWeaponSDKBase::Use( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYP
pPlayer->DropWeaponsToPickUp(this);

if (iWeight + pPlayer->FindCurrentWeaponsWeight() > MAX_LOADOUT_WEIGHT) {
CHintMessage("Inventory full", NULL, 6.0f).Send(pPlayer);
CHintMessage("Inventory full\nPress [%drop%] to drop weapon", NULL, 6.0f).Send(pPlayer);
return;
}

Expand Down

0 comments on commit 36ffba8

Please sign in to comment.