Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9996 in orxonox.OLD


Ignore:
Timestamp:
Dec 3, 2006, 6:34:43 PM (17 years ago)
Author:
nicolasc
Message:

updated spaceship to use all 3 blasters, set timing in medium blaster

Location:
branches/playability/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r9987 r9996  
    133133
    134134  //weapons:
    135   Weapon* wpRight = new HeavyBlaster ();
    136   wpRight->setName("Blaster Right");
    137   Weapon* wpLeft = new HeavyBlaster ();
    138   wpLeft->setName("Blaster Left");
     135  Weapon* wpRight1 = new LightBlaster ();
     136  wpRight1->setName("Light Blaster Right");
     137  Weapon* wpLeft1 = new LightBlaster ();
     138  wpLeft1->setName("Medium Blaster Left");
     139
     140  Weapon* wpRight2 = new MediumBlaster ();
     141  wpRight2->setName("Light Blaster Right");
     142  Weapon* wpLeft2 = new MediumBlaster ();
     143  wpLeft2->setName("Medium Blaster Left");
     144
     145  Weapon* wpRight3 = new HeavyBlaster ();
     146  wpRight3->setName("Heavy Blaster Right");
     147  Weapon* wpLeft3 = new HeavyBlaster ();
     148  wpLeft3->setName("Heavy Blaster Left");
    139149
    140150  Weapon* cannon = new BoomerangGun();//Cannon();
     
    142152
    143153
    144   this->weaponMan.addWeapon( wpLeft, 0, 0);
    145   this->weaponMan.addWeapon( wpRight, 0, 1);
     154  this->weaponMan.addWeapon( wpLeft1, 0, 0);
     155  this->weaponMan.addWeapon( wpRight1, 0, 1);
     156  this->weaponMan.addWeapon( wpLeft2, 0, 2);
     157  this->weaponMan.addWeapon( wpRight2, 0, 3);
     158  this->weaponMan.addWeapon( wpLeft3, 0, 4);
     159  this->weaponMan.addWeapon( wpRight3, 0, 5);
    146160  this->secWeaponMan.addWeapon( cannon, 0, 0);
    147161
    148162  this->weaponMan.changeWeaponConfig(0);
    149163
    150   wpRight->requestAction(WA_ACTIVATE);
    151   wpLeft->requestAction(WA_ACTIVATE);
     164  wpRight1->requestAction(WA_ACTIVATE);
     165  wpLeft1->requestAction(WA_ACTIVATE);
     166  wpRight2->requestAction(WA_ACTIVATE);
     167  wpLeft2->requestAction(WA_ACTIVATE);
     168  wpRight3->requestAction(WA_ACTIVATE);
     169  wpLeft3->requestAction(WA_ACTIVATE);
    152170  cannon->requestAction(WA_ACTIVATE);
    153171
  • branches/playability/src/world_entities/weapons/medium_blaster.cc

    r9975 r9996  
    5151 
    5252
    53   this->setStateDuration(WS_SHOOTING, 0.05);
     53  this->setStateDuration(WS_SHOOTING, 0.2);
    5454  this->setStateDuration(WS_RELOADING, 0);
    5555  this->setStateDuration(WS_ACTIVATING, .5);
  • branches/playability/src/world_entities/weapons/weapon_manager.cc

    r9965 r9996  
    103103
    104104  this->currentConfigID = 0;
    105   this->slotCount = 2;
     105  this->slotCount = 6;
    106106  //this->weaponChange;
    107107
Note: See TracChangeset for help on using the changeset viewer.