Max Clip Size

Is there a function or a script that gets the maximum size a clip can be for your current weapon?

The nearest I got was:


But it only works for non-hl2 weapons…

Google will serve you, Paduan:

A Facepunch thread about clip sizes and best practices

Another Facepunch thread specifically about max clip size

Thanks alot. <3