Changeset 7600
- Timestamp:
- Oct 28, 2010, 11:53:27 PM (14 years ago)
- Location:
- code/branches/lastmanstanding
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lastmanstanding/data/levels/gametype_lastmanstanding.oxw
r7596 r7600 61 61 j = math.random() 62 62 ?> 63 64 65 <!--SpawnPoint team=0 position="<?lua print(y*1.4) ?>,0,<?lua print(z*1.4) ?>" spawnclass=SpaceShip pawndesign=spaceshipassff /--> 63 66 64 67 <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static > -
code/branches/lastmanstanding/src/orxonox/gametypes/LastManStanding.cc
r7596 r7600 46 46 this->lives=4; 47 47 this->playersAlive=0; 48 this->timeRemaining= 20.0f;48 this->timeRemaining=10.0f; 49 49 this->respawnDelay=4.0f; 50 50 this->setHUDTemplate("LastmanstandingHUD"); … … 64 64 { 65 65 if (it->first->getClientID()== CLIENTID_UNKNOWN) 66 return;66 continue; 67 67 const std::string& message = "Respawn in " +multi_cast<std::string>(respawnDelay)+ " seconds." ; 68 68 this->gtinfo_->sendFadingMessage(message,it->first->getClientID()); … … 71 71 { 72 72 if (it->first->getClientID()== CLIENTID_UNKNOWN) 73 return;73 continue; 74 74 const std::string& message2 = "You have lost all " +multi_cast<std::string>(lives)+ " lives." ; 75 75 this->gtinfo_->sendFadingMessage(message2,it->first->getClientID()); … … 236 236 { 237 237 if (playerGetLives(it->first)<=0)//Players without lives shouldn't be affected by time. 238 return;238 continue; 239 239 it->second-=dt;//Decreases punishment time. 240 240 if (!inGame_[it->first])//Manages respawn delay - player is forced to respawn after the delaytime is used up. … … 253 253 { 254 254 if (it->first->getClientID()== CLIENTID_UNKNOWN) 255 return;255 continue; 256 256 const std::string& message = "Camper Warning! Don't forget to shoot."; 257 257 this->gtinfo_->sendFadingMessage(message,it->first->getClientID());
Note: See TracChangeset
for help on using the changeset viewer.