Changeset 9372 for code/branches
- Timestamp:
- Sep 6, 2012, 3:00:38 PM (12 years ago)
- Location:
- code/branches/release2012
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/release2012/data/levels/underAttack.oxw
r9371 r9372 46 46 <?lua end ?> 47 47 48 <!--- A SpaceBoundary moving along with the transporter, in order to filter out bots that are too far away from the transporter ---->49 <MovableEntity50 position="0,0,0"51 velocity="-35,0,0"52 >53 <attached>54 <SpaceBoundaries position="1,2,3" maxDistance="1600" warnDistance="300" showDistance="300" reactionMode="1" healthDecrease="5.0" />55 <BlinkingBillboard56 position="0,0,0"57 material="Flares/ringflare2"58 colour="1.0, 0.5, 0.3"59 phase="-180"60 amplitude=0.161 frequency=0.562 quadratic=163 />64 </attached>65 </MovableEntity>66 67 48 68 49 <Destroyer … … 79 60 80 61 <attached> 62 <SpaceBoundaries position="1,2,3" maxDistance="1600" warnDistance="300" showDistance="300" reactionMode="1" healthDecrease="5.0" /> 81 63 <TeamSpawnPoint team=1 position="200,0,20" direction="-1,0,0" roll=90 yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> 82 64 <TeamSpawnPoint team=1 position="50,0,100" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> 83 <TeamSpawnPoint team=1 position="-200,0, 20" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff />65 <TeamSpawnPoint team=1 position="-200,0,-60" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> 84 66 <TeamSpawnPoint team=1 position="100,0,-50" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> 85 67 <TeamSpawnPoint team=1 position="400,0,20" lookat="-1,0,0" roll="90" yaw=0 spawnclass=SpaceShip pawndesign=spaceshipassff /> -
code/branches/release2012/src/orxonox/gametypes/UnderAttack.cc
r9370 r9372 207 207 //Each defender prevents 500 damage. If human 2000 damage will be additionally be prevented. 208 208 //TODO: use gametime and the damage dealt so far in order to calculate the transporter's life more precisely 209 float health = this->getTeamSize(attacker_)* 3500.0f + this->getHumansInTeam(attacker_)*1500.0f - this->getTeamSize(defender_)*500.0f - this->getHumansInTeam(defender_)*2000.0f ;209 float health = this->getTeamSize(attacker_)*2000.0f + this->getHumansInTeam(attacker_)*3000.0f - this->getTeamSize(defender_)*500.0f - this->getHumansInTeam(defender_)*2000.0f ; 210 210 this->destroyer_->setHealth(std::max(health, 5000.0f)); //the destoyer should have at least 5000.0f life. 211 211 }
Note: See TracChangeset
for help on using the changeset viewer.