All pastes #104495 Raw Edit

Nuke's Helix thingy

public lua v1 · immutable
#104495 ·published 2006-07-28 22:33 UTC
rendered paste body
#Global Hooks  $GameInit:  [  hypacstex = gr.loadTexture("hypacs") nullvec = ma.newVector(0,0,0) rotate = 0  ]  $Simulation:  [  frames = ba.getFrametime() * 60  if rotate < 360 - frames then      rotate = rotate + frames else      rotate = 0 end  offset = ma.newVector(math.sin(rotate * 0.01745) * 2,math.cos(rotate * 0.01745) * 2,-2000)  for i=1, mn.getNumWeapons() do      local weapon = mn.getWeaponByIndex(i)      local name = weapon.Class.Name      if name == "HyPAcS" then           ts.createParticle(nullvec,nullvec + offset,10,0.5,"Bitmap",-1,false,hypacstex,weapon)      end end  ]  #End