You actually are wrong. in Half life, half life 2, and so on whats in the crates you smash normally depends on what you need most. Health ammo power, ect. In half life 2 and episodes they changed this up a bit so only supply crates offered items. if you were smart with your ammo, most times you’d leave stuff behind because they always spawn stuff.
Half life, this wasn’t as true. what you got was random. though if you needed health and you went into a crate room, you could be damn sure one of those crates had the health. if you had no ammo in a weapon, same thing. if you were smart again, it got a little more random the less resources you needed.