I am adding a custom class (springfield assault) to my map. I have come to the stage that the class actually works. Weapons are ok, the map does not crash. I can run around and shoot, throw nades and have a good time. My proplem is the class icon. It does not show up, I get a blank (white) spot instead. This I guess is caused by my reference to the springfield icon being wrong. I have searched for the icon*.tga files in the rfa's to double check my reference, but I cannot even find the files. Anyone knows where they are stored? The reference in the object.con looks like this:
ObjectTemplate.setKitIcon 0 "kits/Icon_NagantRuss_selected.tga" This is the picture that appears on the spawn screen. Again can be changed out for anything.
(Ehmmm yes this is snipped from the FAQ, mine would look much the same except Nagant changed to springfield and russ to us... i am on a different computer just now so I cannot access my file) I looked for a /kits/ folder somewhere with no success, I have searched all my unpacked rfa's but these icon*.tga files I am not able to find...any advice? My reference is exactly the same as for the Springfield engie kit, but somehow it all gets screwed up, and I end up with no icon at all. Could this be because I am making this Springfield assault class for position no.3 while springfield icon usually is assigned to class.no 5 (counting from top in my spawn menu)?
It's not the pictures files themselves:
ObjectTemplate.setKitIcon 4 "kits/Icon_Panzerfaust100Ger_selected.tga" ObjectTemplate.setKitName 4 "RESPAWN_AT" ObjectTemplate.setKitActiveName 4 "RESPAWN_ACTIVE_AT"
These are lines from the Faust100 kit. You can see the numbers mentioned each time; this is the place where this class is put. At the selection menu, you have five classes. The first one is 0, the second one 1, third one 2, etc. So it starts counting at 0. If you'd put the sniper class in the third slot, the number in the objects.con should be 2.
I think that should do the trick for ya..
Consider including this about the icons in the FAQ, I can't be the first, and not the last...
Thanksalot...only those stupid color spots and some other details left now.
Wanna go Double Dutch?
9th December 2003
A question very simlar to this one answers the question more or less (it refers to classes in the init.con but the structure is the same):
It to shows to the number 0-4, so i think that with that information you should be able to apply this on kits aswell. ;)
Thank you Donits. :flag: