Changeset 6417 for code/trunk/src/modules/weapons/projectiles/Projectile.cc
- Timestamp:
- Dec 25, 2009, 10:23:58 PM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/weapons/projectiles/Projectile.cc
r5929 r6417 48 48 this->bDestroy_ = false; 49 49 this->owner_ = 0; 50 this->damage_ = 15; 50 51 51 52 // Get notification about collisions … … 53 54 if (GameMode::isMaster()) 54 55 { 56 this->setMass(1.0); 55 57 this->enableCollisionCallback(); 56 58 this->setCollisionResponse(false); … … 71 73 void Projectile::setConfigValues() 72 74 { 73 SetConfigValue(damage_, 15.0).description("The damage caused by the projectile");74 75 SetConfigValue(lifetime_, 4.0).description("The time in seconds a projectile stays alive"); 75 76 } … … 128 129 Pawn* victim = orxonox_cast<Pawn*>(otherObject); 129 130 if (victim) 130 victim-> damage(dmg, this->owner_);131 victim->hit(this->owner_, contactPoint, dmg); 131 132 } 132 133 return false;
Note: See TracChangeset
for help on using the changeset viewer.