Changeset 10516 in orxonox.OLD for trunk/src/world_entities/space_ships
- Timestamp:
- Jan 30, 2007, 9:17:21 PM (18 years ago)
- Location:
- trunk/src/world_entities/space_ships
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/space_ships/space_ship.cc
r10512 r10516 174 174 Weapon* cannon = new SwarmLauncher(); 175 175 cannon->setName( "SwarmLauncher"); 176 176 /* 177 177 Weapon* spike = new SpikeThrower(); 178 178 spike->setName( "SpikeThrower" ); … … 183 183 184 184 Weapon* acid1 = new AcidLauncher(); 185 acid1->setName( "AcidSplasher" ); 185 acid1->setName( "AcidSplasher" );*/ 186 186 187 187 … … 194 194 this->weaponMan.addWeapon( wpLeft3, 2, 4); 195 195 this->weaponMan.addWeapon( wpRight3, 2, 5); 196 /* 196 197 197 this->weaponMan.addWeapon( wpLeft1, 3, 0); 198 198 this->weaponMan.addWeapon( wpRight1, 3, 1); … … 203 203 this->weaponMan.addWeapon( wpLeft3, 3, 4); 204 204 this->weaponMan.addWeapon( wpRight3, 3, 5); 205 */ 206 207 this->weaponMan.addWeapon( acid0, 3, 0);208 this->weaponMan.addWeapon( acid1, 3, 1);205 206 207 // this->weaponMan.addWeapon( acid0, 3, 0); 208 // this->weaponMan.addWeapon( acid1, 3, 1); 209 209 210 210 211 211 this->secWeaponMan.addWeapon( cannon, 0, 2); 212 this->secWeaponMan.addWeapon( spike, 1, 3);212 // this->secWeaponMan.addWeapon( spike, 1, 3); 213 213 // this->secWeaponMan.addWeapon( acid0, 2, 2); 214 214 // this->secWeaponMan.addWeapon( acid1, 2, 3); 215 215 216 216 217 this->weaponMan.changeWeaponConfig(3); 218 this->secWeaponMan.changeWeaponConfig(1); 217 this->weaponMan.changeWeaponConfig(0); 218 this->secWeaponMan.changeWeaponConfig(0); 219 219 220 220 221 curWeaponPrimary = 0; 221 curWeaponSecondary = 1;222 curWeaponSecondary = 0; 222 223 223 224 Playable::weaponConfigChanged(); … … 226 227 227 228 weaponEnergyRegen = 10; // 10 einheiten pro Sekunde 228 engineSpeedBase = 5;229 engineSpeedBase = 15; 229 230 shieldRegen = 2; 230 231 … … 246 247 247 248 248 /* this->loadModel("models/ships/mantawing.obj");*/ 249 this->loadModel("models/spaceships/human_spaceship_fighter.obj", .25); 249 250 //this->setVisibiliy(false); 250 251 … … 1087 1088 void SpaceShip::previousWeaponConfig() 1088 1089 { 1090 /* 1089 1091 this->curWeaponPrimary = (this->curWeaponPrimary + 1) % 3; 1090 1092 this->weaponMan.changeWeaponConfig(this->curWeaponPrimary); 1093 */ 1094 this->weaponMan.previousWeaponConfig(); 1091 1095 Playable::weaponConfigChanged(); 1092 1096 } -
trunk/src/world_entities/space_ships/space_ship.h
r10368 r10516 82 82 void setPlaymodeXML(const std::string& playmode); //recieves the playmode from a string (useful for script implementation) 83 83 void setActionWidthPercentage(int i); 84 void setTravelSpeed(float f); 84 85 void updateTravelDistance(); 85 86 virtual void movement (float dt);
Note: See TracChangeset
for help on using the changeset viewer.