Author Topic: Force downloading  (Read 587 times)

Is there a way to force downloading of specific files? E.g weapon CI images.


Create a DecalData datablock with the file as the image you want downloaded. DTS files should automatically download, and there's no way to turn off sound downloading since the buttons are broken.

For your server specifically, you should just use the default CI images and weapon models, as I said when I joined (not the one in the new folder of the modified weapon which are just copies), since the people who have the normal weapons won't have to download anything and will see the images, and the people who don't will download the models into the correct folder (for e.g. other servers without your weapons) and not see CI's like in servers with the normal weapons, unless you force-download the original image files.

Yes, I implemented that feature today. The "mod" zips only contain code from now on (and some modified sounds and such).

I'll see if I can fix CI and icons by tomorrow, and thanks for replying.

A little help?
Code: [Select]
datablock DecalData(m16ci)
{
   filename    = "./CI_m16.png";
   textureName = "m16citexture";
   preload = true;
};

Console says datablock was successfully added, but the file isn't downloaded.
The code is located inside Weapon_m16.zip, and so is the .png file.


EDIT: Never mind, I figured it out. New code:
Code: [Select]
datablock DecalData(m16ci)
{
   textureName = "./ci_m16";
   preload = true;
};
« Last Edit: October 03, 2008, 05:06:50 AM by Jorgur »