Author Topic: Bullet holes should be possible  (Read 3351 times)

I have explosion holes if anyone wants em
I'll take em, i have a bullet hole for guns, scorch for plasma guns, but i need a big scorch for explosions

I've fixed em up some, yes the bullet hole and plasma burn are from halo (attached below), i just wanted to test it first, i'll find better textures, anyway, it don't work, i'm sure i did something wrong

AddOn_BulletHoles.cs
Code: [Select]
// Bullet holes
datablock DecalData(BulletDecal)
{
   sizeX       = 0.1;
   sizeY       = 0.1;
   textureName = "~/data/shapes/Decals/bullethole";
};
datablock DecalData(BurnDecal : BulletDecal)
{
   textureName = "~/data/shapes/Decals/plasmaburn";
};

datablock DecalData(ScorchDecal : BulletDecal)
{
   textureName = "~/data/shapes/Decals/explosionscorch";
};

Weapon_Gun.cs (Projectile)
Code: [Select]
AddDamageType("Gun",   '<bitmap:add-ons/ci/gun> %1',    '%2 <bitmap:add-ons/ci/gun> %1',0.5,1);
datablock ProjectileData(gunProjectile)
{
   projectileShapeName = "./shapes/bullet.dts";
   directDamage        = 30;
   directDamageType    = $DamageType::Gun;
   radiusDamageType    = $DamageType::Gun;

   brickExplosionRadius = 0;
   brickExplosionImpact = true;          //destroy a brick if we hit it directly?
   brickExplosionForce  = 10;
   brickExplosionMaxVolume = 1;          //max volume of bricks that we can destroy
   brickExplosionMaxVolumeFloating = 2;  //max volume of bricks that we can destroy if they aren't connected to the ground

   impactImpulse      = 700;
   verticalImpulse   = 1000;
   explosion           = gunExplosion;
   particleEmitter     = bulletTrailEmitter;

   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";

// decal stuff
   decals[0] = BulletDecal;
};

The decals are in Add-Ons/Shapes/Decals/
« Last Edit: January 02, 2008, 09:44:52 AM by Masterlegodude »

The:
Code: [Select]
textureName = "~/data/shapes/Decals/bullethole";should be: 
Code: [Select]
textureName = "~/shapes/Decals/bullethole";Since there isn't a data folder in the add-ons folder.

Hmm, i tried that, it still doesn't work, i PM'ed you the .zip for it, so maybe you can fix it since i dunno what's wrong