Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8550


Ignore:
Timestamp:
May 23, 2011, 5:59:48 PM (13 years ago)
Author:
simonmie
Message:

again comments for BasicProjectile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gameimmersion/src/modules/weapons/projectiles/BasicProjectile.cc

    r8542 r8550  
    5050        this->bDestroy_ = false;
    5151
     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
    5254        this->damage_ = 0;
    5355        this->healthdamage_ = 0;
     
    8991            if (owner) //if the owner does not exist (anymore?), no effects are displayed.
    9092            {
    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)))
    9296                {
    9397                    {
Note: See TracChangeset for help on using the changeset viewer.