Author Topic: problem with explosionData  (Read 577 times)

so i made an explosionData datablock here

datablock ExplosionData(lightsuppressiveExplosion)
{
   //explosionShape = "";
   soundProfile = bulletHitSound;

   lifeTimeMS = 150;

   particleEmitter = lightsuppressiveExplosionEmit ter;
   particleDensity = 5;
   particleRadius = 0.4;

   emitter[0] = lightsuppressiveExplosionEmit ter;

   faceViewer     = true;
   explosionScale = "1 1 1";

   shakeCamera = true;
   camShakeFreq = "11.0 16.0 10.0";
   camShakeAmp = "1.1 2.3 1.0";
   camShakeDuration = 0.6;
   camShakeRadius = 6.0;
};

and before you ask yes i made the emitter too which if you'd like to take a look at is in Support_MiscDatablocks.cs which is attached
i made it for this projectile

datablock ProjectileData(commonpistolprojectile : gunProjectile)
{
   projectileShapeName = "./proj_largepistol.dts";

   explosion   = lightsuppressiveExplosion;

   muzzleVelocity = 105;
   isBallistic = true;
   gravityMod = 0.5;
};


yet ingame the explosion doesn't appear when the bullet hits something
when i looked at the console it said that lightsuppressiveExplosion wasn't part of the explosionData datablock group and everything else executed
what am i doing wrong??

can someone help pretty please
if i just made a simple mistake feel free to throw in "you idiot" after you tell me what i did wrong

There appears to be two locations where you have an extra space in "lightsuppressiveExplosionEmit ter":

Code: [Select]
lightsuppressiveExplosionEmit ter

hmm, not sure why it did that because there is no space in the .cs

wow, all i had to do to fix it was just execute support_miscdatablocks first lol
god dammit