SHARE
TWEET

Untitled

a guest Aug 16th, 2017 111 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @name Spring
  2. @inputs Screen:wirelink
  3. @outputs Timer Out Pitch Multi I Holograms
  4. @persist Ranger:ranger
  5. @trigger
  6.  
  7. runOnTick(1)
  8.  
  9. if(first()|duped()){
  10.    
  11.     Multi=1
  12.    
  13.     Holograms=30
  14.    
  15.     Scale=vec(0.5,0.5,0.5)
  16.    
  17.     Pitch=45
  18.    
  19.     #If the model is "hq_torus_thick" then the height multiplier is 9
  20.     #If the model is "hq_torus" then the height multiplier is 5.25
  21.    
  22.     holoCreate(0)
  23.     holoModel(0,"plane")
  24.     holoParent(0,entity())
  25.    
  26.  
  27.     for(I=1,Holograms){
  28.        
  29.         holoCreate(I,entity():toWorld(vec(0,0,I*cos(Pitch)*9)),Scale,entity():toWorld(ang(90+Pitch*(I%2+(I%2-1)),0,0)),vec(1,1,1)*255,"hq_torus")
  30.        
  31.         holoParent(I,entity())
  32.        
  33.         holoClipEnabled(I,1)
  34.  
  35.         holoClip(I,vec(),vec(0,I%2+(I%2-1),0),0)
  36.  
  37.         }
  38.  
  39. }
  40.  
  41. #[if(Pitch==80){
  42.    
  43.     Multi=-1
  44.    
  45. }
  46. if(Pitch==10){
  47.    
  48.     Multi=1
  49.    
  50. }
  51.  
  52. Pitch=Pitch+Multi/5]#
  53.  
  54. Ranger=rangerOffset(Holograms*cos(75)*5.25,entity():pos(),entity():up())
  55.  
  56. holoPos(0,Ranger:position())
  57.  
  58. Pitch=acos(Ranger:distance()/5.25/Holograms)
  59.  
  60. for(I=1,Holograms){
  61.    
  62.     holoPos(I,entity():toWorld(vec(0,0,I*cos(Pitch)*5.25)))
  63.    
  64.     holoAng(I,entity():toWorld(ang(90+Pitch*(I%2+(I%2-1)),0,0)))
  65.    
  66. }
  67.  
  68. Ranger:entity():applyOffsetForce((entity():up()*Ranger:entity():mass()*((Holograms*cos(75)*5.25)-Ranger:distance())),Ranger:position())
  69.  
  70. entity():applyForce(-entity():up()*entity():mass()*((Holograms*cos(75)*5.25)-Ranger:distance()))
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