Gas and Other Particles

Tutorial for Yuri's Revenge YR

No Avatar

cdmtx(YR)

Category: Code
Level: Intermediate
Created: Wednesday July 29, 2009 - 4:27
Updated: Sunday October 11, 2009 - 8:23
Views: 1901
Summary: Allowing warheads to release gas and other particle systems.
Rating
  • Staff-
  • Members-
  • Average-

0 votes

Recently I have been struggling with this, whenever I asked a person they said you needed to add
SpawnsParticle=
NumParticles=
This was not working for me so after a while of messing around and testing different things out. I came up with this : You need to make a Particle System List and place that on the warhead not just a Particle and how many to release.

If you want to have your warhead release toxic gas simply add the following to the particle systems.
              
Code
[GasSys]; you can call it whatever you want, but it must have Sys at the end of the name
HoldsWhat=VirusCloud1
BehavesLike=Gas

You can also add other tags
              
Code
Spawns = does this system spawn particles by itself (def = no)
SpawnFrames = number of frames to wait before spawning another particle
ParticleCap = maximum number of particles that can be in this system


Now you're going to have to add your new particle system to the particle system list. It is very important that you go to the end of the list to add your new particle system. After you do this you will add the following code to your warhead.
              
Code
InfDeath=8; only add this if you want to have the Virus infantry die affect
Poison=yes; I'm not sure if this is needed, but it's what I have
Particle=GasSys
ProneDamage=300%; Gas concentrates at gound level; I'm not sure if this is needed eithe, but it's what I have

Return to top