This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

worldrave

By: a guest on Sep 15th, 2008  |  syntax: None  |  size: 7.53 KB  |  views: 128  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.             if self.starfx: #blazingamer, corrected by myfingershurt, adjusted by worldrave
  2.               if self.guitars[i].starPower >= 50 or self.guitars[i].starPowerActive:
  3.                 if self.x1[i] < 0.886:
  4.                   self.x1[i] += 0.01
  5.                   if self.x1[i] > 0.886:
  6.                     self.x1[i] = 0.886
  7.                 if self.y1[i] < 0.341:
  8.                   self.y1[i] += 0.01
  9.                   if self.y1[i] > 0.341:
  10.                     self.y1[i] = 0.341
  11.                 if self.x2[i] < 0.922:
  12.                   self.x2[i] += 0.01
  13.                   if self.x2[i] > 0.922:
  14.                     self.x2[i] = 0.922
  15.                 if self.y2[i] < 0.324:
  16.                   self.y2[i] += 0.01
  17.                   if self.y2[i] > 0.324:
  18.                     self.y2[i] = 0.324
  19.                 if self.x3[i] < 0.952:
  20.                   self.x3[i] += 0.01
  21.                   if self.x3[i] > 0.952:
  22.                     self.x3[i] = 0.952
  23.                 if self.y3[i] < 0.288:
  24.                   self.y3[i] += 0.01
  25.                   if self.y3[i] > 0.288:
  26.                     self.y3[i] = 0.288
  27.               else:
  28.                 if self.x1[i] > 0.86:
  29.                   self.x1[i] -= 0.01
  30.                 if self.y1[i] > 0.2:
  31.                   self.y1[i] -= 0.01
  32.                 if self.x2[i] > 0.86:
  33.                   self.x2[i] -= 0.01
  34.                 if self.y2[i] > 0.2:
  35.                   self.y2[i] -= 0.01
  36.                 if self.x3[i] > 0.86:
  37.                   self.x3[i] -= 0.01
  38.                 if self.y3[i] > 0.2:
  39.                   self.y3[i] -= 0.01
  40.    
  41.               if self.guitars[i].starPower >= 50 or self.guitars[i].starPowerActive: #QQstarS:Set [0] to [i]
  42.                 lightPos = (0.689655172,1)  #MFH division->constant: was (2.0/2.9,1)
  43.               else:
  44.                 lightPos = (1.0/2.9,2.0/3.1)  #MFH division->constant: ok any preprocessor worth it's salt would take care of this before runtime... this is pointless.
  45.    
  46.               if self.guitars[i].starPower >= 16.6: #QQstarS:Set [0] to [i]
  47.                 lightVis = 1
  48.               else:
  49.                 lightVis = self.guitars[i].starPower/16.6
  50.  
  51.               wfactor = self.SP.widthf(pixelw = 23.000) #Worldrave Change - Bulb 1
  52.               self.SP.transform.reset()
  53.               self.SP.transform.rotate(.87)  #Worldrave Change
  54.               self.SP.transform.scale(wfactor,-wfactor*3)
  55.               self.SP.transform.translate(w*0.772,h*0.284 + hOffset) #Worldrave Width and Height was h*0.310
  56.               self.SP.draw(rect = (0,1.0/3.1,0,1), color = (1,1,1,1))
  57.               self.SP.transform.reset()
  58.               self.SP.transform.rotate(.87) #Worldrave Change
  59.               self.SP.transform.scale(wfactor,-wfactor*3)
  60.               self.SP.transform.translate(w*0.772 ,h*0.284 + hOffset) #Worldrave Change
  61.               self.SP.draw(rect = (lightPos[0],lightPos[1],0,1), color = (1,1,1,lightVis))
  62.    
  63.               if self.guitars[i].starPower >= 33.2: #QQstarS:Set [0] to [i]
  64.                 lightVis = 1
  65.               else:
  66.                 lightVis = (self.guitars[i].starPower-16.6)/16.6
  67.               wfactor = self.SP.widthf(pixelw = 23.000) #Worldrave Change - Bulb 2
  68.               self.SP.transform.reset()
  69.               self.SP.transform.rotate(.58)  #Worldrave Change
  70.               self.SP.transform.scale(wfactor,-wfactor*3)
  71.               self.SP.transform.translate(w*0.795,h*0.312 + hOffset)  #Worldrave Change
  72.               self.SP.draw(rect = (0,1.0/3.1,0,1), color = (1,1,1,1))
  73.               self.SP.transform.reset()
  74.               self.SP.transform.rotate(.46)  #Worldrave Change
  75.               self.SP.transform.scale(wfactor,-wfactor*3)
  76.               self.SP.transform.translate(w*0.795,h*0.312 + hOffset)  #Worldrave Change
  77.               self.SP.draw(rect = (lightPos[0],lightPos[1],0,1), color = (1,1,1,lightVis))
  78.    
  79.               if self.guitars[i].starPower >= 49.8:
  80.                 lightVis = 1
  81.               else:
  82.                 lightVis = (self.guitars[i].starPower-32.2)/16.6
  83.  
  84.               wfactor = self.SP.widthf(pixelw = 23.000)  #Worldrave Change - Bulb 3
  85.               self.SP.transform.reset()
  86.               self.SP.transform.rotate(.37)  #Worldrave Change
  87.               self.SP.transform.scale(wfactor,-wfactor*3)
  88.               self.SP.transform.translate(w*0.822,h*0.329 + hOffset) #Worldrave Width and Height was h*0.338
  89.               self.SP.draw(rect = (0,1.0/3.1,0,1), color = (1,1,1,1))
  90.               self.SP.transform.reset()
  91.               self.SP.transform.rotate(.1)  #Worldrave Change
  92.               self.SP.transform.scale(wfactor,-wfactor*3)
  93.               self.SP.transform.translate(w*0.822,h*0.329 + hOffset)  #Worldrave Change
  94.               self.SP.draw(rect = (lightPos[0],lightPos[1],0,1), color = (1,1,1,lightVis))
  95.    
  96.               if self.guitars[i].starPower >= 66.4:
  97.                 lightVis = 1
  98.               else:
  99.                 lightVis = (self.guitars[i].starPower-49.8)/16.6
  100.  
  101.               wfactor = self.SP.widthf(pixelw = 32.000) #Worldrave Change - Bulb 4
  102.               self.SP.transform.reset()
  103.               self.SP.transform.rotate(.0)  #Worldrave Change
  104.               self.SP.transform.scale(wfactor,-wfactor*3)
  105.               self.SP.transform.translate(w*self.x1[i] - 34,h*self.y1[i] + hOffset + 3)  #Worldrave Change
  106.               self.SP.draw(rect = (0,1.0/3.1,0,1), color = (1,1,1,1))
  107.               self.SP.transform.reset()
  108.               self.SP.transform.rotate(.0)  #Worldrave Change
  109.               self.SP.transform.scale(wfactor,-wfactor*3)
  110.               self.SP.transform.translate(w*self.x1[i],h*self.y1[i] + hOffset)
  111.               self.SP.draw(rect = (lightPos[0],lightPos[1],0,1), color = (1,1,1,lightVis))
  112.    
  113.               if self.guitars[i].starPower >= 83:
  114.                 lightVis = 1
  115.               else:
  116.                 lightVis = (self.guitars[i].starPower-66.4)/16.6
  117.  
  118.               wfactor = self.SP.widthf(pixelw = 32.000)  #Worldrave Change - Bulb 5  
  119.               self.SP.transform.reset()
  120.               self.SP.transform.rotate(-.40)  #Worldrave Change
  121.               self.SP.transform.scale(wfactor,-wfactor*3)
  122.               self.SP.transform.translate(w*self.x2[i] - 22,h*self.y2[i] + hOffset + 7)  #Worldrave Change
  123.               self.SP.draw(rect = (0,1.0/3.1,0,1), color = (1,1,1,1))
  124.               self.SP.transform.reset()
  125.               self.SP.transform.rotate(-.40)  #Worldrave Change
  126.               self.SP.transform.scale(wfactor,-wfactor*3)
  127.               self.SP.transform.translate(w*self.x2[i],h*self.y2[i] + hOffset)
  128.               self.SP.draw(rect = (lightPos[0],lightPos[1],0,1), color = (1,1,1,lightVis))
  129.    
  130.               if self.guitars[i].starPower >= 100:
  131.                 lightVis = 1
  132.               else:
  133.                 lightVis = (self.guitars[i].starPower-83)/16.6
  134.  
  135.               wfactor = self.SP.widthf(pixelw = 32.000) #Worldrave Change - Bulb 6
  136.               self.SP.transform.reset()
  137.               self.SP.transform.rotate(-.75)  #Worldrave Change
  138.               self.SP.transform.scale(wfactor,-wfactor*3)
  139.               self.SP.transform.translate(w*self.x3[i] - 13,h*self.y3[i] + hOffset + 11)  #Worldrave Change
  140.               self.SP.draw(rect = (0,1.0/3.1,0,1), color = (1,1,1,1))
  141.               self.SP.transform.reset()
  142.               self.SP.transform.rotate(-.8)  #Worldrave Change
  143.               self.SP.transform.scale(wfactor,-wfactor*3)
  144.               self.SP.transform.translate(w*self.x3[i],h*self.y3[i] + hOffset)
  145.               self.SP.draw(rect = (lightPos[0],lightPos[1],0,1), color = (1,1,1,lightVis))
clone this paste RAW Paste Data