Rival Species Mapping Reference
Overview :This tutorial is meant to be an explanation how to create working Particle-Systems (further only mentioned as "PS") in Rival Species (RS).
You will be able to create streams, clouds, areas and a lot more shapes with it to give your map a nice atmosphere. Don't hesitate to experiment with all values :)
Just one warning until we delve into the creation : huge PS with lots of particles can and will slow down even fast computers! So test your kick-ass effect on a slow computer until you make it public ;)
The *.fgd file included with RS already contains an entity called "rs_particle_emitter". Create one like you create other point-entities and have a look at its properties :
Not much you may think but the magic lies in the Inifile I will discuss later.
The Inifile :
Inifiles tell the rs_particle_emitter what kind of particles to spawn.
Here you can find an example how an Inifile for RS will look : default.ini
Lets cover every value so you can start creating your own PS :
These values tell your PS how many particles to create per second. The min and max means random values between both will be picked. This behaviour is the same for every value having a min and max setting.
How long each particle will stay in the world. Values are in seconds.
The speed each particle will have. Values are in world-units.
With these Values you can adjust the Direction your Particles will fly. Set all to 0.0 and your Particles will perfectly fly in the direction specified with the target. Put different values here and you'll get a cone or other shapes.
Usually your particles will be created at the origin of the PS. With setting these values to something different than 0.0 you can change the point (or area) where each particle is created. Setting x_min to -100, x_max to 100, y_min to -100 and y_max to 100 would create a square area with a length of 200 units and no vertical dimension. Setting the z_min and z_max values too you would create a small cube.
The color each particle will start with. Every value may be in the range 0.0-1.0. The "a" setting defines how translucent the particle will be where 1.0 means completely visible and 0.0 completely translucent.
The color each particle will end with. Same usage like the start-color. Use this to i.e. blend your particles from yellow to red to create flames. Only used when the flag PARTICLE_FLAG_COLORFADE is set.
The time in seconds it takes each particle to be completely visible. Only used when the flag PARTICLE_FLAG_FADEIN is set.
The size each particle will start with.
The size each particle will end with. Only used when the flag PARTICLE_FLAG_SIZE is set.
The gravity which will affect each particle. Say you don't want to create a straight particle-trail but your particles shall move in a slight curve down to the floor, you will have to set a value different to 0 and set the flag PARTICLE_FLAG_GRAVITY.
Lag :As long as you don't trigger a lot PS every second you won't create LAG.
What can happen though is that you create too much particles which will slow down the clients computer. Maybe they interprete this as lag.
You already got a few finished inifiles shipped with RS. Have a look at them and try to see what each value does.
If you want to create a new one just copy a predefined and edit this new one. Altering the predefined ones isn't advised since you could screw up things (actually most predefined ones are already used in one or another map).