Data Realms Fan Forums
http://45.55.195.193/

Is there...?
http://45.55.195.193/viewtopic.php?f=1&t=18293
Page 1 of 2

Author:  psyk323 [ Wed Mar 31, 2010 1:00 am ]
Post subject:  Is there...?

Is there a way to put lazer pointers and flashlights on weapons?

Author:  dragonxp [ Wed Mar 31, 2010 1:03 am ]
Post subject:  Re: Is there...?

Laser pointer could be an AEmitter attached to the gun shooting out mass less red particles with screen effect glow.
Flashlight could be an AEmitter with 5 particlespread

Author:  Grif [ Wed Mar 31, 2010 1:10 am ]
Post subject:  Re: Is there...?

1. Dragonxp, stop giving modding advice. You don't know how to mod.
Addendum to note 1: By 'massless' (by which I assume he means that massless particles are unaffected by gravity, which is wrong) Dragonxp actually means GlobalAccScalar = 0 particles.
Post Script to note 1: By 'particlespread' dragonxp means 'spread' which is an AEmitter only property. He also clearly means that you should attach an AEmitter to your weapon using the AddEmitter = AEmitter line of code.

Author:  Duh102 [ Wed Mar 31, 2010 1:19 am ]
Post subject:  Re: Is there...?

Note, flashlights are not possible since we don't have lighting. The closest you could get is spawning a circular white glow.

Author:  psyk323 [ Wed Mar 31, 2010 1:39 am ]
Post subject:  Re: Is there...?

Duh102 wrote:
Note, flashlights are not possible since we don't have lighting. The closest you could get is spawning a circular white glow.


Yea that was probably what i was going to hask you guys next but nvm.... thanks!

Author:  411570N3 [ Wed Mar 31, 2010 4:35 am ]
Post subject:  Re: Is there...?

Also, better laser sights have been made that use Lua to spawn a red glow at the point the gun is pointing at. The methods described above will result in a line of colour of your choice, but it will be more like a water gun than a laser pointer.

Author:  psyk323 [ Wed Mar 31, 2010 1:32 pm ]
Post subject:  Re: Is there...?

411570N3 wrote:
Also, better laser sights have been made that use Lua to spawn a red glow at the point the gun is pointing at. The methods described above will result in a line of colour of your choice, but it will be more like a water gun than a laser pointer.


Yea, what i wanted to do was put a line and the red glow so that you can see where you are going to shoot and see the effect of the laser.


BTW is there any mod with a laser pointer on weapons that you guys know so that i can see what it looks like?

thanks

Author:  411570N3 [ Wed Mar 31, 2010 1:36 pm ]
Post subject:  Re: Is there...?

Both Darkstorm and the Action Hero Soldier have examples of Lua type laser pointers.

Author:  Joesycop [ Wed Mar 31, 2010 2:41 pm ]
Post subject:  Re: Is there...?

AAL sniper soldier has a laser pointer. I think its a laser pointer at least.

Author:  411570N3 [ Wed Mar 31, 2010 2:47 pm ]
Post subject:  Re: Is there...?

It is, but it still has a delay and also puts a dot behind you. The darkstorm and action hero renditions are quite a bit more superior.

Author:  Joesycop [ Wed Mar 31, 2010 3:00 pm ]
Post subject:  Re: Is there...?

Wouldn't a lua beam of red be really laggy so lots of people?

Author:  411570N3 [ Wed Mar 31, 2010 3:10 pm ]
Post subject:  Re: Is there...?

About as laggy as a red line of normal particles.
Actually probably less, seeing as you don't have to do the movement calculations on particles that disappear after one frame.
So the emitter method lags more for a less satisfactory result.
The Lua way just casts a ray to find a point to spawn a single glow. Numgun's method was to rapid-fire invisible particles that gibbed into the glows. In both directions at once. So I'd wager that the AAL sniper is in fact significantly more laggy than a solid laser line via Lua. That's besides the point though, since neither of the examples given have a solid line.

Author:  psyk323 [ Wed Mar 31, 2010 3:50 pm ]
Post subject:  Re: Is there...?

I tried both mods that 411570N3 gave me and i like more the "darkstorm" way of the laser pointer... its simple and makes a nice effect.... i think its better then the "Action Hero Soldier" way... the particles are confusing... and they don't look that good =\

Author:  Azukki [ Thu Apr 01, 2010 3:29 am ]
Post subject:  Re: Is there...?

Well, actually with the flashlight idea, you could have a little script that chose from particles with a particular glow based on their direction of movement, which would be based on the weapon angle, so if you really wanted to, you could get the effect of a rotating directional glowy thing, but the flashlight wouldn't illuminate anything into visibility, if anything, it would obstruct vision.

Author:  411570N3 [ Thu Apr 01, 2010 5:06 am ]
Post subject:  Re: Is there...?

You could probably make a black glow covered scene designed for use with the flashlight, but as explained before, it'd move slower than a morbidly obese child swimming through peanut butter.

Page 1 of 2 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/