local function scaledisplay(v, p) v.drawString(0, 90, "SCALE:") v.drawString(0, 100, p.mo.scale) if p.mo.scale == 4194304 then v.drawString(0, 110, "(X64)") end if p.mo.scale == 2097152 then v.drawString(0, 110, "(X32)") end if p.mo.scale == 1048576 then v.drawString(0, 110, "(X16)") end if p.mo.scale == 524288 then v.drawString(0, 110, "(X8)") end if p.mo.scale == 262144 then v.drawString(0, 110, "(X4)") end if p.mo.scale == 131072 then v.drawString(0, 110, "(X2)") end if p.mo.scale == 65536 then v.drawString(0, 110, "(X1)") end if p.mo.scale == 32768 then v.drawString(0, 110, "(X1/2)") end if p.mo.scale == 16384 then v.drawString(0, 110, "(X1/4)") end if p.mo.scale == 8192 then v.drawString(0, 110, "(X1/8)") end if p.mo.scale == 4096 then v.drawString(0, 110, "(X1/16)") end if p.mo.scale == 2048 then v.drawString(0, 110, "(X1/32)") end if p.mo.scale == 1024 then v.drawString(0, 110, "(X1/64)") end end hud.add(scaledisplay) addHook("PlayerThink", function (p) if (p.cmd.buttons & BT_WEAPONNEXT) and not (p.mo.scale == 4194304) then p.mo.scale = ($*2) end if (p.cmd.buttons & BT_WEAPONPREV) and not (p.mo.scale == 1024) then p.mo.scale = ($/2) end end)