Starfighter beam weapon -1 reply

Please wait...

DeathScythe666

currently digesting...

50 XP

6th August 2006

0 Uploads

17 Posts

0 Threads

#1 13 years ago

Im trying to make a beam cannon (like a lightsaber but for the primary weapon on a starfighter) and ive hit a few problems. ive copied the rebel_blastershot and blastermuzzle.efx files and have made up a beam_laser.vwp, ive knocked the fire delay and weapon damage per shot right down, while changing the texture to the sabers/red_line and the shader used to sabers/blurglow.this is what ive got so far. heres the .vwp code: beam_laser { name beam_laser projectile 1 muzzleFX "ships/beam_lasermuzzle" shotFX "ships/beam_lasershot" impactFX "ships/reb_blasterimpact" g2MarkShader "gfx/effects/scorch" g2MarkSize 52 //loopSound speed 20000 damage 10 //damage 40 splashDamage 5 splashRadius 80 ammoPerShot 1 lifetime 2000 } the beam_lasershot.efx code: repeatDelay 1 Line { flags useAlpha origin2 -600 0 0 rgb { start 1 0.6706 0.05882 } alpha { start 0.6 0.7 } size { start 12 18 } shaders [ gfx/effects/sabers/red_line ] } Line { origin2 -600 0 0 rgb { start 1 0 0 } alpha { start 0.8 1 } size { start 36 45 } shaders [ gfx/effects/sabers/blurcore ] } Particle { origin -45 0 0 rgb { start 0.7 0 0 0.9 0.15 0.15 } size { start 24 30 } shaders [ gfx/effects/sabers/blurcore ] } and the beam_lasermuzzle.efx code: repeatDelay 5 Line { life 300 origin2 24 0 0 30 0 0 rgb { start 0.502 0 0 1 0 0 } alpha { start 0.5 0.6 end 0.35 flags linear } size { start 6.25 8.5 end 6 flags linear } shaders [ gfx/effects/sabers/red_line ] } Particle { life 300 origin 5 0 0 rotation 0 0 rgb { start 1 0.8431 0.2157 1 1 0 } alpha { start 0.8 1 end 0.5 flags linear } size { start 8 10.5 end 7 flags linear } shaders [ gfx/effects/blasterFrontFlash ] } Light { rgb { start 1 0 0 } size { start 75 } } but ive hit 2 problems, first is the beam 'shots' wont string together to make a proper 'beam', second is the blurcore wont show up, its just a red/orange projectile with a black outside. basically, what i want is for the beam to look just like a red (or whatever)lightsaber blade, no visable projectiles, just a straight beam, like the beam cannons from babylon 5. any help at all would be fantastic!




DeathScythe666

currently digesting...

50 XP

6th August 2006

0 Uploads

17 Posts

0 Threads

#2 13 years ago

any help at all? like a pointer to a tutorial or somebody that could help?




minilogoguy18

kitty dances for rep!

50 XP

4th September 2004

0 Uploads

2,675 Posts

0 Threads

#3 13 years ago

well the thing is that nothing like this was originally in the game, i have this on my PC already that a friend and i made kinda basing it off of the reactor beams in some of the levels like vjun but i havnt even really tested it, ill look and see if i still have it. im sure what your lookin to do is make a particle beam that has no start or end, like the ones that the republic gunships shoot.




Trauma Sensei

The All Seeing Eye

50 XP

5th June 2004

0 Uploads

1,591 Posts

0 Threads

#4 13 years ago

DeathScythe666 but ive hit 2 problems, first is the beam 'shots' wont string together to make a proper 'beam', second is the blurcore wont show up, its just a red/orange projectile with a black outside.[/QUOTE] The reason why it has a black outside is because you have not made a shader for that texture.

*** PATHTOTEXTURE { cull twosided { map PATHTOTEXTURE blendFunc GL_ONE GL_ONE rgbGen vertex } } ***

Add that shader, and assign the proper paths, and the black square will go away.

[QUOTE=DeathScythe666]basically, what i want is for the beam to look just like a red (or whatever)lightsaber blade, no visable projectiles, just a straight beam, like the beam cannons from babylon 5.

I've tried doing something like this before, it wont look as good as you might think, for after you shoot the beam will remain in the same direction it was fired even if you move the ship =[