51001
Forum Games / Re: What is the person above you avatar saying?
« on: June 12, 2007, 01:27:44 AM »
Pyramids r us
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Things do not collide with projectiles. If you want it to be solid, you should spawn a static shape when the projectile explodes.Ookay, how do i do that?
function shieldProjectile::onEnter(%this,%obj,%col)
{
// Apply health to colliding object if it needs it.
// Works for all shapebase objects.
if (%col.getDamageLevel() != 0 && %col.getState() !$= "Dead" ) {
%col.applyRepair(%this.repairAmount);
%obj.respawn();
if (%col.client)
messageClient(%col.client, 'MsgHealthPatchUsed', '\c2Health regaining...');
}
}
//projectile
datablock ProjectileData(shieldProjectile)
{
projectileShapeName = "./shapes/shield.dts";
repairAmount = 400;
muzzleVelocity = 50;
velInheritFactor = 0;
armingDelay = 9999;
lifetime = 20000;
fadeDelay = 19500;
bounceElasticity = 0.1;
bounceFriction = 900;
isBallistic = true;
gravityMod = 200.0;
hasLight = true;
lightRadius = 6.0;
lightColor = "0 0 0.5";
};