[Tribes 2] Bouncing Bullets

Dr.Spangle
08-16-2004, 07:18 PM
I'm looking for a way to remove the bounce on an EnergyProjectileData projectile, possibly through the use of some unused "bounce" function for the projectile. It's onCollision function isn't called until it dies (from impacting an object), so that can't be used. If there's an "onBounce" or something, though, I could then tell it to find out what the object is. If it's a metal surface, continue normally a certain % of the time based on the size of the bullet; if it's rock, a lower %; if it's anything else, kill it off. That way I can still maintain some bouncing in logical situations, but not as much as I do now.

If there's a way to kill it altogether, I'd be happy just the same.

For reference, the bullets being used have drop (and need drop), and their ArmingDelayMS is set to 250. They also travel at EXTREMELY high speeds. For bullets traveling at near, or super-sonic speeds... it's a long time for it to bounce around.

Can anybody help me out with this dilemma? Has anybody done this type of thing before?

:banging:

SmartZ
08-28-2004, 06:44 AM
yeah, energy projs like to do that..
try a tracer projectile. heres some code for a non-bouncing blaster bolt.

datablock TracerProjectileData(Blas terBolt2)
{
doDynamicClientHits = true;

directDamage = 0.15;
directDamageType = $DamageType::Blaster;
explosion = "BlasterExplosion";
splash = BlasterSplash;

kickBackStrength = 0.0;
sound = BlasterProjectileSound;

dryVelocity = 200.0;
wetVelocity = 150.0;
velInheritFactor = 1.0;
fizzleTimeMS = 3000;
lifetimeMS = 3000;
explodeOnDeath = false;
reflectOnWaterImpactAngle = 0.0;
explodeOnWaterImpact = false;
deflectionOnWaterImpact = 0.0;
fizzleUnderwaterMS = 10;

tracerLength = 20.0;
tracerMinPixels = 6;
tracerTex[0] = "special/blasterBolt";
tracerTex[1] = "special/blasterBoltCross";
tracerWidth = 0.55;
crossSize = 0.55;
crossViewAng = 0.99;
renderCross = true;
};

SmartZ
08-28-2004, 06:49 AM
oh, and if your looking to use an energy proj for it's gravity mod, then dont worry i'm not certain, but i think tracers accept it too.

Hilikus
08-28-2004, 03:10 PM
hooly hell.... what the hell you modding now spangle? ~ ultraraptor aka pwa

Dr.Spangle
08-30-2004, 05:03 AM
:wave: