Weight

A weapon's weight is a number meant to represent how effective it is. When a player runs out of ammo for one weapon, they will automatically switch to the weapon with the highest weight in their inventory. If a player picks up a new weapon, the player will automatically switch to it if it has a higher weight.

These are the values used in Half-Life:

In Source, the weight value can be changed by altering the file at.