Adding more Skins

Hi guys I need a little help here as I am completely baffled. I am trying to add some extra skins for the District 9 Jeep from the following pack http://www.garrysmod.org/downloads/?a=view&id=80628 I have redone the original four and added three extras. I have made sure the .vmt files are correct but for some reason the skin switcher tool still only cycles through the first four skins. How can I get it to go through all seven? Is there a file or script that defines how many skins a model has?

Thanks.

I believe you would have to decompile the model and apply those extra skins to the model in your favourite 3D modeling program. You would then have to add some lines to its QC after $model{}:

For only 1 vtf:



$texturegroup skinfamilies
{
	{ "skin1" }
	{ "skin2" }
	{ "skin3" }
}


For multiple vtfs:



$texturegroup skinfamilies
{
	{"set1texture1"
"set1texture2"
}
 	{"set2texture1"
"set2texture2"
}
}


Ok I got it all decompiled and added the lines that were required into the QC file. However, compiling is an issue because the model is invisible and won’t move with the phys gun. I have no idea why it’s doing this.

Let’s see your QC.



$cd "C:\Users\Zill\Desktop	est"
$modelname "Inaki\District_9_MNU_vehicles\Jeep.mdl"
$model "Body" "Jeepdrivable_ref.smd"
$poseparameter vehicle_guage 0.00 1.00
$poseparameter vehicle_steer -1.00 1.00
$poseparameter vehicle_wheel_fl_height 0.00 1.00
$poseparameter vehicle_wheel_fr_height 0.00 1.00
$poseparameter vehicle_wheel_rl_height 0.00 1.00
$poseparameter vehicle_wheel_rr_height 0.00 1.00
$poseparameter vehicle_wheel_fl_spin -180.00 180.00 360.00
$poseparameter vehicle_wheel_fr_spin -180.00 180.00 360.00
$poseparameter vehicle_wheel_rl_spin -180.00 180.00 360.00
$poseparameter vehicle_wheel_rr_spin -180.00 180.00 360.00
$cdmaterials "models\District9Vehicles\"
$cdmaterials "Models\props_combine\"
$cdmaterials "Models\Debug\"
$texturegroup skinfamilies
{
	{"Jeep.vmt"
 "combine_interface_disp.vmt"
}
 	{"Jeep1.vmt"
 "combine_interface_disp.vmt"
}
 	{"Jeep2.vmt"
 "combine_interface_disp.vmt"
}
 	{"Jeep3.vmt"
 "combine_interface_disp.vmt"
}
 	{"Jeep4.vmt"
 "combine_interface_disp.vmt"
}
 	{"Jeep5.vmt"
 "combine_interface_disp.vmt"
}
 	{"Jeep6.vmt"
 "combine_interface_disp.vmt"
}
 	{"Jeep7.vmt"
 "combine_interface_disp.vmt"
}
 	{"Jeep8.vmt"
 "combine_interface_disp.vmt"
}
 	{"Jeep9.vmt"
 "combine_interface_disp.vmt"
}
 }
