View unanswered posts | View active topics It is currently Thu Dec 26, 2024 4:19 pm



Reply to topic  [ 5 posts ] 
 MOSParticle on hit? 
Author Message

Joined: Thu Feb 16, 2012 4:05 am
Posts: 37
Reply with quote
Post MOSParticle on hit?
So after a bit of experimenting, I got the unused "Blood blast" particle/wound to start whenever a Coalition's head gibbed. (Add it as one of the gibs) The end result is very satisfying, and now I'm wondering: is it possible to have a MOSParticle be emitted whenever someone is hit by a bullet? Normally, you would have the Entry/exit sprites and some blood pixels, but is there a way to make it so that "Blood blast" or "Blood burst" or whatever else appear when I shoot someone?

I took a wild guess and added it as part of the entry wound
( EntryWound = AEmitter
CopyOf = Wound Flesh Entry
EntryWound = MOSParticle
CopyOf = Blood Burst Particle
ExitWound = AEmitter
CopyOf = Wound Flesh Exit)
but that didn't seem to work.

I appreciate the help


Sat Feb 16, 2013 1:08 am
Profile
User avatar

Joined: Tue Jun 12, 2007 11:52 pm
Posts: 13144
Location: Here
Reply with quote
Post Re: MOSParticle on hit?
Wounds on MOs are all AEmitters. What you need to do is create a custom wound emitter that emits the MOSParticle, and use that as your wound.


Sat Feb 16, 2013 4:19 am
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post Re: MOSParticle on hit?
It's also be possible to append such an emission to the existing wounds via CopyOf, in a manner like this:
Code:
*EntryWound = AEmitter
**PresetName = darp durp new wound lol
**AddEmission = Emission
***EmittedParticle = MOSParticle
****CopyOf = Blood Burst Particle
***ParticlesPerMinute = 0
***BurstSize = 1
***Spread = 0.1
***MaxVelocity = 1
***MinVelocity = 1

Replace each asterisk with a tab. This would make the blood burst particle pop out on hit, but not at any time after that, since its emission rate (ParticlesPerMinute) is set to 0. Also, it is VERY IMPORTANT that you give it a new PresetName, because else it won't work. That said though, in some cases you'll want to create an entirely new emitter for it, since this method basically just appends some code to the end of the copied emitter/wound.


Sat Feb 16, 2013 6:08 pm
Profile WWW

Joined: Thu Feb 16, 2012 4:05 am
Posts: 37
Reply with quote
Post Re: MOSParticle on hit?
Shook wrote:
It's also be possible to append such an emission to the existing wounds via CopyOf, in a manner like this:
Code:
*EntryWound = AEmitter
**PresetName = darp durp new wound lol
**AddEmission = Emission
***EmittedParticle = MOSParticle
****CopyOf = Blood Burst Particle
***ParticlesPerMinute = 0
***BurstSize = 1
***Spread = 0.1
***MaxVelocity = 1
***MinVelocity = 1

Replace each asterisk with a tab. This would make the blood burst particle pop out on hit, but not at any time after that, since its emission rate (ParticlesPerMinute) is set to 0. Also, it is VERY IMPORTANT that you give it a new PresetName, because else it won't work. That said though, in some cases you'll want to create an entirely new emitter for it, since this method basically just appends some code to the end of the copied emitter/wound.


I tried doing that, but it just said that reading of the AEmitter failed.


Sat Feb 16, 2013 8:04 pm
Profile
User avatar

Joined: Fri Feb 16, 2007 8:43 pm
Posts: 1695
Location: AH SHIT FUCK AUGH
Reply with quote
Post Re: MOSParticle on hit?
Ah ♥♥♥♥, i forgot the CopyOf part, my bad. :U
CORRECTION:
Code:
*EntryWound = AEmitter
**CopyOf = Wound Flesh Entry // THIS IS WHAT I FORGOT
**PresetName = darp durp new wound lol
**AddEmission = Emission
***EmittedParticle = MOSParticle
****CopyOf = Blood Burst Particle
***ParticlesPerMinute = 0
***BurstSize = 1
***Spread = 0.1
***MaxVelocity = 1
***MinVelocity = 1

The double slashes denote a comment, so it shouldn't have any effect on the code. If it does, just remove it. :U


Sat Feb 16, 2013 9:05 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.067s | 13 Queries | GZIP : Off ]