Author |
Message |
AGENT15
Joined: Wed Jan 03, 2007 12:48 am Posts: 163
|
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?
|
Sat Jun 06, 2009 7:08 am |
|
|
Foa
Data Realms Elite
Joined: Wed Sep 05, 2007 4:14 am Posts: 3966 Location: Canadida
|
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.
|
Sat Jun 06, 2009 7:22 am |
|
|
AGENT15
Joined: Wed Jan 03, 2007 12:48 am Posts: 163
|
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.
Last edited by AGENT15 on Sat Jun 06, 2009 7:27 am, edited 1 time in total.
|
Sat Jun 06, 2009 7:23 am |
|
|
Foa
Data Realms Elite
Joined: Wed Sep 05, 2007 4:14 am Posts: 3966 Location: Canadida
|
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.
|
Sat Jun 06, 2009 7:26 am |
|
|
AGENT15
Joined: Wed Jan 03, 2007 12:48 am Posts: 163
|
Re: Multiple Magazine Sprites
Wait, what do you mean trim the sprite?
|
Sat Jun 06, 2009 7:29 am |
|
|
Foa
Data Realms Elite
Joined: Wed Sep 05, 2007 4:14 am Posts: 3966 Location: Canadida
|
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.
|
Sat Jun 06, 2009 7:31 am |
|
|
AGENT15
Joined: Wed Jan 03, 2007 12:48 am Posts: 163
|
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.
|
Sat Jun 06, 2009 7:40 am |
|
|
p3lb0x
Forum Moderator
Joined: Fri Feb 02, 2007 3:53 pm Posts: 1896 Location: in my little gay bunker
|
Re: Multiple Magazine Sprites
Wait, does this seriously work? ♥♥♥♥, WHY THE ♥♥♥♥ HAVE I BEEN USING AEMITTERS TO DO THIS ♥♥♥♥ THEN. BALLS
|
Sat Jun 06, 2009 12:30 pm |
|
|
Metal Chao
Joined: Sat May 05, 2007 6:04 pm Posts: 2901
|
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
|
Sat Jun 06, 2009 1:09 pm |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
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.
|
Sat Jun 06, 2009 5:44 pm |
|
|
AGENT15
Joined: Wed Jan 03, 2007 12:48 am Posts: 163
|
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.
|
Sat Jun 06, 2009 7:41 pm |
|
|
Azukki
Joined: Sat Nov 03, 2007 9:44 pm Posts: 1916 Location: Flint Hills
|
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.
|
Sun Jun 07, 2009 8:03 am |
|
|
|