ReverendV92

$texturegroup / Skin Example

Oct 13th, 2017
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.03 KB | None | 0 0
  1. $texturegroup skinfamilies // Adds a skin group function
  2. {
  3.  
  4.     {   "sprops_metal5_white"  // Name of the material/.VMT used by the base reference .SMD to replace; consider this material 0
  5.         "mlw_intake_white" // Ditto, but a different material; consider material 1
  6.     }
  7.     {
  8.         "sprops_metal1_white" // Name of the .VMT to replace material 0 defined abouve
  9.         "mlw_intake_gray" // Name of the .VMT to replace material 1 abouve
  10.     }
  11.  
  12.     { "sprops_metal1_white" "mlw_intake_gray" // This is also valid syntax, just with less wasted space
  13.     }
  14. }
  15.  
  16. // The following works on prop_door_rotating, but untested on normal props
  17.  
  18. $KeyValues
  19. {
  20.     door_options // Not sure if this can be changed, try it
  21.     {
  22.         default // Default properties
  23.         {
  24.             surfaceprop wood // set the default to $surfaceprop wood
  25.         }
  26.         skin0
  27.         {
  28.             surfaceprop metal // set the skin0 to $surfaceprop metal
  29.         }
  30.         skin1
  31.         {
  32.             surfaceprop wood // set the skin1 to $surfaceprop wood
  33.         }
  34.         skin2
  35.         {
  36.             surfaceprop metal_box // set the skin2 to $surfaceprop metal_box
  37.         }
  38.     }
  39. }
Advertisement
Add Comment
Please, Sign In to add comment