Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.

Absolute beginners guide to _pext_infoblobs

// CLIENT
1. Jimmy makes a 128 * 128 pic, calls it jimmy.jpg
2. He puts it in Quake/fortress/mypics (?)
3. He sets: setinfoblob myavatar “fortress/mypics/jimmy.jpg”

// SERVER
4. make 2 new variables:
typedef string *stringptr;
.stringptr myavatar;

#define MAX_PIC_SIZE 100000

5. When Jimmy connects (ClientConnect())

int size_of_pic = getlocalinfo(“myavatar”, Jimmy.myavatar, MAX_PIC_SIZE)
if(size_of_pic > MAX_PIC_SIZE)
dprint(“avatar too big\n”);

6. “pass that to r_uploadimage” ?

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Notify me of followup comments via e-mail. You can also subscribe without commenting.