shared: add min/max macros
bg, cl: fix hook fire; print warning if bad weap or weapslot
g: remove debug printf