Author |
Message |
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 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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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 |
|
|
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?
EmissionCountLimit?
What's that for? First time I've ever heard that.
|
Thu May 05, 2011 2:54 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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 |
|
|
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?
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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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 |
|
|
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?
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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: How does the revolver cannon and such work?
Probably either.
|
Thu May 05, 2011 4:21 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 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 |
|
|
Emogotsaone
Joined: Mon Mar 07, 2011 2:18 am Posts: 717
|
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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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 |
|
|
Emogotsaone
Joined: Mon Mar 07, 2011 2:18 am Posts: 717
|
Re: How does the revolver cannon and such work?
I know that! 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 |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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 |
|
|
thesoupiest
Joined: Thu Dec 16, 2010 11:06 pm Posts: 276
|
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 |
|
|
|