Changeset 11232 for code/branches/SpaceRace_HS16/src/modules
- Timestamp:
- Oct 17, 2016, 2:47:02 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/SpaceRace_HS16/src/modules/gametypes/SpaceRace.cc
r11071 r11232 67 67 else 68 68 { 69 message = "You win!! You have reached the last check pointafter "+ multi_cast<std::string>(s)69 message = "You win!! Final check point reached after "+ multi_cast<std::string>(s) 70 70 + "." + multi_cast<std::string>(ms) + " seconds."; 71 71 } … … 82 82 SUPER(SpaceRace,tick,dt); 83 83 84 // spawn the players already when the countdown starts, but deactivatetheir engines84 // spawns the players when the countdown starts, but deactivates their engines 85 85 if (this->isStartCountdownRunning() && !this->cantMove_) 86 86 { … … 92 92 } 93 93 94 // activate the engines again ifthe countdown ends94 // activate the engines when the countdown ends 95 95 if (!this->isStartCountdownRunning() && this->cantMove_) 96 96 { … … 100 100 this->cantMove_= false; 101 101 102 std::string message = "The match has started! Reach the check points as quickly as possible!";102 std::string message = "The race begins! Reach the check points as quickly as possible!"; 103 103 this->getGametypeInfo()->sendAnnounceMessage(message); 104 104 ChatManager::message(message); … … 122 122 bool SpaceRace::allowPawnHit(Pawn* victim, Pawn* originator) 123 123 { 124 return false;124 return true; 125 125 } 126 126 127 127 bool SpaceRace::allowPawnDamage(Pawn* victim, Pawn* originator) 128 128 { 129 return false;129 return true; 130 130 } 131 131 132 132 bool SpaceRace::allowPawnDeath(Pawn* victim, Pawn* originator) 133 133 { 134 return false;134 return true; 135 135 } 136 136 }
Note: See TracChangeset
for help on using the changeset viewer.