Author |
Message |
psyk323
Joined: Fri Mar 19, 2010 5:00 pm Posts: 51
|
Is there...?
Is there a way to put lazer pointers and flashlights on weapons?
|
Wed Mar 31, 2010 1:00 am |
|
|
dragonxp
Joined: Wed Sep 09, 2009 3:16 am Posts: 3032 Location: Somewhere in the universe
|
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
|
Wed Mar 31, 2010 1:03 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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.
|
Wed Mar 31, 2010 1:10 am |
|
|
Duh102
happy carebear mom
Joined: Tue Mar 04, 2008 1:40 am Posts: 7096 Location: b8bbd5
|
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.
|
Wed Mar 31, 2010 1:19 am |
|
|
psyk323
Joined: Fri Mar 19, 2010 5:00 pm Posts: 51
|
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!
|
Wed Mar 31, 2010 1:39 am |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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.
|
Wed Mar 31, 2010 4:35 am |
|
|
psyk323
Joined: Fri Mar 19, 2010 5:00 pm Posts: 51
|
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
|
Wed Mar 31, 2010 1:32 pm |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
Re: Is there...?
Both Darkstorm and the Action Hero Soldier have examples of Lua type laser pointers.
|
Wed Mar 31, 2010 1:36 pm |
|
|
Joesycop
Joined: Mon Oct 19, 2009 9:04 am Posts: 302 Location: Under Your Bed
|
Re: Is there...?
AAL sniper soldier has a laser pointer. I think its a laser pointer at least.
|
Wed Mar 31, 2010 2:41 pm |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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.
|
Wed Mar 31, 2010 2:47 pm |
|
|
Joesycop
Joined: Mon Oct 19, 2009 9:04 am Posts: 302 Location: Under Your Bed
|
Re: Is there...?
Wouldn't a lua beam of red be really laggy so lots of people?
|
Wed Mar 31, 2010 3:00 pm |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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.
|
Wed Mar 31, 2010 3:10 pm |
|
|
psyk323
Joined: Fri Mar 19, 2010 5:00 pm Posts: 51
|
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 =\
|
Wed Mar 31, 2010 3:50 pm |
|
|
Azukki
Joined: Sat Nov 03, 2007 9:44 pm Posts: 1916 Location: Flint Hills
|
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.
|
Thu Apr 01, 2010 3:29 am |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
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.
|
Thu Apr 01, 2010 5:06 am |
|
|
|