- Timestamp:
- May 23, 2011, 5:59:48 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gameimmersion/src/modules/weapons/projectiles/BasicProjectile.cc
r8542 r8550 50 50 this->bDestroy_ = false; 51 51 52 // Default damage must be zero, otherwise it would be above zero if no settings are made in the weaponsettings xml file. 53 // same thing for all weaponmodes files 52 54 this->damage_ = 0; 53 55 this->healthdamage_ = 0; … … 89 91 if (owner) //if the owner does not exist (anymore?), no effects are displayed. 90 92 { 91 if (!victim || (victim && !victim->hasShield())) 93 // damping and explosion effect is only played if the victim is no pawn (see cast above) 94 // or if the victim is a pawn, has no shield left, is still alive and any damage goes to the health 95 if (!victim || (victim && !victim->hasShield() && victim->getHealth() > 0 && (this_->getDamage() > 0 || this_->getHealthDamage() > 0))) 92 96 { 93 97 {
Note: See TracChangeset
for help on using the changeset viewer.