datablock ProjectileData(PuckProjectile)
{
sportBallImage = "PuckImage";
projectileShapeName = "./puck.dts";
explosion = "";
bounceExplosion = "";
particleEmitter = ballTrailEmitter;
explodeOnDeath = true;
brickExplosionRadius = 0;
brickExplosionImpact = 0; //destroy a brick if we hit it directly?
brickExplosionForce = 0;
brickExplosionMaxVolume = 0; //max volume of bricks that we can destroy
brickExplosionMaxVolumeFloating = 0; //max volume of bricks that we can destroy if they aren't connected to the ground (should always be >= brickExplosionMaxVolume)
sound = "";
muzzleVelocity = 0;
restVelocity = 0;
velInheritFactor = 1.0;
armingDelay = 12000;
lifetime = 60000;
fadeDelay = 11500;
bounceElasticity = 0.3;
bounceFriction = 0;
isBallistic = true;
gravityMod = 1;
hasLight = false;
uiName = "Hockey Puck";
};
How do I make this have less friction and slide across the ground?
and
whats wrong with this and why won't it work
function Armor::onCollision(%this, %obj, %col, %thing, %other)
{
if(isObject(%obj.client))
{
if(%col.getDatablock() == PlayerIceHockeyArmor.getID())
%col.setVelocity(vectorAdd(%col.getVelocity(),vectorScale(%player.getVelocity,$Push::Amount)));
}
parent::OnCollision(%this, %obj, %col, %thing, %other);
}
it's in a package btw
it spams the console with onCollision is an unknown command