AddDamageType("Gun", '<bitmap:add-ons/Weapon_Gun/CI_gun> %1', '%2 <bitmap:add-ons/Weapon_Gun/CI_gun> %1',0.2,1);
datablock ProjectileData(gunProjectile)
{
projectileShapeName = "./bullet.dts";
directDamage = getrandom(1, 10); \\<<<< Over here
directDamageType = $DamageType::Gun;
radiusDamageType = $DamageType::Gun;
brickExplosionRadius = 0;
brickExplosionImpact = true;
brickExplosionForce = 10;
brickExplosionMaxVolume = 1;
brickExplosionMaxVolumeFloating = 2;
impactImpulse = 400;
verticalImpulse = 400;
explosion = gunExplosion;
particleEmitter = "";
muzzleVelocity = 90;
velInheritFactor = 1;
armingDelay = 00;
lifetime = 4000;
fadeDelay = 3500;
bounceElasticity = 0.5;
bounceFriction = 0.20;
isBallistic = false;
gravityMod = 0.0;
hasLight = false;
lightRadius = 3.0;
lightColor = "0 0 0.5";
uiName = "Gun Bullet";
};
I don't know how to script at all really, would this work?
If not, I think it should.