Author |
Message |
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
How does the revolver cannon and such work?
There are some guns that fire an AEmitter that emits the actual round. There are many guns that I've seen that work this way, so, how do they actually work?
|
Sun May 01, 2011 11:54 pm |
|
|
dragonxp
Joined: Wed Sep 09, 2009 3:16 am Posts: 3032 Location: Somewhere in the universe
|
Re: How does the revolver cannon and such work?
You shoot an AEmitter which shoots your round right after the AEmitter if fired. Therefor bypassing any massive recoil.
|
Mon May 02, 2011 12:04 am |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: How does the revolver cannon and such work?
I know how that part works, I mean, how does the coding part go?
I've tried many times, but they all end in fail, for example, once it could only shoot to the right, other time it shot in random directions, once it randomly emitted the round and any of the options before would happen next.
|
Mon May 02, 2011 12:23 am |
|
|
Coops
Joined: Wed Feb 17, 2010 12:07 am Posts: 1545 Location: That small peaceful place called Hell.
|
Re: How does the revolver cannon and such work?
AEmitters usually emit in relative of the direction they're headed. So if you make it shoot the AEmitter with at least a FireVelocity of 1 then it should emit in the direction you shot, other wise they will always emit to the right if they don't have a velocity.
|
Mon May 02, 2011 12:46 am |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: How does the revolver cannon and such work?
Hm... I'm going to try that, thanks.
|
Mon May 02, 2011 12:50 am |
|
|
Coops
Joined: Wed Feb 17, 2010 12:07 am Posts: 1545 Location: That small peaceful place called Hell.
|
Re: How does the revolver cannon and such work?
Nevermind that last post, I'm dumb.
AEmitters emit in the direction they are ROTATED. Not in the direction of their velocity.
|
Mon May 02, 2011 2:35 am |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: How does the revolver cannon and such work?
What the... The direction they are rotated? But... I'll just go out and experiment, trial and error is one of the best ways to learn.
|
Mon May 02, 2011 3:41 am |
|
|
Kettenkrad
Joined: Mon Oct 25, 2010 5:51 am Posts: 1198 Location: Sydney
|
Re: How does the revolver cannon and such work?
Make sure OrientToVel = 1 and also that they have low spreads.
|
Mon May 02, 2011 6:33 am |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
Re: How does the revolver cannon and such work?
Or you could use the gibs of a TDExplosive, which lets you make the bullets inherit velocity.
|
Mon May 02, 2011 8:14 am |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: How does the revolver cannon and such work?
But... but... I want to do it with emitters! =P
I mean, I know AEmitters are very versatile in ini coding, and that it is a very important part. But, I have never found a guide for AEmitters (except templates) or learnt more of how they are used.
That's why I want to learn more about them.
|
Mon May 02, 2011 11:54 pm |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
Re: How does the revolver cannon and such work?
Using emitters lets you have varying initial speed projectiles while explosives let you have the velocity automatically inherit. It depends on what you want to do.
|
Tue May 03, 2011 7:27 am |
|
|
Coops
Joined: Wed Feb 17, 2010 12:07 am Posts: 1545 Location: That small peaceful place called Hell.
|
Re: How does the revolver cannon and such work?
AEmitters can work almost the exact same, just without the weapon status.
|
Tue May 03, 2011 7:36 am |
|
|
Nocifer
Joined: Tue Mar 16, 2010 7:38 pm Posts: 447 Location: The Ninth Circle
|
Re: How does the revolver cannon and such work?
You could also just look at the code for the Revolver Cannon. That's what I've been doing for my massive-recoil weapons. Or just copy/paste, if you're lazy.
|
Tue May 03, 2011 11:53 pm |
|
|
Asklar
Data Realms Elite
Joined: Fri Jan 07, 2011 8:01 am Posts: 6211 Location: In your office, earning your salary.
|
Re: How does the revolver cannon and such work?
I did it once, but it failed horribly. I still can't get what is the thing that makes them work.
|
Wed May 04, 2011 12:11 am |
|
|
411570N3
Joined: Wed Jan 07, 2009 10:26 am Posts: 4074 Location: That quaint little British colony down south
|
Re: How does the revolver cannon and such work?
If it's just one projectile you're firing, it's more efficient just to set the mass in Lua on Create(), and is much simpler to implement without problems.
|
Wed May 04, 2011 7:10 am |
|
|
|