- Timestamp:
- Apr 3, 2011, 7:56:47 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 9 edited
- 7 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/lastmanstanding3 (added) merged: 7903,8155,8165,8170-8175
- Property svn:mergeinfo changed
-
code/trunk/data/levels/lastManStanding.oxw
r8079 r8178 1 <LevelInfo 2 name = "Last Man Standing" 3 description = "Be the sole survivor." 4 tags = "" 5 /> 6 1 7 <?lua 2 8 include("stats.oxo") … … 38 44 39 45 <!-- ------------ middle asteroid -------------- --> 40 <StaticEntity position="0,20,0" collisionType=static> 41 <attached> 42 <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true /> 43 <!-- ParticleEmitter position="0,0,0" source="Orxonox/Steam" / --> 44 </attached> 45 <collisionShapes> 46 <SphereCollisionShape radius="145" /> 47 </collisionShapes> 46 <StaticEntity position="0,0,0" collisionType=static> 47 <attached> 48 <MovableEntity position="0,20,0" rotationrate="-4.5" rotationaxis="0,1,0" > 49 <attached> 50 <Model position="0,0,0" scale=140 mesh="asteroid_UV.mesh" shadow=true /> 51 <Model position="-160,40,28.4" scale=1 mesh="sphere.mesh" /><!--EasterEgg indicator--> 52 <PickupSpawner position="-160,40,17" triggerDistance="20" respawnTime="5" maxSpawnedItems="15"><!--EasterEgg--> 53 <pickup> 54 <InvisiblePickup template=hugeinvisiblepickup /> 55 </pickup> 56 </PickupSpawner> 57 </attached> 58 </MovableEntity> 59 </attached> 60 <collisionShapes> 61 <SphereCollisionShape radius="145" /> 62 </collisionShapes> 48 63 </StaticEntity> 49 64 50 <PickupSpawner position="-160,65,10" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->51 <pickup>52 <InvisiblePickup template=mediuminvisiblepickup />53 </pickup>54 </PickupSpawner>55 <PickupSpawner position="-160,60,17" triggerDistance="10" respawnTime="5" maxSpawnedItems="10"><!--EasterEgg-->56 <pickup>57 <InvisiblePickup template=hugeinvisiblepickup />58 </pickup>59 </PickupSpawner>60 <StaticEntity position="-160,60,28.4"><!--EasterEgg-Indicator-->61 <attached>62 <Model position="0,0,0" scale=1 mesh="sphere.mesh" />63 </attached>64 </StaticEntity>65 65 66 66 <!-- ---------------asteroid dome----------------- --> … … 138 138 139 139 140 <?lua end ?> 140 <?lua end ?><!-- ---------------asteroid dome END-------------------> 141 141 142 142 </Scene> -
code/trunk/data/overlays/lastManStandingHUD.oxo
r7679 r8178 65 65 /> 66 66 67 < OverlayText67 <!--OverlayText 68 68 position = "0.02, 0.07" 69 69 pickpoint = "0.0, 0.0" … … 93 93 align = "left" 94 94 caption = "|" 95 / >95 /--> 96 96 97 97 </OverlayGroup> -
code/trunk/src/modules/overlays/hud/CMakeLists.txt
r8079 r8178 17 17 LastManStandingInfos.cc 18 18 PauseNotice.cc 19 LastTeamStandingInfos.cc 19 20 ) -
code/trunk/src/modules/overlays/hud/GametypeStatus.cc
r7284 r8178 36 36 #include "worldentities/ControllableEntity.h" 37 37 #include "worldentities/pawns/Spectator.h" 38 //#include "gametypes/Gametype.h" 38 39 39 40 namespace orxonox … … 50 51 RegisterObject(GametypeStatus); 51 52 53 //this->game_ = 0; 52 54 this->owner_ = 0; 53 55 this->bNoCaption_ = false; 56 //this->bForcedSpawn_ = false; 54 57 55 58 ModifyConsoleCommand(__CC_GametypeStatus_name, __CC_displayCaption_name).setObject(this); … … 67 70 if (this->owner_ && this->owner_->getGametypeInfo() && this->owner_->getControllableEntity()) 68 71 { 72 //if (this->game_) 73 // this->bForcedSpawn_ = this->game_->getForceSpawn(); 74 //else 75 // this->bForcedSpawn_ = false; 76 69 77 const GametypeInfo* gtinfo = this->owner_->getGametypeInfo(); 70 78 ControllableEntity* ce = this->owner_->getControllableEntity(); … … 87 95 if (gtinfo->isStartCountdownRunning()) 88 96 this->setCaption(multi_cast<std::string>(static_cast<int>(ceil(gtinfo->getStartCountdown())))); 89 else if (ce->isA(Class(Spectator)) )97 else if (ce->isA(Class(Spectator))/*&&(!bForcedSpawn_)*/) 90 98 this->setCaption("Press [Fire] to respawn"); 91 99 else … … 101 109 { 102 110 SUPER(GametypeStatus, changedOwner); 103 111 //this->game_ = orxonox_cast<Gametype*>(this->getOwner()); 104 112 this->owner_ = orxonox_cast<PlayerInfo*>(this->getOwner()); 105 113 } -
code/trunk/src/modules/overlays/hud/GametypeStatus.h
r7284 r8178 49 49 50 50 private: 51 //Gametype* game_; 51 52 PlayerInfo* owner_; 52 53 bool bNoCaption_; 54 //bool bForcedSpawn_; 53 55 54 56 }; -
code/trunk/src/orxonox/OrxonoxPrereqs.h
r7854 r8178 96 96 class Gametype; 97 97 class LastManStanding; 98 class LastTeamStanding; 98 99 class TeamBaseMatch; 99 100 class TeamDeathmatch; -
code/trunk/src/orxonox/gametypes/CMakeLists.txt
r7655 r8178 8 8 Dynamicmatch.cc 9 9 LastManStanding.cc 10 LastTeamStanding.cc 10 11 ) -
code/trunk/src/orxonox/gametypes/Gametype.h
r7801 r8178 150 150 { this->timeLimit_ = t; } 151 151 152 //inline bool getForceSpawn() 153 // { return this->bForceSpawn_; } 154 152 155 virtual void resetTimer(); 153 156 virtual void resetTimer(float t);
Note: See TracChangeset
for help on using the changeset viewer.