Author Topic: Server-sided decals/faces inside a add-on  (Read 702 times)

I am making a add-on (Gamemode_Something, not Decal_Something or Face_Something) which is meant to include decals and faces, included inside the add-on .zip, without the other person having to download/enable another add-on. Is this possible?
« Last Edit: October 26, 2010, 10:16:03 AM by Bauklotz »


You can make them download the decals with this:

Code: [Select]
datablock DecalData(NAME) {
textureName = "LOCATION";
};

Example:

Code: [Select]
datablock DecalData(ADecal1) {
textureName = "Add-Ons/Gamemode_Something/MyFace";
};

Okay, would I then be able to do something like this?
Code: [Select]
someclient.player.setDecalName(ADecal1);
I don't want them to be able to select in the avatar selection GUI, I just want them to be forcable by the server, and be visible on client's players.

That I'm not sure. It seems like you'd need to actually set the decal as one to have it added to the setDecalName and setFaceName listings... I'm not sure.

add(ed) to the setDecalName and setFaceName listings.

Hmm, any way to 'access' these lists?


Code: [Select]
someclient.player.setDecalName(ADecal1);
I'd assume that it just looks for a datablock with a matching name and then changes it to the datablock, meaning there wouldn't be a list. I think it should work..

I'd assume that it just looks for a datablock with a matching name and then changes it to the datablock, meaning there wouldn't be a list. I think it should work..
That didn't work.


I'm thinking the game puts them into some engine thing for speed, but I dunno. Why aren't you on MSN anymore?

I'm on all day. You aren't. loving timezones D:

I'm on all day. You aren't. loving timezones D:

You don't come on around 2 AM for me like you used to, which is like 8-11 your time. I don't remember if you're 6 or 9 hours ahead of me... I think 6. Meh.