$hboxset "default"
$hbox 0 "Jeep_Body" -58.090  -36.600  -103.240  58.090  44.490  124.620
// Model uses material "Jeep.vmt"
// Model uses material "combine_interface_disp.vmt"
// Model uses material "masterinterface_disp.vmt"
// Model uses material "env_cubemap_model.vmt"
// Model uses material "Jeep1.vmt"
// Model uses material "Jeep2.vmt"
// Model uses material "Jeep3.vmt"
// Model uses material "Jeep4.vmt"
// Model uses material "Jeep5.vmt"
// Model uses material "Jeep6.vmt"
// Model uses material "Jeep7.vmt"
// Model uses material "Jeep8.vmt"
// Model uses material "Jeep9.vmt"
$attachment "wheel_fl" "Jeep_Wheel_FL" -4.00 0.00 0.00 rotate -0.00 0.00 0.00
$attachment "wheel_fr" "Jeep_Wheel_FR" 4.00 0.00 0.00 rotate -0.00 0.00 0.00
$attachment "wheel_rl" "Jeep_Wheel_RL" -4.00 0.00 0.00 rotate -0.00 0.00 0.00
$attachment "wheel_rr" "Jeep_Wheel_RR" 4.00 0.00 0.00 rotate -0.00 0.00 0.00
$attachment "exit1" "Jeep_Body" 82.71 24.41 12.73 rotate -0.00 0.00 0.00
$attachment "vehicle_driver_exit0" "Jeep_Body" 80.00 -60.00 20.00 rotate -0.00 0.00 0.00
$attachment "vehicle_driver_exit1" "Jeep_Body" -80.00 -60.00 20.00 rotate -0.00 0.00 0.00
$attachment "vehicle_driver_exit2" "Jeep_Body" 0.00 12.00 80.00 rotate -0.00 0.00 0.00
$attachment "vehicle_driver_exit3" "Jeep_Body" 0.00 38.00 -64.00 rotate -0.00 0.00 0.00
$attachment "exit2" "Jeep_Body" -82.62 19.41 12.73 rotate 0.00 -0.00 180.00
$attachment "exit3" "Jeep_Body" 23.71 62.24 76.94 rotate -90.00 -90.00 0.00
$attachment "exit4" "Jeep_Body" 0.04 95.07 11.73 rotate -90.00 -90.00 0.00
$attachment "exit5" "Jeep_Body" 90.00 -64.00 12.00 rotate -0.00 0.00 0.00
$attachment "exit6" "Jeep_Body" -90.00 -59.00 12.00 rotate 0.00 -0.00 180.00
$attachment "exit7" "Jeep_Body" 0.00 -100.00 120.00 rotate 90.00 -90.00 0.00
$attachment "exit8" "Jeep_Body" 0.00 -100.00 11.00 rotate 90.00 -90.00 0.00
$attachment "vehicle_driver_eyes" "Jeep_View" 0.00 0.00 0.00 rotate -0.00 0.00 -90.00
$attachment "vehicle_feet_passenger0" "Jeep_Body" 25.60 -15.00 1.00 rotate -90.00 -90.00 0.00
$attachment "vehicle_feet_passenger1" "Jeep_Body" -25.60 -15.00 1.00 rotate -90.00 -90.00 0.00
$attachment "vehicle_feet_passenger2" "Jeep_Body" 25.60 -15.00 -39.00 rotate -90.00 -90.00 0.00
$attachment "vehicle_feet_passenger3" "Jeep_Body" -25.60 -15.00 -39.00 rotate -90.00 -90.00 0.00
$attachment "vehicle_engine" "Jeep_Body" 0.00 0.00 80.00 rotate -0.00 0.00 0.00
$attachment "headlight_l" "Jeep_Body" 42.00 -3.50 105.00 rotate -85.00 -120.00 0.00
$attachment "headlight_r" "Jeep_Body" -42.00 -3.50 105.00 rotate -85.00 -60.00 0.00
$attachment "headlight" "Jeep_Body" 0.00 -15.00 135.00 rotate -80.00 -90.00 0.00
$attachment "rearlight_l" "Jeep_Body" 44.25 -0.60 -97.00 rotate 90.00 90.00 0.00
$attachment "rearlight_r" "Jeep_Body" -44.25 -0.60 -97.00 rotate 90.00 90.00 0.00
$surfaceprop "Metal"
$keyvalues  { vehicle_entry { "enter1" "1" "enter2" "2" "enter3" "3" "enter4" "4"  } vehicle_exit { "exit1" "upright" "exit2" "upright" "exit7" "upsidedown" "exit8" "upsidedown"  } vehicle_escape_exit { "exit3" "upright" "exit4" "upright" "exit5" "upsidedown" "exit6" "upsidedown"  } } 
$illumposition 0.165 -0.028 36.049
$sequence idle "idle" ACT_IDLE 1 fps 30.00
$sequence exit1 "exit1" fps 10.00
$sequence exit2 "exit2" fps 10.00
$sequence exit3 "exit3" fps 10.00
$sequence exit4 "exit4" fps 10.00
$sequence enter1 "enter1" fps 10.00
$sequence enter2 "enter2" fps 10.00
$sequence enter3 "enter3" fps 10.00
$sequence enter4 "enter4" fps 10.00
$sequence exit5 "exit5" fps 10.00
$sequence exit6 "exit6" fps 10.00
$sequence exit7 "exit7" fps 10.00
$sequence exit8 "exit8" fps 10.00
$animation mdldecompiler_delta.smd "mdldecompiler_delta.smd" fps 30
$animation turn_left "turn_left" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation turn_right "turn_right" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence turning "turn_left" fps 30.00 {
  blendwidth 2
  blend vehicle_steer -1.000000 1.000000
  delta
  autoplay
 turn_right
}
$animation wheel_fl_low "wheel_fl_low" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_fl_high "wheel_fl_high" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence wheel_fl_suspension "wheel_fl_low" fps 30.00 {
  blendwidth 2
  blend vehicle_wheel_fl_height 0.000000 1.000000
  delta
  autoplay
 wheel_fl_high
}
$animation wheel_fl_spin0 "wheel_fl_spin0" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_fl_spin120 "wheel_fl_spin120" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_fl_spin240 "wheel_fl_spin240" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence wheel_fl_spin "wheel_fl_spin0" fps 30.00 {
  blendwidth 4
  blend vehicle_wheel_fl_spin -180.000000 180.000000
  delta
  autoplay
 wheel_fl_spin120 wheel_fl_spin240 wheel_fl_spin0
}
$animation wheel_fr_low "wheel_fr_low" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_fr_high "wheel_fr_high" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence wheel_fr_suspension "wheel_fr_low" fps 30.00 {
  blendwidth 2
  blend vehicle_wheel_fr_height 0.000000 1.000000
  delta
  autoplay
 wheel_fr_high
}
$animation wheel_fr_spin0 "wheel_fr_spin0" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_fr_spin120 "wheel_fr_spin120" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_fr_spin240 "wheel_fr_spin240" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence wheel_fr_spin "wheel_fr_spin0" fps 30.00 {
  blendwidth 4
  blend vehicle_wheel_fr_spin -180.000000 180.000000
  delta
  autoplay
 wheel_fr_spin120 wheel_fr_spin240 wheel_fr_spin0
}
$animation wheel_rl_low "wheel_rl_low" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_rl_high "wheel_rl_high" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence wheel_rl_suspension "wheel_rl_low" fps 30.00 {
  blendwidth 2
  blend vehicle_wheel_rl_height 0.000000 1.000000
  delta
  autoplay
 wheel_rl_high
}
$animation wheel_rl_spin0 "wheel_rl_spin0" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_rl_spin120 "wheel_rl_spin120" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_rl_spin240 "wheel_rl_spin240" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence wheel_rl_spin "wheel_rl_spin0" fps 30.00 {
  blendwidth 4
  blend vehicle_wheel_rl_spin -180.000000 180.000000
  delta
  autoplay
 wheel_rl_spin120 wheel_rl_spin240 wheel_rl_spin0
}
$animation wheel_rr_low "wheel_rr_low" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_rr_high "wheel_rr_high" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence wheel_rr_suspension "wheel_rr_low" fps 30.00 {
  blendwidth 2
  blend vehicle_wheel_rr_height 0.000000 1.000000
  delta
  autoplay
 wheel_rr_high
}
$animation wheel_rr_spin0 "wheel_rr_spin0" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_rr_spin120 "wheel_rr_spin120" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation wheel_rr_spin240 "wheel_rr_spin240" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence wheel_rr_spin "wheel_rr_spin0" fps 30.00 {
  blendwidth 4
  blend vehicle_wheel_rr_spin -180.000000 180.000000
  delta
  autoplay
 wheel_rr_spin120 wheel_rr_spin240 wheel_rr_spin0
}
$animation down_left "down_left" fps 30.000000
$animation mid_left "mid_left" fps 30.000000
$animation up_left "up_left" fps 30.000000
$animation down_center "down_center" fps 30.000000
$animation mid_center "mid_center" fps 30.000000
$animation up_center "up_center" fps 30.000000
$animation down_right "down_right" fps 30.000000
$animation mid_right "mid_right" fps 30.000000
$animation up_right "up_right" fps 30.000000
$sequence aim_all "down_left" fps 30.00 {
  blendwidth 9
  blend vehicle_weapon_yaw -120.000000 120.000000
  autoplay
 mid_left up_left down_center mid_center up_center down_right mid_right up_right
}
$animation slow "slow" fps 30.000000 subtract mdldecompiler_delta.smd 0

$animation fast "fast" fps 30.000000 subtract mdldecompiler_delta.smd 0

$sequence antenna "slow" fps 30.00 {
  blendwidth 2
  blend vehicle_guage 0.000000 1.000000
  delta
  autoplay
 fast
}


I know for the skins you can leave it as


$texturegroup skinfamilies
{
	{ "Jeep1" }
	{ "Jeep2" }
	{ "Jeep3" }
	{ "Jeep4" }
	{ "Jeep5" }
	{ "Jeep6" }
	{ "Jeep7" }
	{ "Jeep8" }
	{ "Jeep9" }
}


Since combine_interface_disp only has 1 texture. I thought the model was just …a model. I have no experience with drivable vehicles, sorry. :frown:

Oh :stuck_out_tongue: Thats ok I appreciate the effort.