A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Moderator: GZDoom Developers

User avatar
Major Cooke
Posts: 8197
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Post by Major Cooke »

edward850: if you can tell me what to change, I'll throw it in here.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand

Re: A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Post by edward850 »

Graf Zahl wrote:Does it? Can you explain what this parameter is there for?
Controls the fade out of each tic, basically. Internally it's usually set to 255/lifetime. Also I noticed you changed startalpha to fixed, but never changed what that means to P_SpawnParticle, which still takes a byte (because the particle internally takes a byte).
Major Cooke wrote:edward850: if you can tell me what to change, I'll throw it in here.
You completely forgot the ACS function. :P
As for fadestep, change ACTION_PARAM_INT(fadestep, 11) to a fixed and scale it just like startalpha. Perhaps the same should be done for the ACS function for consistency.
Last edited by edward850 on Thu Jan 21, 2016 5:11 pm, edited 2 times in total.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49188
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Post by Graf Zahl »

edward850 wrote: Also I noticed you changed startalpha to fixed, but never changed what that means to P_SpawnParticle, which still takes a byte (because the particle internally takes a byte).
Uh, what?

Code: Select all

	BYTE startalpha = (BYTE)Scale(clamp(startalphaf, 0, FRACUNIT), 255, FRACUNIT);
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand

Re: A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Post by edward850 »

Somehow I completely missed that despite looking right at it. Silly me. :P
User avatar
Major Cooke
Posts: 8197
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Post by Major Cooke »

edward850 wrote:You completely forgot the ACS function. :P
As for fadestep, change ACTION_PARAM_INT(fadestep, 11) to a fixed and scale it just like startalpha. Perhaps the same should be done for the ACS function for consistency.
Actually I specified it's for DECORATE only. The relativity is only for actors, and the ACS version has none to deal with. Just a set of coordinates.

Okay, doing that now. Not sure what to do for the ACS version though, for changing that.
Last edited by Major Cooke on Thu Jan 21, 2016 5:21 pm, edited 1 time in total.
User avatar
edward850
Posts: 5886
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand

Re: A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Post by edward850 »

Major Cooke wrote:Actually I specified it's for DECORATE only. The relativity is only for actors, and the ACS version has none to deal with. Just a set of coordinates.
I am completely off the ball this morning or something. Perhaps I shouldn't have changed my coffee...
User avatar
NeuralStunner
 
 
Posts: 12328
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: No Preference
Operating System Version (Optional): Windows 11
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space

Re: A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Post by NeuralStunner »

edward850 should have wrote:I picked a bad day to change my coffee.
:P
User avatar
Major Cooke
Posts: 8197
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Post by Major Cooke »

I took a gander at the ACS version for changing the alpha and fadestep... No idea on how to handle those.
User avatar
Major Cooke
Posts: 8197
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: A_SpawParticles (X,Y,Z,XYZSpeeds,Color)

Post by Major Cooke »

Return to “Closed Feature Suggestions [GZDoom]”