Game Development Community

Explosions

by Howard Dortch · in Torque Game Engine · 03/02/2006 (6:06 am) · 3 replies

I posted here because im useing the TLK and noticed in the demo app with the small village, when you shoot the crossbow and the projectile collides and explodes, the explosion is not working properly.

The explosion on the crossbow bolt should billow black smoke as part of the explosion sequence but it does not. Is that part of the 1.4 being messed up or something in the TLK not working properly?

seems emitter[0] and emitter[1] are not used in the datablock for ExplosionData

#1
03/02/2006 (8:09 am)
There is a small problem with the particle effects in 1.4 (here is where the info and fix is)

Specifically, near the end of bool Explosion::onAdd() in explosion.cc

// Try to explode!
   if( mDelayMS == 0 && !explode() )
      return false;

   mRandomVal = sgRandom.randF();

   [b]//if(!isServerObject())[/b]
   [b]if(conn)[/b]
   {
      gClientContainer.addObject(this);
#2
03/02/2006 (8:37 am)
Thx David,

Guess I missed this the first time around also.
#3
03/02/2006 (9:44 am)
Thats the fix. Thanks David...