View unanswered posts | View active topics It is currently Thu Apr 25, 2024 10:14 am



Reply to topic  [ 39 posts ]  Go to page 1, 2, 3  Next
 How does the revolver cannon and such work? 
Author Message
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

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

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post Re: How does the revolver cannon and such work?
Hm...
I'm going to try that, thanks.


Mon May 02, 2011 12:50 am
Profile
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
Profile
User avatar

Joined: Mon Oct 25, 2010 5:51 am
Posts: 1198
Location: Sydney
Reply with quote
Post 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
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: 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
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
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: 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
Profile WWW
User avatar

Joined: Wed Feb 17, 2010 12:07 am
Posts: 1545
Location: That small peaceful place called Hell.
Reply with quote
Post 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
Profile
User avatar

Joined: Tue Mar 16, 2010 7:38 pm
Posts: 447
Location: The Ninth Circle
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Fri Jan 07, 2011 8:01 am
Posts: 6211
Location: In your office, earning your salary.
Reply with quote
Post 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
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: 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
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 39 posts ]  Go to page 1, 2, 3  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.338s | 16 Queries | GZIP : Off ]