OSP - Server-enabled Graphics
=============================
14 Dec 01
rhea@OrangeSmoothie.org
http://www.OrangeSmoothie.org

OSPµıϢhttp://www.q3acn.comã
cat@q3acn.comϵ

OSP Tourney DM/CA/CTF߽Զͼ
ĿͻʾΪսӡ֯ڱ¼/ͼ
ͼﵽĿġ

Щ⸽ӵͼξӰ쵽ıֻʾ
ط

     - ͼʱĽͼ
     - ÿֽδ¸ͼͼû¿ʼʱļǷְ

ͼθʽ൱ֱˡΪ˷ֹһ鷳OSP
һο


1. ѼϣʾͼΡЩͼҪΪtype 6(?)type 10(?)tga
   ʽܻļԣҲ͸ʾJPEG(.jpg)ʽ
   ܿʹãĿǰOSP֧֡

2. һµ.pk3ļѼͼηŵĿ¼

        gfx\2d\

3. ͼѭ¸ʽ

        customXX.tga  (XXΪ1  16)

   ǴӿʼεģʼΪ"1"Ҳ˵һͼΪ
   "custom1.tga"һΪ"custom2.tga"Ե16OSPֻ֧
   16ԶͼΡ

4. ɺ󣬽.pk3ļŵosp/Ŀ¼¡Լ.pk3ļ
   ƣ"z-"Ϊǰ׺ȷsv_pure 1ȷ֧֡

5. Ϊsv_pure 1sv_allowDownload 1ȷͻܹ
   ͼε.pk3ļ

6. һڿͻʾͼλáСgfx˵ļʽ£

      x y w h:x y w h

      - x = the X (horizontal) coordinate (from the left)
      - y = the Y (vertical) coordinate (from the top)
      - w = width of graphic
      - h = height of graphic

      - x = Xˮƽ꣨Ϊԭ㣩
      - y = Yֱ꣨Ϊԭ㣩
      - w = ͼο
      - h = ͼθ߶

        ----> ע⣺XΪ0640YΪ0480㲻صĿͻ
              ֱǷڻСģʽOSPݿͻ
              ֱʵĵͼεġ

      Ѿע⵽ˣÿ":"ָáÿе
      ӦһͼΣһǶͻͼʱ
      ͼλ/ߴģڶǶÿֽʱǷְͼλ
      /ߴġ

      ͼζļУÿжļֱӦӦͼΡҲ˵
      һжӦ"custom1.tga"ڶжӦ"custom2.tga"
      ȵȡ

      Ҫֹͼεʾ˵ֻʱʾÿֽʱ
      ʾֻҪӦ"x y w h"Ϊ"-1"

      ļедεͬԶͼ.pk3ļе
      "customXX.tga"ͼļ֡

7. ڷҪ.cfgУͼζļ·/
   "server_gfxspecfile"

8. 

9. Բοcfg-gfxexampleеӡֻҪ
   ļosp/Ŀ¼£ͬʱм룺

        set server_gfxspecfile "gfxdef.cfg"

   ͻʱĻ俴3ͬСĶOSP־