Advertisement
DatAmazingCheese

British Flag

May 12th, 2017
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. @name British Flag
  2. @persist I
  3. @trigger
  4.  
  5. if(first()|dupefinished())
  6. {
  7.  
  8. # Instructions
  9.  
  10. # Spawn and place the E2 where you want it, the flag trailing behind.
  11. # Weld the E2 to the base of where you want it, ie turret base, hull.
  12. # Parent the E2 to the gate on that base with "Remove Constraints" unticked!
  13. # Voila, spread the Empire!
  14.  
  15. # Made by DatAmazingCheese
  16.  
  17. #Flag
  18.  
  19. holoCreate(1)
  20. holoModel(1,"models/pac/jiggle/base_cloth_3.mdl")
  21. holoMaterial(1,"ttp/surfaces/surface_union_jack")
  22. holoColor(1,vec(255,255,255))
  23. holoDisableShading(1,1)
  24. holoPos(1,entity():toWorld(vec(-0.5,0,65.57)))
  25. holoParent(1,entity())
  26.  
  27. #Flag Bones
  28.  
  29. holoBoneScale(1,0,vec(5,1,1))
  30. holoBoneScale(1,1,vec(5,1,1))
  31. holoBoneScale(1,2,vec(5,1,1))
  32. holoBoneScale(1,3,vec(5,1,1))
  33. holoBoneScale(1,4,vec(5,1,1))
  34. holoBoneScale(1,5,vec(5,1,1))
  35. holoBoneScale(1,6,vec(5,1,1))
  36. holoBoneScale(1,7,vec(5,1,1))
  37. holoBoneScale(1,8,vec(5,1,1))
  38. holoBoneScale(1,9,vec(5,1,1))
  39.  
  40. #Pole
  41.  
  42. holoCreate(2)
  43. holoModel(2,"models/sprops/cylinders/size_1/cylinder_1_5x54.mdl")
  44. holoMaterial(2,"models/props_docks/dock01a")
  45. holoPos(2,entity():toWorld(vec(0,0,42.231)))
  46. holoScale(2,vec(0.6,0.6,1.6))
  47. holoParent(2,entity())
  48.  
  49. #Pole Cap
  50.  
  51. holoCreate(3)
  52. holoModel(3,"models/sprops/geometry/sphere_24.mdl")
  53. holoMaterial(3,"models/props_docks/dock01a")
  54. holoPos(3,entity():toWorld(vec(0,0,86)))
  55. holoScale(3,vec(0.075,0.075,0.075))
  56. holoParent(3,entity())
  57.  
  58. }
  59.  
  60. interval(100)
  61.  
  62. Speed = entity():vel():length()
  63.  
  64. I += Speed / 7
  65.  
  66. A = sin(I)*60
  67.  
  68. if(Speed > 1)
  69. {
  70. holoAng(1,entity():toWorld(ang(0,A,90)))
  71. }
  72. else
  73. {
  74. holoAng(1,entity():toWorld(ang(0,0,90)))
  75. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement