View unanswered posts | View active topics It is currently Fri Dec 27, 2024 1:13 pm



Reply to topic  [ 12 posts ] 
 Multiple Magazine Sprites 
Author Message
User avatar

Joined: Wed Jan 03, 2007 12:48 am
Posts: 163
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post 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
Profile
User avatar

Joined: Wed Jan 03, 2007 12:48 am
Posts: 163
Reply with quote
Post 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
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post 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
Profile
User avatar

Joined: Wed Jan 03, 2007 12:48 am
Posts: 163
Reply with quote
Post Re: Multiple Magazine Sprites
Wait, what do you mean trim the sprite?


Sat Jun 06, 2009 7:29 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Wed Sep 05, 2007 4:14 am
Posts: 3966
Location: Canadida
Reply with quote
Post 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


Sat Jun 06, 2009 7:31 am
Profile
User avatar

Joined: Wed Jan 03, 2007 12:48 am
Posts: 163
Reply with quote
Post 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
Profile
Forum Moderator
User avatar

Joined: Fri Feb 02, 2007 3:53 pm
Posts: 1896
Location: in my little gay bunker
Reply with quote
Post 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
Profile
User avatar

Joined: Sat May 05, 2007 6:04 pm
Posts: 2901
Reply with quote
Post 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
Profile
REAL AMERICAN HERO
User avatar

Joined: Sat Jan 27, 2007 10:25 pm
Posts: 5655
Reply with quote
Post 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
Profile
User avatar

Joined: Wed Jan 03, 2007 12:48 am
Posts: 163
Reply with quote
Post 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
Profile
User avatar

Joined: Sat Nov 03, 2007 9:44 pm
Posts: 1916
Location: Flint Hills
Reply with quote
Post 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
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 12 posts ] 

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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.049s | 14 Queries | GZIP : Off ]