Blockland Forums > Modification Help
Weapon doesn't do any radius damage
Brixmon:
This is confusing... I referenced the code from the Rocket Launcher just to be sure, but I can't figure out why this weapon won't do any radius damage.
I have to directly hit an enemy to do anything, and if I reduce the projectile's directDamage to 0, it does no damage at all.
--- Code: ---datablock ExplosionData(DemonFireballWandExplosion : AdminWandExplosion)
{
uiName = "Demonflame Fireball Explosion";
particleEmitter = "";
emitter[0] = DemonFireballWandExplosionEmitter;
lifetimeMS = 100;
soundProfile = DemonWandHitSound;
faceViewer = true;
explosionScale = "1 1 1";
damageRadius = 4;
radiusDamage = 25;
// Dynamic light
lightStartRadius = 4;
lightEndRadius = 0;
lightStartColor = "0.66 0.19 1";
lightEndColor = "0.29 0 1";
};
//### Projectile
datablock ProjectileData(DemonFireballWandProjectile)
{
uiName = "Demonflame Fireball";
projectileShapeName = "";
directDamage = 25;
directDamageType = $DamageType::MagicWand;
radiusDamageType = $DamageType::MagicWand;
impactImpulse = 100;
verticalImpulse = 0;
particleEmitter = DemonFireballWandEmitter;
explosion = DemonFireballWandExplosion;
bounceExplosion = DemonFireballWandExplosion;
muzzleVelocity = 40;
verInheritFactor = 0;
armingDelay = 4500;
lifetime = 5000;
fadeDelay = 5000;
bounceElasticity = 1;
bounceFriction = 0;
isBallistic = true;
gravityMod = 20;
};
--- End code ---
Masterlegodude:
Why are you referencing the Admin Wand's explosion if you already have most of the explosion data variables anyway?
The Admin Wand does no damage, so maybe that's the problem?
Brixmon:
--- Quote from: Masterlegodude on November 02, 2017, 07:45:41 AM ---Why are you referencing the Admin Wand's explosion if you already have most of the explosion data variables anyway?
The Admin Wand does no damage, so maybe that's the problem?
--- End quote ---
There's not too much else to reference, but this explosiondata is partially from Gravity Cat's Endless Zombies Kompressorwand code. That didn't have radius damage, but I thought defining it would give it damage...
Should I make it refer to the Rocket Launcher instead?
Masterlegodude:
Don't refer to anything, try just changing the line to "datablock ExplosionData(DemonFireballWandExplosion)"
Brixmon:
--- Quote from: Masterlegodude on November 02, 2017, 08:35:06 AM ---Don't refer to anything, try just changing the line to "datablock ExplosionData(DemonFireballWandExplosion)"
--- End quote ---
Right. I'll try that when I have my computer next, thanks!