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.
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)
};