View unanswered posts | View active topics It is currently Wed Jan 08, 2025 10:25 pm



Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
 Is there...? 
Author Message
User avatar

Joined: Fri Mar 19, 2010 5:00 pm
Posts: 51
Reply with quote
Post Is there...?
Is there a way to put lazer pointers and flashlights on weapons?


Wed Mar 31, 2010 1:00 am
Profile
User avatar

Joined: Wed Sep 09, 2009 3:16 am
Posts: 3032
Location: Somewhere in the universe
Reply with quote
Post 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
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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
Profile
happy carebear mom
User avatar

Joined: Tue Mar 04, 2008 1:40 am
Posts: 7096
Location: b8bbd5
Reply with quote
Post 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
Profile
User avatar

Joined: Fri Mar 19, 2010 5:00 pm
Posts: 51
Reply with quote
Post 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
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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
Profile WWW
User avatar

Joined: Fri Mar 19, 2010 5:00 pm
Posts: 51
Reply with quote
Post 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
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Is there...?
Both Darkstorm and the Action Hero Soldier have examples of Lua type laser pointers.


Wed Mar 31, 2010 1:36 pm
Profile WWW
User avatar

Joined: Mon Oct 19, 2009 9:04 am
Posts: 302
Location: Under Your Bed
Reply with quote
Post 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
Profile YIM
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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
Profile WWW
User avatar

Joined: Mon Oct 19, 2009 9:04 am
Posts: 302
Location: Under Your Bed
Reply with quote
Post Re: Is there...?
Wouldn't a lua beam of red be really laggy so lots of people?


Wed Mar 31, 2010 3:00 pm
Profile YIM
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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
Profile WWW
User avatar

Joined: Fri Mar 19, 2010 5:00 pm
Posts: 51
Reply with quote
Post 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
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post 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
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post 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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 21 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.056s | 14 Queries | GZIP : Off ]