Home Contests & Challenges Archives Team Fortress 2

vmt and qc help

polycounter lvl 7
Offline / Send Message
brianchenito polycounter lvl 7
Hi,

Im having an issue getting my textures to stick on a model. Can someone experienced take a look at my syntax and see if I made any errors?


files are in the following locations, with text pasted in.

pajama.mdl :
C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\models\player\items\Scout\pajama.mdl

pajama.qc :
C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\models\player\items\Scout\pajama.qc


$cd "C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\models\player\items\Scout"
$modelname "player\items\scout\pajama.mdl"
$model "pajama" "pajama.smd"

$cdmaterials "\models\player\items\scout\"
$texturegroup skinfamilies
{
{ "pajama_red.vmt"}
{ "pajama_blu.vmt"}
}
// Model uses material "models/player/items/scout/red_pajama.vmt
// Model uses material "models/player/items/scout/Blu_pajama.vmt


$illumposition 0.000 0.000 -0.115
$sequence idle "sequence_pajama.smd" loop fps 30.00
$surfaceprop "default"





pajama_blu.vmt
C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\materials\models\player\items\Scout\pajama_blu.vmt



"VertexlitGeneric"
{
"$baseTexture" "models\player\items\scout\Pajama_Blu.vtf"
"$bumpmap" "models\player\items\Pajama_Normal.vtf"
"$detail" "effects/tiledfire/fireLayeredSlowTiled512.vtf"
"$detailscale" "5"
"$detailblendfactor" .007
"$detailblendmode" 6
"$yellow" "0"

"$nocull" "1"
"$blendtintbybasealpha" "1"
"$blendtintcoloroverbase" "0"

"$colortint_base" "{185 67 67}"
"$colortint_tmp" "[0 0 0]"

"$phong" "1"
"$phongboost" "5"
"$lightwarptexture" "models/player/pyro/pyro_lightwarp"
"$phongfresnelranges" "[.15 .5 1]"
"$normalmapalphaenvmapmask" "1"
"$normalmapalphaphongmask" "1"


"$rimlight" "1" // To enable rim lighting (requires phong)
"$rimlightexponent" "2" // Exponent for phong component of rim lighting
"$rimlightboost" ".8" // Boost for ambient cube component of rim lighting

// Cloaking
"$cloakPassEnabled" "1"

"Proxies"
{
"weapon_invis"
{
}
"BurnLevel"
{
"resultVar" "$detailblendfactor"
}
"YellowLevel"
{
"resultVar" "$yellow"
}
"Equals"
{
"srcVar1" "$yellow"
"resultVar" "$color2"
}
"ItemTintColor"
{
"resultVar" "$colortint_tmp"
}
"SelectFirstIfNonZero"
{
"srcVar1" "$colortint_tmp"
"srcVar2" "$colortint_base"
"resultVar" "$color2"
}
}
}








pajama_red.vmt
C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\materials\models\player\items\Scout\pajama_red.vmt




"VertexlitGeneric"
{
"$baseTexture" "models\player\items\scout\Pajama_Red.vtf"
"$bumpmap" "models\player\items\Pajama_Normal.vtf"
"$detail" "effects/tiledfire/fireLayeredSlowTiled512.vtf"
"$detailscale" "5"
"$detailblendfactor" .007
"$detailblendmode" 6
"$yellow" "0"

"$nocull" "1"
"$blendtintbybasealpha" "1"
"$blendtintcoloroverbase" "0"

"$colortint_base" "{185 67 67}"
"$colortint_tmp" "[0 0 0]"

"$phong" "1"
"$phongboost" "5"
"$lightwarptexture" "models/player/pyro/pyro_lightwarp"
"$phongfresnelranges" "[.15 .5 1]"
"$normalmapalphaenvmapmask" "1"
"$normalmapalphaphongmask" "1"


"$rimlight" "1" // To enable rim lighting (requires phong)
"$rimlightexponent" "2" // Exponent for phong component of rim lighting
"$rimlightboost" ".8" // Boost for ambient cube component of rim lighting

// Cloaking
"$cloakPassEnabled" "1"

"Proxies"
{
"weapon_invis"
{
}
"BurnLevel"
{
"resultVar" "$detailblendfactor"
}
"YellowLevel"
{
"resultVar" "$yellow"
}
"Equals"
{
"srcVar1" "$yellow"
"resultVar" "$color2"
}
"ItemTintColor"
{
"resultVar" "$colortint_tmp"
}
"SelectFirstIfNonZero"
{
"srcVar1" "$colortint_tmp"
"srcVar2" "$colortint_base"
"resultVar" "$color2"
}
}
}






}




pajama_Red.vtf
C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\materials\models\player\items\Scout\pajama_Red.vtf

pajama_Blu.vtf
C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\materials\models\player\items\Scout\pajama_Blu.vtf

pajama_normal.vtf
C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\materials\models\player\items\Scout\pajama_normal.vtf

Replies

Sign In or Register to comment.