All pastes #630028 Raw Edit

flak

public lua v1 · immutable
·published 2007-07-22 21:12 UTC
rendered paste body
#Global Hooks$Simulation:[missiontime = mn.getMissionTime()frametime = ba.getFrametime(true)if missiontime < 1 then   --Define the graphics files   flaktexture = gr.loadTexture("lglow3")   nullvec = ba.createVector(0,0,0)end--Iterate through all the weaponsfor j=1,#mn.Weapons do   weapon = mn.Weapons[j]   --If weapon type is the one within "s then...   weapontype = weapon.Class.Name   if weapontype == "Flak Energy" then      --Create particle effect where the weapon is ATM      --You can always increase the 'frametime' to frametime x 4 etc if needed.      ts.createParticle(nullvec,nullvec,frametime,2.0,PARTICLE_BITMAP,-1,false,flaktexture,weapon)   endend]#End