SHARE
TWEET

Pink Mouse Head :3

Dusty_Wings Apr 9th, 2016 144 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @name Animal Head BY PCL
  2. @inputs
  3. @outputs
  4. @persist [MainColor OEarColor IEarColor NoseColor EyeColor]:vector EarAngle:number
  5. @trigger
  6.  
  7. E=owner()
  8.  
  9. if(first()|clk("redraw"))
  10. {
  11.  
  12. MainColor = vec(585,0,75)   #color of head
  13. OEarColor = vec(181,0,71)     #color of outer ear
  14. IEarColor = vec(200,255,255)  #color of inner ear
  15. NoseColor = vec(0,0,0)        #eye color
  16. EyeColor = vec(0,0,0)         #nose color
  17. EarAngle = 20                 #angle to be added/subtracted to get the ears angle
  18.                                                                                                                                                                                                                                                                                                                                                                                        print(_HUD_PRINTCENTER,"This E2 was made by PCLally")
  19. runOnChat(1)
  20.  
  21. holoCreate(1)
  22. holoModel(1,"hq_icosphere")
  23. holoAng(1,E:attachmentAng("anim_attachment_head"))
  24. holoPos(1,E:attachmentPos("anim_attachment_head"))
  25. holoParentAttachment(1,E,"anim_attachment_head")
  26. holoScale(1,vec(2.4,2.2,2.2))
  27. holoColor(1,MainColor)
  28. holoAlpha(1,255)
  29. holoPos(1,holoEntity(1):toWorld(vec(0,5,0)))
  30. holoAng(1,holoEntity(1):toWorld(ang(0,0,100)))
  31.  
  32. #left eye
  33. holoCreate(2)
  34. holoModel(2,"hqcylinder")
  35. holoAng(2,E:attachmentAng("anim_attachment_head"))
  36. holoPos(2,E:attachmentPos("anim_attachment_head"))
  37. holoParentAttachment(2,E,"anim_attachment_head")
  38. holoScale(2,vec(0.3,0.3,0.2))
  39. holoColor(2,EyeColor)
  40. holoAlpha(2,255)
  41. holoPos(2,holoEntity(1):toWorld(vec(3,-11.8,-3)))
  42. holoAng(2,holoEntity(1):toWorld(ang(90,90,0)))
  43.  
  44. #right eye
  45. holoCreate(3)
  46. holoModel(3,"hqcylinder")
  47. holoAng(3,E:attachmentAng("anim_attachment_head"))
  48. holoPos(3,E:attachmentPos("anim_attachment_head"))
  49. holoParentAttachment(3,E,"anim_attachment_head")
  50. holoScale(3,vec(0.3,0.3,0.2))
  51. holoColor(3,EyeColor)
  52. holoAlpha(3,255)
  53. holoPos(3,holoEntity(1):toWorld(vec(-3,-11.8,-3)))
  54. holoAng(3,holoEntity(1):toWorld(ang(90,90,0)))
  55.  
  56. #nose
  57. holoCreate(4)
  58. holoModel(4,"prism")
  59. holoAng(4,E:attachmentAng("anim_attachment_head"))
  60. holoPos(4,E:attachmentPos("anim_attachment_head"))
  61. holoParentAttachment(4,E,"anim_attachment_head")
  62. holoScale(4,vec(0.3,0.1,0.3))
  63. holoColor(4,NoseColor)
  64. holoAlpha(4,255)
  65. holoPos(4,holoEntity(1):toWorld(vec(0,-18.09,5)))
  66. holoAng(4,holoEntity(1):toWorld(ang(180,0,0)))
  67.  
  68. #left outer ear
  69. holoCreate(5)
  70. holoModel(5,"hq_icosphere")
  71. holoAng(5,E:attachmentAng("anim_attachment_head"))
  72. holoPos(5,E:attachmentPos("anim_attachment_head"))
  73. holoParentAttachment(5,E,"anim_attachment_head")
  74. holoScale(5,vec(1.5,0.3,2.5))
  75. holoColor(5,OEarColor)
  76. holoAlpha(5,255)
  77. holoPos(5,holoEntity(1):toWorld(vec(15,0,-15)))
  78. holoAng(5,holoEntity(1):toWorld(ang(180-EarAngle,0,0)))
  79. holoShadow(5,0)
  80.  
  81. #right outer ear
  82. holoCreate(6)
  83. holoModel(6,"hq_icosphere")
  84. holoAng(6,E:attachmentAng("anim_attachment_head"))
  85. holoPos(6,E:attachmentPos("anim_attachment_head"))
  86. holoParentAttachment(6,E,"anim_attachment_head")
  87. holoScale(6,vec(1.5,0.3,2.5))
  88. holoColor(6,OEarColor)
  89. holoAlpha(6,255)
  90. holoPos(6,holoEntity(1):toWorld(vec(-15,0,-15)))
  91. holoAng(6,holoEntity(1):toWorld(ang(180+EarAngle,0,0)))
  92. holoShadow(6,0)
  93.  
  94. #left inner ear
  95. holoCreate(7)
  96. holoModel(7,"hq_icosphere")
  97. holoAng(7,E:attachmentAng("anim_attachment_head"))
  98. holoPos(7,E:attachmentPos("anim_attachment_head"))
  99. holoParentAttachment(7,E,"anim_attachment_head")
  100. holoScale(7,vec(1.2,0.3,2.2))
  101. holoColor(7,IEarColor)
  102. holoAlpha(7,255)
  103. holoPos(7,holoEntity(1):toWorld(vec(15,-0.2,-15)))
  104. holoAng(7,holoEntity(1):toWorld(ang(160,0,0)))
  105. holoShadow(7,0)
  106.  
  107. #right inner ear
  108. holoCreate(8)
  109. holoModel(8,"hq_icosphere")
  110. holoAng(8,E:attachmentAng("anim_attachment_head"))
  111. holoPos(8,E:attachmentPos("anim_attachment_head"))
  112. holoParentAttachment(8,E,"anim_attachment_head")
  113. holoScale(8,vec(1.2,0.3,2.2))
  114. holoColor(8,IEarColor)
  115. holoAlpha(8,255)
  116. holoPos(8,holoEntity(1):toWorld(vec(-15,-0.2,-15)))
  117. holoAng(8,holoEntity(1):toWorld(ang(200,0,0)))
  118. holoShadow(8,0)
  119.  
  120. #snout
  121. holoCreate(9)
  122. holoModel(9,"hq_dome")
  123. holoAng(9,E:attachmentAng("anim_attachment_head"))
  124. holoPos(9,E:attachmentPos("anim_attachment_head"))
  125. holoParentAttachment(9,E,"anim_attachment_head")
  126. holoScale(9,vec(1,1.2,2))
  127. holoColor(9,MainColor)
  128. holoAlpha(9,255)
  129. holoPos(9,holoEntity(1):toWorld(vec(0,-6.7,5)))
  130. holoAng(9,holoEntity(1):toWorld(ang(90,270,0)))
  131. holoShadow(9,0)
  132. }
  133.  
  134. LastSaid=owner():lastSaid():lower():explode(" ")
  135. LastSaid1=LastSaid:string(1)
  136. LastSaid2=LastSaid:string(2)
  137.  
  138. if(LastSaid1=="/hredraw")
  139. {
  140.     hideChat(1)
  141.     printColor(vec(100,255,100),"redrawing...")
  142.     timer("redraw",1000)
  143. }
  144.  
  145. elseif(LastSaid1=="/vm1"&chatClk(owner()))
  146. {
  147.     hideChat(1)
  148.     holoVisible(1,E,1)
  149.     holoVisible(2,E,1)
  150.     holoVisible(3,E,1)
  151.     holoVisible(4,E,1)
  152.     holoVisible(5,E,1)
  153.     holoVisible(6,E,1)
  154.     holoVisible(7,E,1)
  155.     holoVisible(8,E,1)
  156.     holoVisible(9,E,1)
  157. }
  158.  
  159. if(LastSaid1=="/vm2"&chatClk(owner()))
  160. {
  161.     hideChat(1)
  162.     holoVisible(1,E,0)
  163.     holoVisible(2,E,0)
  164.     holoVisible(3,E,0)
  165.     holoVisible(4,E,0)
  166.     holoVisible(5,E,0)
  167.     holoVisible(6,E,0)
  168.     holoVisible(7,E,0)
  169.     holoVisible(8,E,0)
  170.     holoVisible(9,E,0)
  171. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top