Author Topic: Projectile does not explode upon impact with bricks.  (Read 700 times)

So I'm making a weapon from scratch, my own models and everything, and I made this as the projectile and it's explosion, and when I launch this projectile at a wall of bricks, it hits them, points down, falls, then explodes on the ground. Why?

Also:
I get an error that says that RocketeerExplosion isn't an ExplosionDatablock class, but I still see the explosion when the Rocket explodes.

Code: [Select]
datablock ExplosionData(RocketeerExplosion)
{
lifeTimeMS = 500;
emitter[0] = rocketLauncherSmokeEmitter;
subExplosion[0] = RocketeerExplosion;
subExplosion[1] = RocketeerExplosion;
subExplosion[2] = RocketeerExplosion;
shakeCamera = true;
camShakeDuration = 0.1;
camShakeRadius = 20;
camShakeFallOff = 0.1;
camShakeFreq = "100 100 100";
camShakeAmp = "5 5 5";
explosionScale = "1 1 1";
damageRadius = 8;
radiusDamage = 100;
impluseForce = 10000;
playerBurnTime = 10000;
};

datablock ProjectileData(RocketeerProjectile)
{
projectileShapeName = "./rocket.dts";
explosion = RocketeerExplosion;

directDamageType = $DamageType::RocketDirect; //temp
  radiusDamageType = $DamageType::RocketRadius; //temp
  sound = rocketLoopSound; //temp

uiName = "Rocketeer";
directDamage = 100000;
impactImpulse = 1000;
verticalImpulse = 0;
muzzleVelocity = 10;
velInheritFactor = 0;
armingDelay = 1000;
lifetime = 60000;
fadeDelay = 20000;
bounceElasticity = 0;
bounceFriction = 0;
isBallistic = true;
gravityMod = 1;
Explodeondeath = true;
hasLight = true;
lightRadius = 2;
lightColor = "1 1 1";
hasWaterLight = false;
    brickExplosionRadius = 3;
    brickExplosionImpact = true;          //destroy a brick if we hit it directly?
    brickExplosionForce  = 20;             
    brickExplosionMaxVolume = 20;          //max volume of bricks that we can destroy
    brickExplosionMaxVolumeFloating = 30;  //max volume of bricks that we can destroy if they aren't connected to the ground (should always be >= brickExplosionMaxVolume)

};

it hits them, points down, falls, then explodes on the ground.
That sounds like it could be cool a add-on , it could be like a "grenade-rocket-launcher"?

What happens when you shoot it at a wall thats  not made of bricks?
like in the bedroom, or kitchen, or slopes?

when I launch this projectile at a wall of bricks
this Red Guy.

this Red Guy.
What.

Use the default Rocket script, it is basically a grenade, when it hits the wall, it bounces off.

No no, you don't understand, I want it to explode when it touches bricks, but it doesn't.

No no, you don't understand, I want it to explode when it touches bricks, but it doesn't.
I do understand.

What you should do:
Use the default Rocket script
What you made:
It is basically a grenade, when it hits the wall, it bounces off.