Changeset 9016 for code/trunk/src/modules/weapons
- Timestamp:
- Feb 15, 2012, 11:51:58 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/modules/weapons/projectiles/Rocket.cc
r8891 r9016 66 66 this->localAngularVelocity_ = 0; 67 67 this->lifetime_ = 100.0f; 68 this->bIsRocket_= true;69 68 70 69 if (GameMode::isMaster()) … … 135 134 if(this->isInitialized()) 136 135 { 137 this->bIsRocket_= false;138 136 if (GameMode::isMaster()) 139 137 { … … 163 161 164 162 this->player_ = this->getShooter()->getPlayer(); 165 this->getShooter()->getPlayer()->startTemporaryControl(this); 163 if(this->player_) 164 this->player_->startTemporaryControl(this); 166 165 167 166 if( GameMode::isMaster() ) -
code/trunk/src/modules/weapons/projectiles/Rocket.h
r8855 r9016 122 122 123 123 WeakPtr<PlayerInfo> player_; //!< The player that controls the Rocket. 124 //WeakPtr<Pawn> pawn_; //!< The pawn that controls the Rocket. TODO 124 125 Timer destroyTimer_; //!< Timer to destroy the projectile after its lifetime has run out. 125 126 float lifetime_; //!< The time the projectile exists. -
code/trunk/src/modules/weapons/weaponmodes/LightningGun.cc
r8855 r9016 52 52 this->reloadTime_ = 1.0f; 53 53 this->damage_ = 0.0f; 54 this->speed_ = 250.0f;54 this->speed_ = 700.0f; 55 55 56 56 this->setMunitionName("LaserMunition");
Note: See TracChangeset
for help on using the changeset viewer.