PDA

View Full Version : Laser Trail


Diocide
2004-05-30, 04:06 AM
I made a Laser Assualt rifle and i dont want the laser to be sustained.... i want it to be like a ball tip and then a trail point but i want the trail to start 100 feet in front of the barrel and stretch for like 1000 feet then dissapeer. how can i do this, i heard the particle effects were programed in the source or something not the scripts....

TerroX
2004-05-30, 10:57 PM
can you draw it and attach it? not sure what you want to do.
you want it to be like a blaster shot but really really long and fast - make a new image, new folder, edit blaster projectile and make it uber long and uber fast. the only problem is that it will need to appear a few milliseconds AFTER being fired or it will be behind the dude because it is so long (I think).
good luck :-)

particles are done using the particle editor, which is a script.

Diocide
2004-05-31, 02:12 AM
hmm chemilion told me different, said they took out the scripts for some reason or something, forgot what he really said. Yeah if you've played Terminator 3 War of the Machines, thats what i wanna acomplish, a like laser shot but it doesnt start a trail till like 100 feet away from the player, and it goes real fast.

TerroX
2004-05-31, 02:57 AM
So it starts as a bullet and then gets a trail somewhere at 100
Would it slowly stretch or something?
you could put a schedule on the bullet to delete and replace itself with a longer one with the same transform and velocity, might work but would probably be noticeably ugly.

Diocide
2004-05-31, 03:18 AM
I want it to look like T3 Laser.... Prolly make velocity 1,000m/s at 200 meters start trail and keep trail going till its like 500 meters long but i dont want where the trail starts to stay in mid air at the same place while the bullet keeps going untill 500 meters, i want the trail to move with the bullet and become longer, so the trail would have to be going slower than the bullet wich would be good at like 500m/s. the schedule thing seems like its what i'd need to do but i dont want it to be "Ugly" or lag.

Diocide
2004-05-31, 03:24 AM
hmmm nm now that im thinking about it and picturing it in my head it wouldn't give the desired effect. What i want would probibly just make no trail but make the bullet 500 meters long and dont have it show till its 100 meters away... at 1000ms you wouldn't be able to tell that the bullet is coming out of the muzzle 100 meters in front . so ill try this way :)... how do i go about making the bullet 500 meters long with a fatter point in the very front?

TerroX
2004-05-31, 01:15 PM
after a bit of though I think you might want to use the Laser rifle as a basis and just have 2-3 different projectiles depending on target range.

I'm not sure exactly how the laser beam image works as i've not looked at it recently but you may be able to set it up so it is a long segment with an image, and just do 3 different versions at different lengths.

then on firing have a range check and use whichever projectile would suit best, because it might look funny when shooting close range.
you might only need one projectile.


OR
if you just use a Blaster type bullet you could do a raycast on fire and if the target is far away do the spawning of projectile a bit far out, else spawn a smaller one for close range combat.

again... i'm sure something can be worked out :-)