1
Modification Help / Weapon doesn't do any radius damage
« on: November 02, 2017, 05:30:47 AM »
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.
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: [Select]
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;
};