Author Topic: Pspew Types  (Read 5357 times)

0 Members and 1 Guest are viewing this topic.

Offline Dilmah G

  • Failed juggling
  • 211
  • Do try it.
Perhaps a sword of particles?

Lightsabre.

*Imagines lightsabre duel between Shivan and Terran Marine*

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
I had a weird issue with a missile particle trail, it was creating fireworks-esque particle balls
the size of moons, and they'd follow the player's ship everywhere.
For the longest time thought it was my afterburners...

But just an idea...

Perhaps a sword of particles?

Let me know when you've got all the kinks out of the current version, I'd like to stick it in my mod now
that I've got most of the railgun worked out finally.

sounds like you got scale and radius mixed up. really it always confused the **** out of me. radius is the size of the particle while scale is some factor used to determine how big the effect will spread to.

who all wants an offset vector so you can specify where the spew comes from.
was just gonna do it as a z offset but if i ever do multiple spewers (not that i know how atm), an x and y offset would be cool.
*thinks*
i guess for now il just do a z offset.
*thinks some more*
then again i could put a few offsets in there and just alternate between them each particle.
should i do that dynamically? does the engine do that for me?
how does it work for beam sections.
*looks at code*
static array
*thinks some more*
i can probibly do that
*brain explodes*
but not today
lol


I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Well thankfully I'm not the one who made the rocket's table data, and it was 3 years old.

I'm all for more controls... long as someone comments them out or tells the general population
what the heck they do in plain English.

You can make the world's greatest program, but it's useless if no one can utilize it.  :nod:
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
well ive sorta changed my philosophy on how to do things. ive decided to make spew types as simple as possible, letting users define multiple particle spews per weapon. you may then build a stack of particle effects. for example your tach railgun needs two spirals, one big one small. so what you will do is set up a large spiral pspew and a smal spiral pspew. the effects overlap to make a more tach like spew.

so far ive really added only a few new tags to pspew. most of them can apply across the range of spew types. count will always be the number of particles spewed per frame, time will always be the delay between spawns, vel will always be the velocity inheritence factor, radius will always be the particle size, life will alwas be the duration, scale will always be how big the effect is (really in all types its a scaler for particle velocity). ive realy only added a few things that arent already defined. normal and offset should be pretty self explanitory, direction and location of the spew. rotation rate is only used for helix type and defines the speed of rotation (i think its in rotations per second so it makes more since than in the lua script). sparkler has a z scale which allows you to make an ovoid shape so you can surround a laser blob. other than that thers just the type string.

while most of the variables mean the same thing, how they effect the type depends on the type. like scale needs to be alot bigger using helix mode than in default. a vel of 1 looks good on a sparkler while a vel of 0.01 looks better on a helix. as a modder my new system makes alot of sense.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
go get the build, do it now!
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Ace

  • Truth of Babel
  • 212
    • http://www.lordofrigel.com
That sounds great, allowing for the definition of multiple spews could allow for a missile trail with one texture and having a particle "flame" effect closer to the missile.
Ace
Self-plagiarism is style.
-Alfred Hitchcock

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
do i have to spell it out for you

http://www.hard-light.net/forums/index.php/topic,60417.0.html

go play with the build :D
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
i updated the build check it out
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN