Data Realms Fan Forums
http://45.55.195.193/

Multiple Magazine Sprites
http://45.55.195.193/viewtopic.php?f=1&t=15204
Page 1 of 1

Author:  AGENT15 [ Sat Jun 06, 2009 7:08 am ]
Post subject:  Multiple Magazine Sprites

I'm making a coach gun and I was wondering if there was any way (preferably not LUA) to give a gun multiple magazine sprites, so when it reloads, two separate magazines are dropped.


For example: When a revolver is reloaded, six separate magazines with a bullet shell sprite are dropped.


Can anyone help me with this?

Author:  Foa [ Sat Jun 06, 2009 7:22 am ]
Post subject:  Re: Multiple Magazine Sprites

I know how to emulate this, electro did the same thing.

He made the magazine gib immediately, and it released six shells.

Give me the sprite, or let me give you an example.

Author:  AGENT15 [ Sat Jun 06, 2009 7:23 am ]
Post subject:  Re: Multiple Magazine Sprites

If you can tell me how to make something instantly gib, I can do it.

Is it some kind of impulselimit = 0 thing?

I have a big list of weapons I want to change, and it'd be good for me to learn to do it myself. Thanks for the offer though.

Author:  Foa [ Sat Jun 06, 2009 7:26 am ]
Post subject:  Re: Multiple Magazine Sprites

AGENT15 wrote:
If you can tell me how to make something instantly gib, I can do it.

Is it some kind of impulselimit = 0 thing?

Yeah, and the need to trim like one pixel off of the sprite ( not the sprite size ) , so that it'd only gib when it is reloading.

Author:  AGENT15 [ Sat Jun 06, 2009 7:29 am ]
Post subject:  Re: Multiple Magazine Sprites

Wait, what do you mean trim the sprite?

Author:  Foa [ Sat Jun 06, 2009 7:31 am ]
Post subject:  Re: Multiple Magazine Sprites

AGENT15 wrote:
Wait, what do you mean trim the sprite?

Like this, you may need to download this image to be able to zoom into the trim.

Image

Author:  AGENT15 [ Sat Jun 06, 2009 7:40 am ]
Post subject:  Re: Multiple Magazine Sprites

Do you mean I need to have a very lightly coloured weapon sprite?


What if instead I had the original magazine sprite be a single pixel above the gun so when I reload it gibs?


Show me an example if you want, that would probably be fastest.

Author:  p3lb0x [ Sat Jun 06, 2009 12:30 pm ]
Post subject:  Re: Multiple Magazine Sprites

Wait, does this seriously work? ♥♥♥♥, WHY THE ♥♥♥♥ HAVE I BEEN USING AEMITTERS TO DO THIS ♥♥♥♥ THEN. BALLS

Author:  Metal Chao [ Sat Jun 06, 2009 1:09 pm ]
Post subject:  Re: Multiple Magazine Sprites

AGENT15 wrote:
Do you mean I need to have a very lightly coloured weapon sprite?


He means remove the outermost pixels
You can see that in picture one the gun has an outline and in picture two it does not.
The outermost pixels have been removed

Author:  Grif [ Sat Jun 06, 2009 5:44 pm ]
Post subject:  Re: Multiple Magazine Sprites

Anyways you can also just have a high rate emitter attached to the magazine; it will only emit once you drop it off, so it'll push the magazine and if it's got a low enough gib impulse limit (about 0.01 oughta work a-ok) then it'll gib into your seperate particles.

Author:  AGENT15 [ Sat Jun 06, 2009 7:41 pm ]
Post subject:  Re: Multiple Magazine Sprites

Awesome! I used the emitter method and it's working perfectly so far.

Thanks to everyone for the help, I really appreciate it.

Author:  Azukki [ Sun Jun 07, 2009 8:03 am ]
Post subject:  Re: Multiple Magazine Sprites

Grif wrote:
it will only emit once you drop it off,

False.
Emitters on magazines emit while the mag is on the gun. [My chainsaw bayonet would not work if this weren't the case]
BUT attachments, including mags, can only gib from GibImpulseLimit when detached from the gun.
That's why the mag only gibs once detached.

This is also why heads splatter from falls only when disembodied.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/