Voxel Turf

Voxel Turf

View Stats:
Energon-Titan 10 May, 2018 @ 10:29pm
Adding NPC skins without replacing originals.
Is it possible to add more skins for the NPC civilians who spawn in the world? If so, how?
< >
Showing 1-1 of 1 comments
SnapperTheTwig  [developer] 16 May, 2018 @ 10:24pm 
Yes, you'll have to edit scripts/client/npc_skin.lua. This will change the game's checksum!

If you want, for example, skin55.tga (your new skin) to appear as a "casual male" skin then you'll add "55" to the NPC_SKIN_CASUAL_M array.

Eg,
NPC_SKIN_CASUAL_M = { 1, 2, 3, 5, 6, 7, 9, 11, 12, 14, 15, 40 }
Becomes

NPC_SKIN_CASUAL_M = { 1, 2, 3, 5, 6, 7, 9, 11, 12, 14, 15, 40, 55 }

If you want to create a mod script I can walk you through the process but it can be a bit tricky.
http://wiki.voxelturf.net/wiki/Modding_Guide#Injecting_Lua_Code
< >
Showing 1-1 of 1 comments
Per page: 1530 50