Guest User

Untitled

a guest
Dec 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.02 KB | None | 0 0
  1. $cd "F:\Nikon tiedostot\projects\source\male_ponies\Tombstone"
  2. $modelname "livingtombstone.mdl"
  3. $model "model" "reference.smd" { //Here's the base model you need, which also has all the facial expressions. Only a bald earth pony here. The file is under bodyparts -folder.
  4.  
  5. //eyeball coordinates, sizes and names here. Don't change these unless you know what you're doing. Otherwise you'll get some unwanted results. Edit textures instead.
  6. eyeball righteye Head -5.200 -15.060 39.890 eyeball_r 10.000 -1.000 body 10.000
  7. eyeball lefteye Head 5.200 -15.060 39.890 eyeball_l 10.000 1.000 body 10.000
  8. mouth 0 "mouth" Head 0.000 1.000 0.000
  9.  
  10.  
  11. //Under here are all the ../flexes. They can be declared all at once (like what you see in decompiled models), but I use this way since it's more readable and more flexible.
  12. //Don't change these without knowing what you're doing, one typo can result in breaking the flex in game.
  13.  
  14. flexfile "../flexes/angry.vta" //This line tells the flex file that needs to be loaded, found under ../flexes -folder
  15. flex "angry_r" frame 1 //Here's the name of the flex and the frame where it is located in the file
  16. flexcontroller "phoneme" "angry_r" "range" 0 1 //This part is for lipsync as far as I know
  17. %angry_r = angry_r //This line is used for combining some ../flexes for the lipsync. Keeping them simple like that is enough for posers.
  18.  
  19. flexfile "../flexes/angry.vta"
  20. flex "angry_l" frame 2
  21. flexcontroller "phoneme" "angry_l" "range" 0 1
  22. %angry_l = angry_l
  23.  
  24. flexfile "../flexes/sad.vta"
  25. flex "sad_r" frame 1
  26. flexcontroller "phoneme" "sad_r" "range" 0 1
  27. %sad_r = sad_r
  28.  
  29. flexfile "../flexes/sad.vta"
  30. flex "sad_l" frame 2
  31. flexcontroller "phoneme" "sad_l" "range" 0 1
  32. %sad_l = sad_l
  33.  
  34. flexfile "../flexes/eyes_relaxed.vta"
  35. flex "relaxed_r" frame 2
  36. flexcontroller "phoneme" "relaxed_r" "range" 0 1
  37. %relaxed_r = relaxed_r
  38.  
  39. flexfile "../flexes/eyes_relaxed.vta"
  40. flex "relaxed_l" frame 1
  41. flexcontroller "phoneme" "relaxed_l" "range" 0 1
  42. %relaxed_l = relaxed_l
  43.  
  44. flexfile "../flexes/lid_raiser.vta"
  45. flex "r_lid_raiser" frame 1
  46. flexcontroller "phoneme" "r_lid_raiser" "range" 0 1
  47. %r_lid_raiser = r_lid_raiser
  48.  
  49. flexfile "../flexes/lid_raiser.vta"
  50. flex "l_lid_raiser" frame 2
  51. flexcontroller "phoneme" "l_lid_raiser" "range" 0 1
  52. %l_lid_raiser = l_lid_raiser
  53.  
  54. flexfile "../flexes/lid_lowerer.vta"
  55. flex "r_lid_lowerer" frame 1
  56. flexcontroller "phoneme" "r_lid_lowerer" "range" 0 1
  57. %r_lid_lowerer = r_lid_lowerer
  58.  
  59. flexfile "../flexes/lid_lowerer.vta"
  60. flex "l_lid_lowerer" frame 2
  61. flexcontroller "phoneme" "l_lid_lowerer" "range" 0 1
  62. %l_lid_lowerer = l_lid_lowerer
  63.  
  64. flexfile "../flexes/eyebrow_lowerer.vta"
  65. flex "r_eyebrow_lowerer" frame 1
  66. flexcontroller "phoneme" "r_eyebrow_lowerer" "range" 0 1
  67. %r_eyebrow_lowerer = r_eyebrow_lowerer
  68.  
  69. flexfile "../flexes/eyebrow_lowerer.vta"
  70. flex "l_eyebrow_lowerer" frame 2
  71. flexcontroller "phoneme" "l_eyebrow_lowerer" "range" 0 1
  72. %l_eyebrow_lowerer = l_eyebrow_lowerer
  73.  
  74. flexfile "../flexes/happy.vta"
  75. flex "happy_r" frame 1
  76. flexcontroller "phoneme" "happy_r" "range" 0 1
  77. %happy_r = happy_r
  78.  
  79. flexfile "../flexes/happy.vta"
  80. flex "happy_l" frame 2
  81. flexcontroller "phoneme" "happy_l" "range" 0 1
  82. %happy_l = happy_l
  83.  
  84. flexfile "../flexes/eye_closer.vta"
  85. flex "eye_closer_right" frame 1
  86. flexcontroller "phoneme" "eye_closer_right" "range" 0 1
  87. %eye_closer_right = eye_closer_right
  88.  
  89. flexfile "../flexes/eye_closer.vta"
  90. flex "eye_closer_left" frame 2
  91. flexcontroller "phoneme" "eye_closer_left" "range" 0 1
  92. %eye_closer_left = eye_closer_left
  93.  
  94. flexfile "../flexes/closed_down.vta"
  95. flex "closed_down_r" frame 1
  96. flexcontroller "phoneme" "closed_down_r" "range" 0 1
  97. %closed_down_r = closed_down_r
  98.  
  99. flexfile "../flexes/closed_down.vta"
  100. flex "closed_down_l" frame 2
  101. flexcontroller "phoneme" "closed_down_l" "range" 0 1
  102. %closed_down_l = closed_down_l
  103.  
  104. flexfile "../flexes/jaw_open.vta"
  105. flex "jaw_open" frame 1
  106. flexcontroller "phoneme" "jaw_open" "range" 0 1
  107. %jaw_open = jaw_open
  108.  
  109. flexfile "../flexes/grin.vta"
  110. flex "grin" frame 1
  111. flexcontroller "phoneme" "grin" "range" 0 1
  112. %grin = grin
  113.  
  114. flexfile "../flexes/big_grin.vta"
  115. flex "big_grin" frame 1
  116. flexcontroller "phoneme" "big_grin" "range" 0 1
  117. %big_grin = big_grin
  118.  
  119. flexfile "../flexes/frown.vta"
  120. flex "r_frown" frame 1
  121. flexcontroller "phoneme" "r_frown" "range" 0 1
  122. %r_frown = r_frown
  123.  
  124. flexfile "../flexes/frown.vta"
  125. flex "l_frown" frame 2
  126. flexcontroller "phoneme" "l_frown" "range" 0 1
  127. %l_frown = l_frown
  128.  
  129. flexfile "../flexes/smirk.vta"
  130. flex "r_smirk" frame 1
  131. flexcontroller "phoneme" "r_smirk" "range" 0 1
  132. %r_smirk = r_smirk
  133.  
  134. flexfile "../flexes/smirk.vta"
  135. flex "l_smirk" frame 2
  136. flexcontroller "phoneme" "l_smirk" "range" 0 1
  137. %l_smirk = l_smirk
  138.  
  139. flexfile "../flexes/mouth_full.vta"
  140. flex "mouth_full" frame 1
  141. flexcontroller "phoneme" "mouth_full" "range" 0 1
  142. %mouth_full = mouth_full
  143.  
  144. flexfile "../flexes/mouth_extra.vta"
  145. flex "mouth_angry" frame 2
  146. flexcontroller "phoneme" "mouth_angry" "range" 0 1
  147. %mouth_angry = mouth_angry
  148.  
  149. flexfile "../flexes/mouth_neutral.vta"
  150. flex "mouth_neutral" frame 1
  151. flexcontroller "phoneme" "mouth_neutral" "range" 0 1
  152. %mouth_neutral = mouth_neutral
  153.  
  154. flexfile "../flexes/mouth_S.vta"
  155. flex "mouth_S" frame 1
  156. flexcontroller "phoneme" "mouth_S" "range" 0 1
  157. %mouth_S = mouth_S
  158.  
  159. flexfile "../flexes/mouth_extra.vta"
  160. flex "lower_lip_out" frame 1
  161. flexcontroller "phoneme" "lower_lip_out" "range" 0 1
  162. %lower_lip_out = lower_lip_out
  163.  
  164. flexfile "../flexes/lip_bite.vta"
  165. flex "lip_bite" frame 1
  166. flexcontroller "phoneme" "lip_bite" "range" 0 1
  167. %lip_bite = lip_bite
  168.  
  169. flexfile "../flexes/mouth_pucker.vta"
  170. flex "mouth_pucker" frame 1
  171. flexcontroller "phoneme" "mouth_pucker" "range" 0 1
  172. %mouth_pucker = mouth_pucker
  173.  
  174. flexfile "../flexes/tongue.vta"
  175. flex "tongue_out" frame 1
  176. flexcontroller "phoneme" "tongue_out" "range" 0 1
  177. %tongue_out = tongue_out
  178.  
  179. flexfile "../flexes/tongue.vta"
  180. flex "tongue_up" frame 2
  181. flexcontroller "phoneme" "tongue_up" "range" 0 1
  182. %tongue_up = tongue_up
  183.  
  184. flexfile "../flexes/tongue.vta"
  185. flex "tongue_down" frame 3
  186. flexcontroller "phoneme" "tongue_down" "range" 0 1
  187. %tongue_down = tongue_down
  188.  
  189. flexfile "../flexes/tongue.vta"
  190. flex "tongue_left" frame 4
  191. flexcontroller "phoneme" "tongue_left" "range" 0 1
  192. %tongue_left = tongue_left
  193.  
  194. flexfile "../flexes/tongue.vta"
  195. flex "tongue_right" frame 5
  196. flexcontroller "phoneme" "tongue_right" "range" 0 1
  197. %tongue_right = tongue_right
  198.  
  199. flexfile "../flexes/nose_wrinkle.vta"
  200. flex "nose_wrinkle" frame 1
  201. flexcontroller "phoneme" "nose_wrinkle" "range" 0 1
  202. %nose_wrinkle = nose_wrinkle
  203.  
  204. //blank flex used for keeping the rest of the ../flexes intact, without this the last flex will break in Gmod
  205. flexfile "../flexes/tongue.vta"
  206. flex "blank" frame 7
  207. flexcontroller "phoneme" "blank" "range" 0 1
  208. %blank = blank
  209.  
  210. flexcontroller eyes range -90 90 eyes_updown
  211. flexcontroller eyes range -90 90 eyes_rightleft
  212.  
  213. }
  214.  
  215. $opaque
  216.  
  217. $bodygroup "headphones"
  218. {
  219. studio "headphones.smd"
  220. "blank"
  221. }
  222. $bodygroup "mane"
  223. {
  224. studio "mane_tombstone.smd"
  225. }
  226. $bodygroup "tail"
  227. {
  228. studio "tail_tombstone.smd"
  229. }
  230.  
  231.  
  232. $cdmaterials "models\mlp\livingtombstone\"
  233. $renamematerial backhair hairback
  234. $renamematerial fronthair hairfront
  235.  
  236. $texturegroup skinfamilies {
  237. {
  238. "eyeball_l.vmt"
  239. "eyeball_r.vmt"
  240. }
  241. {
  242. "eyeball_l_medium.vmt"
  243. "eyeball_r_medium.vmt"
  244. }
  245. {
  246. "eyeball_l_small.vmt"
  247. "eyeball_r_small.vmt"
  248. }
  249. }
  250.  
  251. $jigglebone "jiggle_hair1" {
  252. is_flexible {
  253. length 20
  254. tip_mass 100
  255. pitch_constraint -5 10
  256. pitch_friction 10
  257. pitch_bounce 0
  258. yaw_stiffness 500
  259. yaw_damping 10
  260. yaw_constraint -5 5
  261. yaw_friction 10
  262. yaw_bounce 0
  263. pitch_stiffness 500
  264. pitch_damping 10
  265. }
  266. }
  267.  
  268. $jigglebone "jiggle_hair2" {
  269. is_flexible {
  270. length 20
  271. tip_mass 100
  272. pitch_constraint -5 5
  273. pitch_friction 10
  274. pitch_bounce 0
  275. yaw_stiffness 500
  276. yaw_damping 10
  277. yaw_constraint -5 5
  278. yaw_friction 10
  279. yaw_bounce 0
  280. pitch_stiffness 500
  281. pitch_damping 10
  282. }
  283. }
  284.  
  285. $jigglebone "jiggle_hair3" {
  286. is_flexible {
  287. length 20
  288. tip_mass 100
  289. pitch_constraint -5 5
  290. pitch_friction 10
  291. pitch_bounce 0
  292. yaw_stiffness 500
  293. yaw_damping 10
  294. yaw_constraint -5 5
  295. yaw_friction 10
  296. yaw_bounce 0
  297. pitch_stiffness 500
  298. pitch_damping 10
  299. }
  300. }
  301.  
  302. $jigglebone "jiggle_hair4" {
  303. is_flexible {
  304. length 20
  305. tip_mass 100
  306. pitch_constraint -8 8
  307. pitch_friction 10
  308. pitch_bounce 0
  309. yaw_stiffness 500
  310. yaw_damping 10
  311. yaw_constraint -8 8
  312. yaw_friction 10
  313. yaw_bounce 0
  314. pitch_stiffness 500
  315. pitch_damping 10
  316. }
  317. }
  318.  
  319. $jigglebone "jiggle_hair5" {
  320. is_flexible {
  321. length 20
  322. tip_mass 100
  323. pitch_constraint -8 8
  324. pitch_friction 10
  325. pitch_bounce 0
  326. yaw_stiffness 500
  327. yaw_damping 10
  328. yaw_constraint -8 8
  329. yaw_friction 10
  330. yaw_bounce 0
  331. pitch_stiffness 500
  332. pitch_damping 10
  333. }
  334. }
  335.  
  336. $jigglebone "jiggle_tail1" {
  337. is_flexible {
  338. length 20
  339. tip_mass 100
  340. pitch_constraint -15 15
  341. pitch_friction 10
  342. pitch_bounce 0
  343. yaw_stiffness 500
  344. yaw_damping 10
  345. yaw_constraint -15 15
  346. yaw_friction 10
  347. yaw_bounce 0
  348. pitch_stiffness 500
  349. pitch_damping 10
  350. }
  351. }
  352.  
  353. $jigglebone "jiggle_tail2" {
  354. is_flexible {
  355. length 20
  356. tip_mass 100
  357. pitch_constraint -8 8
  358. pitch_friction 10
  359. pitch_bounce 0
  360. yaw_stiffness 500
  361. yaw_damping 10
  362. yaw_constraint -8 8
  363. yaw_friction 10
  364. yaw_bounce 0
  365. pitch_stiffness 500
  366. pitch_damping 10
  367. }
  368. }
  369.  
  370. $jigglebone "jiggle_tail3" {
  371. is_flexible {
  372. length 20
  373. tip_mass 100
  374. pitch_constraint -8 8
  375. pitch_friction 10
  376. pitch_bounce 0
  377. yaw_stiffness 500
  378. yaw_damping 10
  379. yaw_constraint -8 8
  380. yaw_friction 10
  381. yaw_bounce 0
  382. pitch_stiffness 500
  383. pitch_damping 10
  384. }
  385. }
  386.  
  387. $attachment "eyes" "Head" 5.61 -9.36 0.00 rotate -0.00 -92.59 -90.00
  388. $attachment "mouth" "Head" 0.80 -5.80 -0.15 rotate 0.00 -80.00 -90.00
  389. $surfaceprop "flesh"
  390. $eyeposition -0.000 0.000 70.000
  391. $illumposition -3.290 -0.000 25.575
  392.  
  393. $origin 0 0 -1.8768
  394.  
  395. $sequence ragdoll "ragdoll" ACT_DIERAGDOLL 1 fps 30.00
  396. $collisionjoints "phymodel.smd" {
  397.  
  398. $mass 50.0
  399. $inertia 10.00
  400. $damping 0.20
  401. $rotdamping 4.50
  402. $noselfcollisions
  403. $rootbone "pelvis"
  404.  
  405. $jointconstrain "tail1" x limit -50.00 50.00 0.00
  406. $jointconstrain "tail1" y limit -50.00 50.00 0.00
  407. $jointconstrain "tail1" z limit -30.00 30.00 0.00
  408.  
  409. $jointconstrain "tail2" x limit -30.00 30.00 0.00
  410. $jointconstrain "tail2" y limit -30.00 30.00 0.00
  411. $jointconstrain "tail2" z limit -20.00 20.00 0.00
  412.  
  413. $jointconstrain "leftthigh" x limit -30.00 30.00 0.00
  414. $jointconstrain "leftthigh" y limit -90.00 10.00 0.00
  415. $jointconstrain "leftthigh" z limit -90.00 90.00 0.00
  416.  
  417. $jointconstrain "leftleg1" x limit 0.00 0.00 0.00
  418. $jointconstrain "leftleg1" y limit 0.00 0.00 0.00
  419. $jointconstrain "leftleg1" z limit -40.00 15.00 0.00
  420.  
  421. $jointconstrain "leftleg2" x limit 0.00 0.00 0.00
  422. $jointconstrain "leftleg2" y limit 0.00 0.00 0.00
  423. $jointconstrain "leftleg2" z limit -20.00 100.00 0.00
  424.  
  425. $jointconstrain "leftfoot" x limit -50.00 50.00 0.00
  426. $jointconstrain "leftfoot" y limit -50.00 50.00 0.00
  427. $jointconstrain "leftfoot" z limit -50.00 50.00 0.00
  428.  
  429. $jointconstrain "rightthigh" x limit -30.00 30.00 0.00
  430. $jointconstrain "rightthigh" y limit -90.00 10.00 0.00
  431. $jointconstrain "rightthigh" z limit -90.00 90.00 0.00
  432.  
  433. $jointconstrain "rightleg1" x limit 0.00 0.00 0.00
  434. $jointconstrain "rightleg1" y limit 0.00 0.00 0.00
  435. $jointconstrain "rightleg1" z limit -40.00 15.00 0.00
  436.  
  437. $jointconstrain "rightleg2" x limit 0.00 0.00 0.00
  438. $jointconstrain "rightleg2" y limit 0.00 0.00 0.00
  439. $jointconstrain "rightleg2" z limit -20.00 100.00 0.00
  440.  
  441. $jointconstrain "rightfoot" x limit -50.00 50.00 0.00
  442. $jointconstrain "rightfoot" y limit -50.00 50.00 0.00
  443. $jointconstrain "rightfoot" z limit -50.00 50.00 0.00
  444.  
  445. $jointconstrain "chest1" x limit -15.00 15.00 0.00
  446. $jointconstrain "chest1" y limit -20.00 20.00 0.00
  447. $jointconstrain "chest1" z limit -20.00 20.00 0.00
  448.  
  449. $jointconstrain "leftwingclosed" x limit -20.00 20.00 0.00
  450. $jointconstrain "leftwingclosed" y limit -20.00 20.00 0.00
  451. $jointconstrain "leftwingclosed" z limit -70.00 10.00 0.00
  452.  
  453. $jointconstrain "chest2" x limit -15.00 15.00 0.00
  454. $jointconstrain "chest2" y limit -20.00 20.00 0.00
  455. $jointconstrain "chest2" z limit -20.00 20.00 0.00
  456.  
  457. $jointconstrain "leftshoulder" x limit -30.00 30.00 0.00
  458. $jointconstrain "leftshoulder" y limit -40.00 40.00 0.00
  459. $jointconstrain "leftshoulder" z limit -20.00 40.00 0.00
  460.  
  461. $jointconstrain "leftarm" x limit -10.00 10.00 0.00
  462. $jointconstrain "leftarm" y limit -10.00 10.00 0.00
  463. $jointconstrain "leftarm" z limit -10.00 10.00 0.00
  464.  
  465. $jointconstrain "leftforearm" x limit -20.00 20.00 0.00
  466. $jointconstrain "leftforearm" y limit -10.00 10.00 0.00
  467. $jointconstrain "leftforearm" z limit 0.00 100.00 0.00
  468.  
  469. $jointconstrain "lefthand" x limit 0.00 0.00 0.00
  470. $jointconstrain "lefthand" y limit 0.00 0.00 0.00
  471. $jointconstrain "lefthand" z limit -100.00 0.00 0.00
  472.  
  473. $jointconstrain "rightshoulder" x limit -30.00 30.00 0.00
  474. $jointconstrain "rightshoulder" y limit -40.00 40.00 0.00
  475. $jointconstrain "rightshoulder" z limit -20.00 40.00 0.00
  476.  
  477. $jointconstrain "rightarm" x limit -10.00 10.00 0.00
  478. $jointconstrain "rightarm" y limit -10.00 10.00 0.00
  479. $jointconstrain "rightarm" z limit -10.00 10.00 0.00
  480.  
  481. $jointconstrain "rightforearm" x limit -20.00 20.00 0.00
  482. $jointconstrain "rightforearm" y limit -10.00 10.00 0.00
  483. $jointconstrain "rightforearm" z limit 0.00 100.00 0.00
  484.  
  485. $jointconstrain "righthand" x limit 0.00 0.00 0.00
  486. $jointconstrain "righthand" y limit 0.00 0.00 0.00
  487. $jointconstrain "righthand" z limit -100.00 0.00 0.00
  488.  
  489. $jointconstrain "rightball" x limit -50.00 50.00 0.00
  490. $jointconstrain "rightball" y limit -50.00 50.00 0.00
  491. $jointconstrain "rightball" z limit -50.00 50.00 0.00
  492.  
  493. $jointconstrain "neck" x limit -40.00 40.00 0.00
  494. $jointconstrain "neck" y limit -30.00 30.00 0.00
  495. $jointconstrain "neck" z limit -50.00 30.00 0.00
  496.  
  497. $jointconstrain "head" x limit -50.00 50.00 0.00
  498. $jointconstrain "head" y limit -30.00 30.00 0.00
  499. $jointconstrain "head" z limit -30.00 30.00 0.00
  500.  
  501. $jointconstrain "leftball" x limit -50.00 50.00 0.00
  502. $jointconstrain "leftball" y limit -50.00 50.00 0.00
  503. $jointconstrain "leftball" z limit -50.00 50.00 0.00
  504.  
  505. $jointconstrain "rightwingclosed" x limit -20.00 20.00 0.00
  506. $jointconstrain "rightwingclosed" y limit -20.00 20.00 0.00
  507. $jointconstrain "rightwingclosed" z limit -70.00 10.00 0.00
  508.  
  509. $jointconstrain "tail3" x limit -20.00 20.00 0.00
  510. $jointconstrain "tail3" y limit -20.00 20.00 0.00
  511. $jointconstrain "tail3" z limit -20.00 20.00 0.00
  512.  
  513. $jointconstrain "leftwingopen" x limit -80.00 80.00 0.00
  514. $jointconstrain "leftwingopen" y limit -50.00 50.00 0.00
  515. $jointconstrain "leftwingopen" z limit -25.00 100.00 0.00
  516.  
  517. $jointconstrain "rightwingopen" x limit -80.00 80.00 0.00
  518. $jointconstrain "rightwingopen" y limit -50.00 50.00 0.00
  519. $jointconstrain "rightwingopen" z limit -25.00 100.00 0.00
  520. }
Add Comment
Please, Sign In to add comment