Camo Tech
If you get stuck, feel free to ping me @ramiris on Discord.
This is the part you'll do in your choice of Image Manipulation Software, such as Photoshop or Aesprite. RSIEdit is also useful but not required.
For example, take the M13, the main body part of the gun is split off into the Camo Sprite, with the grip, barrel, lights etc remaining on the Base Sprite.
Original Sprite:
Base:
Camo:
Hint: You can use the
Multiply
Blend Mode in most image manipulation software (i.e. Photoshop) to simulate the result of adding colour to a sprite.
While its not actually required, sprites will look obviously wrong if you do not take great care of colouring on the Camo Sprites used. I would recommend if possible adding the tiniest amount of blue hue to your "greyscale" as when used in miniscule amounts it can give a slightly better result.
The main sprite/icon should generally use the terms "base" and "camo", meanwhile any other sprite should simply append "-color" to the end of the name of the base.
m13.rsi
This is the part you'll be doing in Rider or your chosen IDE.
If you need more than one Layer to have colours applied, you can specify additional layers 2 to 5
...geLayers.Layer3
.
Here are some useful defaults, but you by no means need to stick to this:
- Jungle LV, Varadero
#ccd08d
- Desert Solaris, Kutjevo, Trijent
#ffd2a6
- Snow Shivas
#ddcbc9
- Classic Chance's, Fiorina
#c7e7d9
- Urban Hybrisa
#acb8c7
Ensure you have added the
-color.png
suffix correctly.
CURRENTLY only Inhands work, this is being looked into. - Rami
This is the part where you'll be compliling a copy of the Server and Client before running it locally. Read the Guide
There isnt really a lot for me to say here other than spawning the item in and visually inspecting it to see if it works. If not, return to the previous steps and re-check things.
Press B to open the DevMode menu, if you are in DevMode.
Select "Spawn Entities"
Search for your item and place it on the ground.
Press ` to open the Console if you are in DevMode.
Paste the following:vvwrite /system/ItemCamouflageSystem/CurrentMapCamouflage Classic
Replace "Classic" with whichever biome/evironment you would like to test:Jungle, Desert, Classic, Snow, Urban
Spawn the item again and it'll change to the respecive colour of your chosen Camo.