Changeset 7585
- Timestamp:
- Oct 26, 2010, 9:01:48 PM (14 years ago)
- Location:
- code/branches/lastmanstanding
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lastmanstanding/data/levels/gametype_lastmanstanding.oxw
r7579 r7585 4 4 include("templates/lodinformation.oxt") 5 5 include("lastmanstandinghud.oxo") 6 ?>7 8 <?lua9 6 include("templates/spaceship_assff.oxt") 10 7 include("templates/spaceship_pirate.oxt") … … 35 32 36 33 <!-- ------------ middle asteroid -------------- --> 37 <StaticEntity position="0,20,0" >34 <StaticEntity position="0,20,0" collisionType=static> 38 35 <attached> 39 36 <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true /> 40 37 <!-- ParticleEmitter position="0,0,0" source="Orxonox/Steam" / --> 41 38 </attached> 42 </StaticEntity>43 <StaticEntity position="0,0,0" collisionType=static>44 39 <collisionShapes> 45 40 <SphereCollisionShape radius="145" /> 46 41 </collisionShapes> 47 42 </StaticEntity> 43 <!--StaticEntity position="0,0,0" collisionType=static> 44 <collisionShapes> 45 <SphereCollisionShape radius="145" /> 46 </collisionShapes> 47 </StaticEntity--> 48 48 49 49 <!-- ---------------asteroid dome----------------- --> … … 57 57 ?> 58 58 <?lua 59 for k = 1, 25, 159 for k = 1, 17, 1 60 60 do 61 61 j = math.random() 62 62 ?> 63 63 64 <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >64 <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static > 65 65 <attached> 66 66 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i,6) + 1) ?>.mesh"> 67 67 </Model> 68 68 </attached> 69 <collisionShapes> 70 <BoxCollisionShape halfExtents="<?lua print(j * 2) ?>,100,<?lua print(j * 2) ?>" position = "0,0,0" /> 71 </collisionShapes> 69 72 </StaticEntity> 70 73 71 <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >74 <StaticEntity position="<?lua print(y) ?>,100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static > 72 75 <attached> 73 76 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i+3,6) + 1) ?>.mesh"> 74 77 </Model> 75 78 </attached> 79 <collisionShapes> 80 <BoxCollisionShape halfExtents="45,100,45" position = "0,0,0" /> 81 </collisionShapes> 76 82 </StaticEntity># 77 83 78 <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >84 <StaticEntity position="<?lua print(y) ?>,200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static > 79 85 <attached> 80 86 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*5,6) + 1) ?>.mesh"> 81 87 </Model> 82 88 </attached> 89 <collisionShapes> 90 <BoxCollisionShape halfExtents="45,100,45" position = "0,0,0" /> 91 </collisionShapes> 83 92 </StaticEntity> 84 93 85 <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >94 <StaticEntity position="<?lua print(y) ?>,-100,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static > 86 95 <attached> 87 96 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*13+1,6) + 1) ?>.mesh"> 88 97 </Model> 89 98 </attached> 99 <collisionShapes> 100 <BoxCollisionShape halfExtents="45,100,45" position = "0,0,0" /> 101 </collisionShapes> 90 102 </StaticEntity> 91 103 92 <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> >104 <StaticEntity position="<?lua print(y) ?>,-200,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static > 93 105 <attached> 94 106 <Model position="0,0,0" scale=15 mesh="ast<?lua print( math.mod(i*17,6) + 1) ?>.mesh"> 95 107 </Model> 96 108 </attached> 109 <collisionShapes> 110 <BoxCollisionShape halfExtents="45,100,45" position = "0,0,0" /> 111 </collisionShapes> 97 112 </StaticEntity> 98 113 … … 102 117 <attached> 103 118 <Model position="0,0,0" scale=25 mesh="ast6.mesh" shadow=true /> 104 <!--ParticleEmitter position="0,0,0" source="Orxonox/Steam" /-->105 119 </attached> 120 <!--collisionShapes> 121 <BoxCollisionShape position="<?lua print(y) ?>,0,<?lua print(z) ?>" halfExtents="5, 5, 5" /> 122 </collisionShapes--> 123 </MovableEntity> 106 124 107 <!--collisionShapes>108 <BoxCollisionShape position="<?lua print(y) ?>,0,<?lua print(z) ?>" halfExtents="50, 200, 50" />109 </collisionShapes-->110 111 </MovableEntity>112 125 113 126 <?lua -
code/branches/lastmanstanding/src/orxonox/gametypes/LastManStanding.cc
r7583 r7585 151 151 if (!player) 152 152 return; 153 this->timeToAct_[player]=timeRemaining+3.0f;//reset timer 153 154 //Update: Individual Players "lifes"-HUD 154 155 std::map<PlayerInfo*, Player>::iterator it2 = this->players_.find(player); … … 209 210 { 210 211 it->second-=dt; 212 if (it->second<timeRemaining/6)//Warning message 213 { 214 const std::string& message = "Camper Warning! Don't forget to shoot."; 215 this->gtinfo_->sendFadingMessage(message,it->first->getClientID()); 216 } 211 217 if (it->second<0.0f) 212 218 {
Note: See TracChangeset
for help on using the changeset viewer.