Blockland Forums > Modification Help
Projectile does not explode upon impact with bricks.
DrenDran:
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: ---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)
};
--- End code ---
Reinforcements:
--- Quote from: DrenDran on June 23, 2010, 11:33:09 AM --- it hits them, points down, falls, then explodes on the ground.
--- End quote ---
That sounds like it could be cool a add-on , it could be like a "grenade-rocket-launcher"?
Red_Guy:
What happens when you shoot it at a wall thats not made of bricks?
like in the bedroom, or kitchen, or slopes?
Reinforcements:
--- Quote from: DrenDran on June 23, 2010, 11:33:09 AM ---when I launch this projectile at a wall of bricks
--- End quote ---
this Red Guy.
TheKhoz:
--- Quote from: Reinforcements on June 25, 2010, 06:18:34 PM ---this Red Guy.
--- End quote ---
What.
Use the default Rocket script, it is basically a grenade, when it hits the wall, it bounces off.