Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10516 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Jan 30, 2007, 9:17:21 PM (18 years ago)
Author:
patrick
Message:

merged playability back to trunk

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  
    174174  Weapon* cannon = new SwarmLauncher();
    175175  cannon->setName( "SwarmLauncher");
    176 
     176/*
    177177  Weapon* spike = new SpikeThrower();
    178178  spike->setName( "SpikeThrower" );
     
    183183
    184184  Weapon* acid1 = new AcidLauncher();
    185   acid1->setName( "AcidSplasher" );
     185  acid1->setName( "AcidSplasher" );*/
    186186
    187187
     
    194194  this->weaponMan.addWeapon( wpLeft3, 2, 4);
    195195  this->weaponMan.addWeapon( wpRight3, 2, 5);
    196 /*
     196
    197197  this->weaponMan.addWeapon( wpLeft1, 3, 0);
    198198  this->weaponMan.addWeapon( wpRight1, 3, 1);
     
    203203  this->weaponMan.addWeapon( wpLeft3, 3, 4);
    204204  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);
    209209
    210210
    211211  this->secWeaponMan.addWeapon( cannon, 0, 2);
    212   this->secWeaponMan.addWeapon( spike, 1, 3);
     212//   this->secWeaponMan.addWeapon( spike, 1, 3);
    213213//   this->secWeaponMan.addWeapon( acid0, 2, 2);
    214214//   this->secWeaponMan.addWeapon( acid1, 2, 3);
    215215
    216216
    217   this->weaponMan.changeWeaponConfig(3);
    218   this->secWeaponMan.changeWeaponConfig(1);
     217  this->weaponMan.changeWeaponConfig(0);
     218  this->secWeaponMan.changeWeaponConfig(0);
     219
    219220
    220221  curWeaponPrimary    = 0;
    221   curWeaponSecondary  = 1;
     222  curWeaponSecondary  = 0;
    222223
    223224  Playable::weaponConfigChanged();
     
    226227
    227228  weaponEnergyRegen = 10;       // 10 einheiten pro Sekunde
    228   engineSpeedBase   = 5;
     229  engineSpeedBase   = 15;
    229230  shieldRegen       = 2;
    230231
     
    246247
    247248
    248 /*  this->loadModel("models/ships/mantawing.obj");*/
     249 this->loadModel("models/spaceships/human_spaceship_fighter.obj", .25);
    249250  //this->setVisibiliy(false);
    250251
     
    10871088void SpaceShip::previousWeaponConfig()
    10881089{
     1090  /*
    10891091  this->curWeaponPrimary    = (this->curWeaponPrimary + 1) % 3;
    10901092  this->weaponMan.changeWeaponConfig(this->curWeaponPrimary);
     1093  */
     1094  this->weaponMan.previousWeaponConfig();
    10911095  Playable::weaponConfigChanged();
    10921096}
  • trunk/src/world_entities/space_ships/space_ship.h

    r10368 r10516  
    8282    void setPlaymodeXML(const std::string& playmode); //recieves the playmode from a string (useful for script implementation)
    8383    void setActionWidthPercentage(int i);
     84    void setTravelSpeed(float f);
    8485    void updateTravelDistance();
    8586    virtual void movement (float dt);
Note: See TracChangeset for help on using the changeset viewer.