Game Development Community

I looking for a resource

by Temasek Polytechnic Tp8 · in Torque Game Engine · 07/26/2006 (1:01 am) · 3 replies

A resource that the player use a crossbow to hit the bot making them blow away

#1
07/26/2006 (5:52 am)
I'm not too clear on what you're asking for but I'm guessing you're talking about an impulse effect. If so, you don't need a resource, this is already in the engine. Just declare your projectile with an reaImpulse value.

E.g.

//-----------------------------------------------------------------------------
// Projectile Object

datablock ProjectileData(CrossbowProjectile)
{
   projectileShapeName = "~/data/shapes/crossbow/projectile.dts";
   directDamage        = 20;
   radiusDamage        = 20;
   damageRadius        = 1.5;
   [b]areaImpulse         = 2000;[/b]

   explosion           = CrossbowExplosion;
   waterExplosion      = CrossbowWaterExplosion;

   particleEmitter     = CrossbowBoltEmitter;
   particleWaterEmitter= CrossbowBoltBubbleEmitter;

   splash              = CrossbowSplash;

   muzzleVelocity      = 100;
   velInheritFactor    = 0.3;

   armingDelay         = 0;
   lifetime            = 5000;
   fadeDelay           = 5000;
   bounceElasticity    = 0;
   bounceFriction      = 0;
   isBallistic         = false;
   gravityMod          = 0.80;
};

Shoot at your feet or at another player to send them flying!

- Tim
#2
07/26/2006 (5:20 pm)
Ok thank tim
#3
07/26/2006 (7:31 pm)
I had to try that setting. LOL ROTFLMAO that was soo funny. :D