Changeset 7903 for code/branches/lastmanstanding3
- Timestamp:
- Feb 16, 2011, 11:17:30 AM (14 years ago)
- Location:
- code/branches/lastmanstanding3
- Files:
-
- 4 added
- 8 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/lastmanstanding3/data/levels/lastManStanding.oxw
r7785 r7903 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/branches/lastmanstanding3/data/levels/lastTeamStanding.oxw
r7902 r7903 1 <LevelInfo 2 name = "Last Team Standing" 3 description = "Survive as a team." 4 tags = "singleplayer" 5 /> 1 6 <?lua 2 7 include("stats.oxo") 3 8 include("HUDTemplates3.oxo") 4 9 include("templates/lodInformation.oxt") 5 include("last ManStandingHUD.oxo")10 include("lastTeamStandingHUD.oxo") 6 11 include("templates/spaceshipAssff.oxt") 7 12 include("templates/spaceshipPirate.oxt") … … 10 15 11 16 <Level 12 name = "Last ManStanding"13 description = "testmap for gametype last manstanding"14 gametype = "Last ManStanding"17 name = "Last Team Standing" 18 description = "testmap for gametype last team standing" 19 gametype = "LastTeamStanding" 15 20 > 16 21 <templates> … … 20 25 <Scene 21 26 ambientlight = "0.8, 0.8, 0.8" 22 skybox = "Orxonox/sky BoxMoreNebula"27 skybox = "Orxonox/skypanoramagen1" 23 28 > 24 29 … … 27 32 ?> 28 33 29 <!----- Spawnpoints30 <Light type=directional position="0,0,0" direction="0.253, 0.593, -0.765" diffuse="1.0, 0.9, 0.9, 1.0" specular="1.0, 0.9, 0.9, 1.0"/>31 <SpawnPoint team=0 position="-1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />32 <SpawnPoint team=0 position="1150,0,0" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />33 <SpawnPoint team=0 position="-700,0,700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />34 <SpawnPoint team=0 position="700,0,-700" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />35 <SpawnPoint team=0 position="0,0,-1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />36 <SpawnPoint team=0 position="0,0,1150" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> ----->37 34 <Bot /> 38 35 … … 74 71 ?> 75 72 76 < SpawnPoint team=0 position="<?lua print(y*1.4+z*0.2) ?>,0,<?lua print(z*1.4-y*0.2) ?>" lookat="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff />73 <TeamSpawnPoint team=<?lua print( math.mod(i,4)) ?> position="<?lua print(y*1.4+z*0.2) ?>,0,<?lua print(z*1.4-y*0.2) ?>" direction="0,0,0" spawnclass=SpaceShip pawndesign=spaceshipassff /> 77 74 78 75 <StaticEntity position="<?lua print(y) ?>,0,<?lua print(z) ?>" scale=<?lua print(j * 2) ?> collisionType=static > -
code/branches/lastmanstanding3/data/overlays/lastManStandingHUD.oxo
r7679 r7903 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/branches/lastmanstanding3/src/modules/overlays/hud/CMakeLists.txt
r7655 r7903 16 16 GametypeFadingMessage.cc 17 17 LastManStandingInfos.cc 18 LastTeamStandingInfos.cc 18 19 ) -
code/branches/lastmanstanding3/src/modules/overlays/hud/GametypeStatus.cc
r7284 r7903 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/branches/lastmanstanding3/src/modules/overlays/hud/GametypeStatus.h
r7284 r7903 49 49 50 50 private: 51 //Gametype* game_; 51 52 PlayerInfo* owner_; 52 53 bool bNoCaption_; 54 //bool bForcedSpawn_; 53 55 54 56 }; -
code/branches/lastmanstanding3/src/modules/overlays/hud/LastTeamStandingInfos.h
r7902 r7903 21 21 * 22 22 * Author: 23 * Fabian 'x3n' Landau23 * Johannes Ritz 24 24 * Co-authors: 25 * ...25 * 26 26 * 27 27 */ 28 28 29 #ifndef _ GametypeStatus_H__30 #define _ GametypeStatus_H__29 #ifndef _LastTeamStandingInfos_H__ 30 #define _LastTeamStandingInfos_H__ 31 31 32 32 #include "overlays/OverlaysPrereqs.h" … … 37 37 namespace orxonox 38 38 { 39 class _OverlaysExport GametypeStatus : public OverlayText, public Tickable39 class _OverlaysExport LastTeamStandingInfos : public OverlayText, public Tickable 40 40 { 41 41 public: 42 GametypeStatus(BaseObject* creator);43 virtual ~ GametypeStatus();42 LastTeamStandingInfos(BaseObject* creator); 43 virtual ~LastTeamStandingInfos(); 44 44 45 45 virtual void tick(float dt); 46 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 46 47 virtual void changedOwner(); 47 48 48 void setDisplayCaption(bool bValue); //!< Toggles whether the gametype status is displayed. 49 inline void setShowLives(bool value) 50 { this->bShowLives_ = value; } 51 inline bool getShowLives() const 52 { return this->bShowLives_; } 53 54 inline void setShowTeams(bool value) 55 { this->bShowTeams_ = value; } 56 inline bool getShowTeams() const 57 { return this->bShowTeams_; } 49 58 50 59 private: 51 PlayerInfo* owner_; 52 bool bNoCaption_; 53 60 LastTeamStanding* lts_; 61 PlayerInfo* player_; 62 bool bShowLives_; 63 bool bShowTeams_; 54 64 }; 55 65 } 56 #endif /* _ GametypeStatus_H__ */66 #endif /* _LastTeamStandingInfos_H__ */ -
code/branches/lastmanstanding3/src/orxonox/OrxonoxPrereqs.h
r7854 r7903 96 96 class Gametype; 97 97 class LastManStanding; 98 class LastTeamStanding; 98 99 class TeamBaseMatch; 99 100 class TeamDeathmatch; -
code/branches/lastmanstanding3/src/orxonox/gametypes/CMakeLists.txt
r7655 r7903 8 8 Dynamicmatch.cc 9 9 LastManStanding.cc 10 LastTeamStanding.cc 10 11 ) -
code/branches/lastmanstanding3/src/orxonox/gametypes/Gametype.h
r7801 r7903 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.