Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 15, 2006, 8:34:47 AM (17 years ago)
Author:
nicolasc
Message:

guiding system (somewhat not working)
minor cleanup in pnode.h
cd/cr in hbolt/lbolt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/projectiles/hbolt.cc

    r10074 r10079  
    2828
    2929// #include "effects/billboard.h"
     30#include "space_ships/space_ship.h"
    3031
    3132
     
    9899  }
    99100
    100   this->setDamage(100);
     101  this->setPhysDamage(100);
    101102  this->setHealth(0);
    102103}
     
    117118void HBolt::collidesWith(WorldEntity* entity, const Vector& location)
    118119{
     120  PRINTF(0)("Collision with HBolt\n");
    119121  if (this->hitEntity != entity && entity->isA(CL_NPC))
    120122    this->destroy( entity );
    121123  this->hitEntity = entity;
     124  dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),0);
     125//   this->deactivate();
    122126}
    123127
     
    142146    this->deactivate();
    143147
    144   //float w = this->rotationSpeed * M_PI;
    145   //Quaternion rotation(this->rotationSpeed * dt, this->axis);
    146   //Quaternion u = this->getRelDir();
    147   //this->setRelDir(u * rotation);
     148  this->updateAngle(dt);
    148149
    149   this->updateAngle(dt);
    150150
    151151}
Note: See TracChangeset for help on using the changeset viewer.