Author Topic: CI problems  (Read 1616 times)

Anyone have any idea why my CI icons for my weapons are either showing up as the default -> kill  icon or being replaced by another weapon's CI? All the scripts are correct, and the CI's are properly placed.

P.S. i have been using a bot to test the weapon CI's if that has anything to do w/ it.
« Last Edit: September 15, 2011, 10:42:22 PM by Midway Sentinel »

How did you name the CI file?


I had the same problem.
You need to make the icons each have a "decalData" datablock so the clients will download the textures.
Be sure to set preload to true.

huh?

here ill post one of the nonworking weapon's damageType script:

Code: [Select]
AddDamageType("DMR",   '<bitmap:add-ons/Weapon_DMR/CI_DMR> %1',    '%2 <bitmap:add-ons/Weapon_DMR/CI_DMR> %1',0.2,1);
datablock ProjectileData(DMRProjectile)
{
   projectileShapeName = "./bullet.dts";
   directDamage        = 50;
   directDamageType    = $DamageType::DMR;
   radiusDamageType    = $DamageType::DMR;

   brickExplosionRadius = 2;
   brickExplosionImpact = true;          //destroy a brick if we hit it directly?
   brickExplosionForce  = 1;
   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     = 25;
   verticalImpulse  = 0;
   explosion           = gunExplosion;

   muzzleVelocity      = 200;
   velInheritFactor    = 1;

   armingDelay         = 00;
   lifetime            = 4000;
   fadeDelay           = 3500;
   bounceElasticity    = 0.5;
   bounceFriction      = 0.20;
   isBallistic         = true;
   gravityMod = 0;

   hasLight    = true;
   lightRadius = 5.0;
   lightColor  = "0.5 0.5 0";

   uiName = "M392 DMR Bullet";
};

this has happened to these weapons:

M19 SSM
M392 DMR
M6C
M6C SOCOM
M7 CSMG's
« Last Edit: September 13, 2011, 09:13:08 PM by Midway Sentinel »

Just noticed this. I'm no script genius, but it says
Code: [Select]
bitmap:add-ons/Weapon_DMR/CI_DMR> %1',0.2,1);But the image you posted for the CI is a .png, would that maybe be the problem?

all CI icons are .png because it supports transparency

Kay, just wondering 'cause it said bitmap, but the CI was a .png. I have no experience with custom CI, so just ignore me. forever.

Kay, just wondering 'cause it said bitmap, but the CI was a .png. I have no experience with custom CI, so just ignore me. forever.

This guy looks right. You need .png at the end as far as it's known

So I may actually be right? I've never even written a line of torque script.

so it has to be:

Code: [Select]
AddDamageType("DMR",   '<bitmap:add-ons/Weapon_DMR/CI_DMR.png> %1',    '%2 <bitmap:add-ons/Weapon_DMR/CI_DMR.png> %1',0.2,1);?

Try it. That's the only way to tell.

ok, after school today I'll make sure to try it out. thanks for the assistance, whatever the outcome.


unfortunately no. it still shows the -> kill icon :(

Quote
*Bot* -> Midway Sentinel