Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 18, 2012, 12:47:54 PM (13 years ago)
Author:
lkevin
Message:

Finished DamageBoost Pickup and the XML inclusions are working now.

Location:
code/branches/pickup2012/src/orxonox/worldentities/pawns
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickup2012/src/orxonox/worldentities/pawns/Pawn.cc

    r9155 r9184  
    231231    void Pawn::damage(float damage, float healthdamage, float shielddamage, Pawn* originator)
    232232    {
    233         // apply multiplier
     233        //Applies multiplier given by the DamageBoost Pickup.
    234234        Pawn *test = dynamic_cast<Pawn *>(originator);
    235235        if( test != NULL )
    236         { orxout() << "Test " << damage << endl;
     236        {
    237237          damage *= originator->getDamageMultiplier();
    238238        }
  • code/branches/pickup2012/src/orxonox/worldentities/pawns/Pawn.h

    r9099 r9184  
    162162                { return this->numexplosionchunks_; }
    163163
    164             // not that beautiful yet
     164            // These are used with the Damage Boost Pickup to use the damage multiplier.
    165165            inline void setDamageMultiplier(float multiplier)
    166166                { this->damageMultiplier_ = multiplier; }
     
    215215            float reloadWaitCountdown_;
    216216
    217             // modifiers
    218             float damageMultiplier_;
     217            // Modifier
     218            float damageMultiplier_; // Used by the Damage Boost Pickup.
    219219
    220220            WeakPtr<Pawn> lastHitOriginator_;
Note: See TracChangeset for help on using the changeset viewer.