URL:
  <http://gna.org/task/?5925>

                 Summary: Bullet should push character when it collides with
it
                 Project: Wormux
            Submitted by: gentildemon
            Submitted on: lundi 28.04.2008 à 20:05
         Should Start On: lundi 28.04.2008 à 00:00
   Should be Finished on: lundi 28.04.2008 à 00:00
                Category: weapon
                Priority: 5 - Normal
                  Status: None
        Percent Complete: 0%
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

Normally, this is already implemented in 

void WeaponBullet::SignalObjectCollision(PhysicalObj * obj)
{
  if (typeid(*obj) != typeid(Character))
    Explosion();
  obj->SetEnergyDelta(-(int)cfg.damage);
  obj->AddSpeed(2, GetSpeedAngle());
  Ghost();
}

obj->AddSpeed should give speed to the character, BUT it is currently
invisible. Probably because the norm 2 is not enough...

Thus, we should enhance it and maybe put it in the xml configuration of the
corresponding weapons.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/task/?5925>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/


_______________________________________________
Wormux-gna mailing list
[email protected]
https://mail.gna.org/listinfo/wormux-gna

Reply via email to