Changeset 8904
- Timestamp:
- Oct 25, 2011, 10:56:31 PM (13 years ago)
- Location:
- code/branches/gamecontent
- Files:
-
- 2 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gamecontent/data/levels/includes/weaponSettingsSpacecruiser.oxi
r8891 r8904 7 7 <WeaponSlot position="-34,-30,-169" /> 8 8 <WeaponSlot position=" 34,-30,-169" /> 9 10 9 </weaponslots> 11 10 <weaponsets> -
code/branches/gamecontent/data/levels/missionOne.oxw
r8891 r8904 22 22 name = "Mission One" 23 23 description = "How to steer a spaceship." 24 gametype = "Mission" 24 25 > 25 26 <templates> … … 396 397 </templates> 397 398 <controller> 398 <WaypointController >399 <WaypointController team=1> 399 400 <waypoints> 400 401 <Model mesh="cube.mesh" scale=8 position=" 0,1700,-200" /> … … 417 418 </templates> 418 419 <controller> 419 <WaypointController >420 <WaypointController team=1> 420 421 <waypoints> 421 422 <Model mesh="cube.mesh" scale=8 position=" 0,2400,1000" /> -
code/branches/gamecontent/data/levels/templates/spaceshipSpacecruiser.oxt
r8891 r8904 11 11 initialhealth = 300 12 12 13 shieldhealth = 6014 initialshieldhealth = 6015 maxshieldhealth = 8016 shieldabsorption = 0. 813 shieldhealth = 75 14 initialshieldhealth = 75 15 maxshieldhealth = 90 16 shieldabsorption = 0.9 17 17 reloadrate = 1 18 18 reloadwaittime = 1 … … 57 57 </attached> 58 58 <collisionShapes> 59 <BoxCollisionShape position="0,-30,-108" halfExtents="38,6,62" />60 <BoxCollisionShape position="0,-20,-108" halfExtents="20,6,40" />61 <BoxCollisionShape position="-16,-35,-112" halfExtents="15,5,57" roll=-14 pitch=3.5/>62 <BoxCollisionShape position="16,-35,-112" halfExtents="15,5,57" roll=14 pitch=3.5/>63 <BoxCollisionShape position="19,-21.5,-108" halfExtents="18,5,52" roll=-21 />64 <BoxCollisionShape position="-19,-21.5,-108" halfExtents="18,5,52" roll=21 />65 <BoxCollisionShape position="0,-21,-169" halfExtents="18,1,16" pitch=-30x/>59 <BoxCollisionShape position="0,-30,-108" halfExtents="38,6,62" /> 60 <BoxCollisionShape position="0,-20,-108" halfExtents="20,6,40" /> 61 <BoxCollisionShape position="-16,-35,-112" halfExtents="15,5,57" roll=-14 pitch=3.5/> 62 <BoxCollisionShape position="16,-35,-112" halfExtents="15,5,57" roll=14 pitch=3.5/> 63 <BoxCollisionShape position="19,-21.5,-108" halfExtents="18,5,52" roll=-21 /> 64 <BoxCollisionShape position="-19,-21.5,-108" halfExtents="18,5,52" roll=21 /> 65 <BoxCollisionShape position="0,-21,-169" halfExtents="18,1,16" pitch=-30 /> 66 66 67 67 </collisionShapes> … … 75 75 <SpaceShip> 76 76 <camerapositions> 77 <CameraPosition position="0,10, 40" drag=true mouselook=true /> 78 <CameraPosition position="0,20, 80" drag=true mouselook=true /> 77 <CameraPosition position="0,15, 60" drag=true mouselook=true /> 79 78 <CameraPosition position="0,30, 120" drag=true mouselook=true /> 80 <CameraPosition position="0,20,-260" drag=true mouselook=true yaw=180/> 81 <CameraPosition position="0,30,-350" drag=true mouselook=true yaw=180/> 82 <!--CameraPosition position="0,150,-25" pitch=-90 drag=true /> 83 <CameraPosition position="0,0,-40" yaw=180 drag=true /> 84 <CameraPosition position="0,3,-14" yaw=0 /> 85 <CameraPosition position="-50,5,-8" yaw=-90 drag=true /> 86 <CameraPosition position="50,5,-8" yaw=90 drag=true /--> 79 <CameraPosition position="0,40, 350" drag=true mouselook=true /> 87 80 </camerapositions> 88 81 </SpaceShip> … … 93 86 boostfactor = 2 94 87 95 speedfront = 15096 speedback = 5097 speedleftright = 5098 speedupdown = 5088 speedfront = 200 89 speedback = 70 90 speedleftright = 70 91 speedupdown = 70 99 92 100 93 defEngineSndNormal = "sounds/Engine_low.ogg" -
code/branches/gamecontent/src/modules/pong/Pong.cc
r8900 r8904 293 293 std::string message(name1 + " has won!"); 294 294 ChatManager::message(message); 295 this->tick(0);296 295 this->end(); 297 296 } … … 301 300 std::string message2(name2 + " has won!"); 302 301 ChatManager::message(message2); 303 this->tick(0);304 302 this->end(); 305 303 } -
code/branches/gamecontent/src/orxonox/controllers/WaypointPatrolController.cc
r7184 r8904 42 42 RegisterObject(WaypointPatrolController); 43 43 44 //this->team_ = 0;45 44 this->alertnessradius_ = 500; 46 45 … … 53 52 54 53 XMLPortParam(WaypointPatrolController, "alertnessradius", setAlertnessRadius, getAlertnessRadius, xmlelement, mode).defaultValues(500.0f); 55 // XMLPortParam(WaypointPatrolController, "team", setTeam, getTeam, xmlelement, mode).defaultValues(0);56 54 } 57 55 -
code/branches/gamecontent/src/orxonox/controllers/WaypointPatrolController.h
r7163 r8904 46 46 virtual void tick(float dt); 47 47 48 /* inline void setTeam(int team)49 { this->team_ = team; }50 inline int getTeam() const51 { return this->team_; } */52 53 48 inline void setAlertnessRadius(float radius) 54 49 { this->alertnessradius_ = radius; } … … 59 54 void searchEnemy(); 60 55 61 //int team_;62 56 float alertnessradius_; 63 57 Timer patrolTimer_; -
code/branches/gamecontent/src/orxonox/gametypes/CMakeLists.txt
r8899 r8904 10 10 LastTeamStanding.cc 11 11 TeamGametype.cc 12 Mission.cc 12 13 ) -
code/branches/gamecontent/src/orxonox/gametypes/Gametype.h
r8706 r8904 123 123 { return this->gtinfo_->getHUDTemplate(); } 124 124 125 v oid addBots(unsigned int amount);125 virtual void addBots(unsigned int amount); 126 126 void killBots(unsigned int amount = 0); 127 127 -
code/branches/gamecontent/src/orxonox/gametypes/TeamDeathmatch.h
r5781 r8904 56 56 57 57 int getTeam(PlayerInfo* player); 58 59 58 inline const ColourValue& getTeamColour(int teamnr) const 60 59 { return this->teamcolours_[teamnr]; } -
code/branches/gamecontent/src/orxonox/gametypes/TeamGametype.cc
r8901 r8904 67 67 { 68 68 Gametype::playerEntered(player); 69 70 std::vector<unsigned int> playersperteam(this->teams_, 0); 69 this->findAndSetTeam(player); 70 } 71 72 void TeamGametype::findAndSetTeam(PlayerInfo* player) 73 { 74 std::vector<unsigned int> playersperteam(this->teams_, 0); 71 75 72 76 for (std::map<PlayerInfo*, int>::iterator it = this->teamnumbers_.begin(); it != this->teamnumbers_.end(); ++it) … … 86 90 87 91 this->teamnumbers_[player] = minplayersteam; 92 88 93 } 89 94 -
code/branches/gamecontent/src/orxonox/gametypes/TeamGametype.h
r8901 r8904 47 47 48 48 virtual void playerEntered(PlayerInfo* player); 49 virtual void findAndSetTeam(PlayerInfo* player); 49 50 virtual bool playerLeft(PlayerInfo* player); 50 51 -
code/branches/gamecontent/src/orxonox/worldentities/pawns/Pawn.cc
r8891 r8904 455 455 SUPER(Pawn, changedActivity); 456 456 457 this->setRadarVisibility(this->is Active());457 this->setRadarVisibility(this->isVisible()); 458 458 } 459 459
Note: See TracChangeset
for help on using the changeset viewer.