View unanswered posts | View active topics It is currently Mon Dec 30, 2024 10:37 pm



Reply to topic  [ 39 posts ]  Go to page Previous  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 Re: How does the revolver cannon and such work?
I know that, I've done that for a long time =P

The thing is that I want to shoot 3 type of bullets, and I don't really want to get into lua if this can be done through ini.


Wed May 04, 2011 7:51 pm
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How does the revolver cannon and such work?
step by step, in order from the top of your .ini file:

1) define the actual projectiles that will be fired by your gun; mosrotatings, probably, by your description.
2) define an aemitter that is set to OrientToVel = 1, low mass, which emits one/all of your projectiles at a ludicrous rate with an EmissionCountLimit of 1. give this an extremely low lifetime, 10ms or so.
3) define the round itself; duplicate base.rte/ammo.ini and the flak cannon code. make sure it's type setup for an AEmitter, etc
4) create your magazine and firearm
5) success


Wed May 04, 2011 11:39 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?
EmissionCountLimit?

What's that for? First time I've ever heard that.


Thu May 05, 2011 2:54 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How does the revolver cannon and such work?
It's exactly what it sounds like. It limits the number of emissions an emitter can make.


Thu May 05, 2011 3:18 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How does the revolver cannon and such work?
Yeah, well, Data has a habit of adding new variables for a single specific purpose and then not telling anyone at all about them.

Like GibOffsets, which I only found out about literally six months after the release of B18 entirely on accident because the only file they were in was the goddamn riot shield, which no one ever looks at.

The moral of the story: SCOUR those goddamn ini files, and you'll maybe get lucky with something.


Thu May 05, 2011 3:26 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?
Yeah, the other strange ini code I found lately, and it's at least strange for me, is ParticleNumberToAdd, another way to set the gibs instead of AddGib.


Thu May 05, 2011 3:43 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How does the revolver cannon and such work?
Oh man, that's old school TDExplosive.

See, it used to be that the gibs on a TDExplosive and what it actually exploded (by time delay) into were completely separate.


Thu May 05, 2011 4:03 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?
Seriously?

Damn ini is epic. I need to learn more about it.

EDIT: Question, EmissionCountLimit is set to the emissions or to the emitter?


Thu May 05, 2011 4:04 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How does the revolver cannon and such work?
Probably either.


Thu May 05, 2011 4:21 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?
But if instead of that I put BurstTriggered = 1? Wouldn't that make all the particles get emitted at once?

Edit: Nevermind, I used it and it worked.

My path into mastering AEmitters has taken another turn.


Thu May 05, 2011 4:23 am
Profile
User avatar

Joined: Mon Mar 07, 2011 2:18 am
Posts: 717
Reply with quote
Post Re: How does the revolver cannon and such work?
So is there just a simple way to copy and paste a section of an ini file into any other one and make it work?


Fri May 06, 2011 2:49 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How does the revolver cannon and such work?
Uh, yes.

You take a section of an iini file, select it, and copy-paste it into another .ini file. There's really nothing beyond that to explain; literally every mod I've ever made has been judicious copying and pasting of templates of objects. I modify them to a certain extent, which is where variable knowledge comes in handy, but there's really a lot of ways to do things with .ini; it's very flexible.


Fri May 06, 2011 3:01 am
Profile
User avatar

Joined: Mon Mar 07, 2011 2:18 am
Posts: 717
Reply with quote
Post Re: How does the revolver cannon and such work?
I know that! :smile: I was wondering for recoil. Just a section of ini that you can paste into any gun and it reduces it.


Fri May 06, 2011 3:04 am
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post Re: How does the revolver cannon and such work?
Not exactly, no. I mean, I suppose you could just take the entire flak cannon code, and replace the gibs on the cannon round with your own projectile.


Fri May 06, 2011 5:50 am
Profile
User avatar

Joined: Thu Dec 16, 2010 11:06 pm
Posts: 276
Reply with quote
Post Re: How does the revolver cannon and such work?
The Combined Forces subsists entirely of guns which fire AEmitters. Take a look. The Shadow Aspect Machine Gun is your cleanest example.


Sat May 07, 2011 11:16 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 39 posts ]  Go to page Previous  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.083s | 14 Queries | GZIP : Off ]