Changeset 9184 for code/branches/pickup2012/src/orxonox/worldentities
- Timestamp:
- May 18, 2012, 12:47:54 PM (13 years ago)
- 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 231 231 void Pawn::damage(float damage, float healthdamage, float shielddamage, Pawn* originator) 232 232 { 233 // apply multiplier233 //Applies multiplier given by the DamageBoost Pickup. 234 234 Pawn *test = dynamic_cast<Pawn *>(originator); 235 235 if( test != NULL ) 236 { orxout() << "Test " << damage << endl;236 { 237 237 damage *= originator->getDamageMultiplier(); 238 238 } -
code/branches/pickup2012/src/orxonox/worldentities/pawns/Pawn.h
r9099 r9184 162 162 { return this->numexplosionchunks_; } 163 163 164 // not that beautiful yet164 // These are used with the Damage Boost Pickup to use the damage multiplier. 165 165 inline void setDamageMultiplier(float multiplier) 166 166 { this->damageMultiplier_ = multiplier; } … … 215 215 float reloadWaitCountdown_; 216 216 217 // modifiers218 float damageMultiplier_; 217 // Modifier 218 float damageMultiplier_; // Used by the Damage Boost Pickup. 219 219 220 220 WeakPtr<Pawn> lastHitOriginator_;
Note: See TracChangeset
for help on using the changeset viewer.