Posts: 45
Threads: 10
Joined: Oct 2011
Reputation:
0
Figured I wont bother you in the chatbox anymore and made a topic about it.
After about 3 hours of errors and struggling, I manage to create a custom camo for for the L96a1. I added the files to my /mod/materials, material_properties and images folders.
This brings me to my question... How do I add the camo to my mod?
How do I precache the camo? (I added this: material,l96a1_custom to my mod.csv)
Is there a certain code that I need to add somewhere to make it spawn on the gun in game?
I saw eXI survival mod give custom camo's to VIP's.
Is it somehow possible to create some type of code in _rank like this:
if(self.VIP == 1)
l96a1camo =1
Or something similar to this.
Any scale of help is much appreciated.
Posts: 5,320
Threads: 300
Joined: Feb 2011
Reputation:
149
First of all, just replace a camo that's already there
(12-02-2011, 21:05)frozenliquid Wrote: How do I precache the camo? (I added this: material,l96a1_custom to my mod.csv) http://zeroy.com/script
check precache category
Quote:Is there a certain code that I need to add somewhere to make it spawn on the gun in game?
http://www.itsmods.com/forum/Thread-Tuto...-more.html
choose the one you replaced
Quote:Is it somehow possible to create some type of code in _rank
http://www.itsmods.com/forum/Thread-Tuto...-more.html
Posts: 45
Threads: 10
Joined: Oct 2011
Reputation:
0
12-02-2011, 22:14
(This post was last modified: 12-02-2011, 22:23 by frozenliquid.)
Where can I find the current camo's? They in some .iwd in the main?
If I replace one with mine, will it permanently replace that camo, or is it possible to just have it in the mod?
EDIT:
Found weaponOptions in raw/mp.
If my camo is named l96a1_custom, is it possible to just add under 15,camo,gold, this:
16,camo,l96a1_custom,,,,,,,,,,,,,,,,,,,,,
?
Posts: 5,320
Threads: 300
Joined: Feb 2011
Reputation:
149
(12-02-2011, 22:14)frozenliquid Wrote: Where can I find the current camo's? They in some .iwd in the main?
If I replace one with mine, will it permanently replace that camo, or is it possible to just have it in the mod?
EDIT:
Found weaponOptions in raw/mp.
If my camo is named l96a1_custom, is it possible to just add under 15,camo,gold, this:
16,camo,l96a1_custom,,,,,,,,,,,,,,,,,,,,,
?
IDK, try it out i guess
Posts: 45
Threads: 10
Joined: Oct 2011
Reputation:
0
Says something about invalid image when I load the mod.
I'm done with this ;D Thx for the help.
Posts: 45
Threads: 10
Joined: Oct 2011
Reputation:
0
12-03-2011, 18:43
(This post was last modified: 12-03-2011, 18:48 by frozenliquid.)
Ok I got it working by adding the custom camo as the same name as the gun file in raw/images into my mod's images folder.
The problem is, that now everyone who use the gun, get that camo.
How do I make it so that only certain people have that material in their gun?
Note my first post, as the link that Jariz gave, was of no use in that scenario, as it is not actually a camo.
If I'd replace a camo with it, I'm pretty sure the camo would go for every gun which uses that particular camo, which is a problem when it's a sniper skin. (Like if I replace camo_gold_c.iwi with the sniper camo, every gun that has gold camo, would have the sniper camo on it.)
Here's what my first try on the sh*tty camo looks like:
|