Jump to content

Custom Profession Clothing Colours (C.P.C.C.)


RoboMat

Recommended Posts

THIS MOD WAS ADDED TO THE VANILLA GAME. YOU DON'T NEED IT ANYMORE :)

 

Custom Profession Clothing changes the way in which the game loads colours for the professions. Allows modders to easily insert custom professions to the game.

ccpc.png

How to use? Well you need to distribute it with your mods which shouldn't be a big problem. Then you need to create a custom profession (might do a tutoria on that in the near future). I included the thief profession of my lockpicking mod as an example how to use this. What you have to do is set the custom clothing as a table just like the spawn points. Example given:

 

----- Set custom clothing and clothing colors for this-- profession.--local function initClothing()	local clothes = {		male = {			"Shirt_White", "Shirt", "Trousers_White", "Trousers",		},		female = {			"Blouse_White", "Blouse", "Trousers_White", "Trousers",		},                -- Colours for top 		top = {			0.1900,			0.1900,			0.1900,		},                -- Colours for trousers / skirts		bottom = {			0.1900,			0.1900,			0.1900,		},	};	ProfessionClothing.rm_thief = clothes;endEvents.OnGameBoot.Add(initClothing);
 

! Only tested with 2.9.9.17 ! 

 

Have fun!

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...