New feature: Easily applicable clothes[message #310208]
|
Sun, 16 September 2012 04:46
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
Visual merc customization: colours can now be applied specifically
As Thor volunteered to do the necessary picture work, and I pretty much liked the idea, I made this addition. It is strongly tied to the covert ops trait (http://www.bears-pit.com/board/ubbthreads.php/topics/310182/1.html), however I feel a separate thread is justifiable.
Basically, clothes are now regular items. One can decide to wear them, simply by dropping them onto the merc silhouette in your inventory. The merc will immediately switch clothes.
In the current implementation, clothes exist as shirts and pants separately, although it is perfectly possible to combine both. As of GameDir r1541, there is an example merge that does exactly that.
If one already ears clothes (that is, a clothes item has previously been applied in that slot), you will retrieve the old clothes item. This allows for easy switching of clothes. Provided you have the items, you can now dress your mercs in whatever colours you like. So you could, say, colour your squads differently, or devise your own colourscheme depending on your mercs role in the field (medics are red, snipers are blue... :bunny: ).
If you apply both shirt and pants, your merc will disguise (for the new covert ops skill). If you dress in a soldier's uniform, you will be disguised as a soldier, otherwise you'll be disguised as a civilian. Note that this even works if you switch the uniform colours in the xml, no need to stick to the classic redshirt-theme for this.
If you want to get out of the clothes, you can get back to your mercs original clothes via '4' on the menu called via 'Ctrl' + '.'. When covert, the covert flags will be removed, if not, the custom clothes will be taken off.
Note that loosing your disguise while covert no longer causes your merc to strip, as you can do that yourself.
Clothes items can be bought at BR, at local merchants or from dead bodies. You can now take the clothes off of any human corpse that isn't too much decayed. You will recieve a shirt and a pair of pants (provided your xmls are up to date).
As these kind of items would perfectly fit into Tinas shop, along with LBE gear, it would be nice if certain people (whose name I spontaneously forgot :wrysmiley: ) would code the possibility of more merchants, like they said they would...
You can easily create new clothes combos (like an item that gives green shirt and green pants). However, it is very important that you do NOT change the first 17 items in Clothes.xml, they are needed for spawning clothes items.
Again, many thanks to Thor for creating the item pics.
Demonstration pics:
This is Malice with a wide selection of clothes.
This is malice after dressing.
Press '4' and he'll be back to usual.
Needed revisions are GameDir r1541 and Exe r5568.
JMich-only part for xml editor:
Items.xml has a new UINT32 tag, . It is the number of the clothes type in the new Clothes.xml
Aslo note that for the Action Item fix, I added the UINT32-flagmask there.
Clothes.xml:
23 // UINT16 - number of clothes item.
shirt and pants // a CHAR16-field of length 80. Simply the name in this xml, not used anywhere
YELLOWVEST // PaletteRepID is a typedef of a 30-length CHAR8, see Army/UniformColors.xml for reference
JEANPANTS // PaletteRepID is a typedef of a 30-length CHAR8, see Army/UniformColors.xml for reference
or can perfectly be omitted. However, if they do exist, it is important that they correspond to an existing PaletteRepID, so be careful if you alter anything. The possible names are in the comments of the xml file.
[Updated on: Sun, 16 September 2012 17:07] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: New feature: Easily applicable clothes[message #310257]
|
Mon, 17 September 2012 03:08
|
|
Thor |
|
Messages:423
Registered:February 2007 Location: Belgium |
|
|
Just downloaded the SVN file... Doesn't work, though. I'll try again later.
Light green shirt? Hmm... wasn't the intention...Should be dark green. I'm also redoing the BigItems... I don't like the white border so much.
[Updated on: Mon, 17 September 2012 03:32] by Moderator Report message to a moderator
|
Master Sergeant
|
|
|
|
|
|
|
|
|
|
Re: New feature: Easily applicable clothes[message #310503]
|
Sat, 22 September 2012 12:16
|
|
Aona |
Messages:1
Registered:September 2012 |
|
|
Hello I am a novice excuse me, where can I find Exe r5568. Can download it
Report message to a moderator
|
Civilian
|
|
|
|
|
|
Re: New feature: Easily applicable clothes[message #314508]
|
Mon, 21 January 2013 17:23
|
|
jumika |
Messages:1
Registered:January 2010 |
|
|
How can i obtain the clothes from the bodies? I tried to use knife on dead bodies, but it only gave me the throusers.
Report message to a moderator
|
Civilian
|
|
|
Re: New feature: Easily applicable clothes[message #314509]
|
Mon, 21 January 2013 17:43
|
|
Sam Hotte |
|
Messages:1965
Registered:March 2009 Location: Middle of Germany |
|
|
Welcome to the pit, jumi. :cheers:
JumiHow can i obtain the clothes from the bodies? I tried to use knife on dead bodies, but it only gave me the throusers.
If the body is dead becuase someone shot/stabbed at its upper body, then that's why:
FlugenteUpdate: As of r5572, shooting/stabbing someone can damage their vest/pants independently. This also works on your mercs' clothes - if they get shot, the stuff they wear can get bloody - they still wear the shirt/pants, but upon taking it off, you do not receive the item (as its bloody, it would no longer work for covert ops, that's why).
So vests/shirts that show marks from the kill cannot be looted from dead bodies.
Report message to a moderator
|
Sergeant Major
|
|
|
|
|
|