Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 5, 2007, 11:01:09 PM (17 years ago)
Author:
nicolasc
Message:

version bump

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/vs-enhencements/src/world_entities/space_ships/space_ship.cc

    r10671 r10672  
    167167//   this->weaponMan.createWeaponSlot(0, 3.270, 1.028, .155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    168168//   this->weaponMan.createWeaponSlot(1, 3.270, 1.028, -.155, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    169   this->weaponMan.createWeaponSlot(2, 4.385, .063, .876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    170   this->weaponMan.createWeaponSlot(3, 4.385, -.063, -.876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    171   this->weaponMan.createWeaponSlot(4, 1.635, -.612, 2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    172   this->weaponMan.createWeaponSlot(5, 1.536, -.612, -2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    173   this->weaponMan.createWeaponSlot(6, 1.536, -.612, 3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    174   this->weaponMan.createWeaponSlot(7, 1.536, -.612, -3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
    175 
    176 
    177 //   this->weaponMan.addWeaponToSlot(0, 0, "RFCannon");
    178 //   this->weaponMan.addWeaponToSlot(0, 1, "RFCannon");
    179 //   this->weaponMan.addWeaponToSlot(0, 2, "RFCannon");
    180 //   this->weaponMan.addWeaponToSlot(0, 3, "RFCannon");
    181 //   this->weaponMan.addWeaponToSlot(1, 0, "RFCannon");
    182 //   this->weaponMan.addWeaponToSlot(1, 1, "RFCannon");
    183 //   this->weaponMan.addWeaponToSlot(1, 2, "RFCannon");
    184 //   this->weaponMan.addWeaponToSlot(1, 3, "RFCannon");
     169//   this->weaponMan.createWeaponSlot(2, 4.385, .063, .876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     170//   this->weaponMan.createWeaponSlot(3, 4.385, -.063, -.876, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     171//   this->weaponMan.createWeaponSlot(4, 1.635, -.612, 2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     172//   this->weaponMan.createWeaponSlot(5, 1.536, -.612, -2.691, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     173//   this->weaponMan.createWeaponSlot(6, 1.536, -.612, 3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     174//   this->weaponMan.createWeaponSlot(7, 1.536, -.612, -3.254, WTYPE_ALLDIRS | WTYPE_DIRECTIONAL);
     175
     176
     177  this->weaponMan.addWeaponToSlot(0, 0, "RFCannon");
     178  this->weaponMan.addWeaponToSlot(0, 1, "RFCannon");
     179  this->weaponMan.addWeaponToSlot(0, 2, "RFCannon");
     180  this->weaponMan.addWeaponToSlot(0, 3, "RFCannon");
     181  this->weaponMan.addWeaponToSlot(1, 0, "RFCannon");
     182  this->weaponMan.addWeaponToSlot(1, 1, "RFCannon");
     183  this->weaponMan.addWeaponToSlot(1, 2, "RFCannon");
     184  this->weaponMan.addWeaponToSlot(1, 3, "RFCannon");
    185185
    186186  this->weaponMan.addWeaponToSlot(0, 4, "NadionLaser");
     
    211211  Playable::weaponConfigChanged();
    212212
    213   setReactor(10);
    214   setWeapon(10);
    215   setEngine(15);
    216 
    217213  this->bInit = false;
    218214
     
    221217//   loadHealth(100, 100, 0);
    222218//   loadElectronic(40, 50, .7, 3.0);
     219  loadReactor(10);
     220  loadWeapon(10);
     221  loadEngine(15);
    223222
    224223//   this->loadModel("models/spaceships/fighter_redesign9.obj");
     
    321320  State::getCamera()->setParent(this);
    322321
    323   LoadParam(root, "setReactor", this, SpaceShip, setReactor)
     322  LoadParam(root, "loadReactor", this, SpaceShip, loadReactor)
    324323  .describe("set reactor output");
    325324  LoadParam(root, "loadShield", this, WorldEntity, loadShield)
     
    329328  LoadParam(root, "loadElectronic", this, WorldEntity, loadElectronic)
    330329  .describe("set electronics parameters: current strenght , max strenght, threshhold value (0..1), regeneration rate");
    331   LoadParam(root, "setEngine", this, SpaceShip, setEngine)
     330  LoadParam(root, "loadEngine", this, SpaceShip, loadEngine)
    332331  .describe("set base speed");
    333332  LoadParam(root, "loadEnergyShare", this, SpaceShip, loadEnergyShare)
    334333  .describe("set energy partitioning: shield, weapons, engine (sum should be 1)");
    335   LoadParam(root, "setWeapon", this, SpaceShip, setWeapon)
     334  LoadParam(root, "loadWeapon", this, SpaceShip, loadWeapon)
    336335  .describe("set weapon regeneration");
    337336
     
    444443void SpaceShip::tick (float time)
    445444{
    446 /*
     445
    447446  if( !this->bInit)
    448447  {
     
    455454      {
    456455        int slot = ws->getWeaponSlot();
    457         int side = ws->getWeaponSide(); //FIXME / REMOVE: is not used// HACK needed for some weapons (left/right)
     456//         int side = ws->getWeaponSide(); //FIXME / REMOVE: is not used// HACK needed for some weapons (left/right)
    458457        this->getWeaponManager().setSlotPosition(slot, (*it).second->getCenter());
    459458        this->getWeaponManager().setSlotDirection(slot, ws->getRelDir());
     
    463462    }
    464463  this->bInit = true;
    465   }*/
     464  }
    466465
    467466  // Playable::tick(time);
Note: See TracChangeset for help on using the changeset viewer.