Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3881 in orxonox.OLD for orxonox/trunk/src/world_entities/player.cc


Ignore:
Timestamp:
Apr 18, 2005, 8:05:00 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: weapon change enhanced. weapon handling is now better and safer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/player.cc

    r3878 r3881  
    4444  */
    4545  this->model = (Model*)ResourceManager::getInstance()->load("models/reaplow.obj", OBJ, RP_CAMPAIGN);
    46   //this->model = (Model*)ResourceManager::getInstance()->load("models/weapon_packet.obj", OBJ, RP_CAMPAIGN);
    4746  travelSpeed = 15.0;
    4847  velocity = new Vector();
     
    5352  //weapons:
    5453  this->weaponMan = new WeaponManager();
    55   Weapon* wpRight = new TestGun(this, new Vector(-2.6, 0.1, 3.0), new Quaternion(), 0);
    56   Weapon* wpLeft = new TestGun(this, new Vector(-2.6, 0.1, -3.0), new Quaternion(), 1);
     54  Weapon* wpRight = new TestGun(this,Vector(-2.6, 0.1, 3.0), Quaternion(), 0);
     55  Weapon* wpLeft = new TestGun(this, Vector(-2.6, 0.1, -3.0), Quaternion(), 1);
    5756 
    5857  this->weaponMan->addWeapon(wpRight, W_CONFIG0);
    5958  this->weaponMan->addWeapon(wpLeft, W_CONFIG1);
    60 
    61   //this->weapons->add(wpRight);
    62   //this->activeWeapon = wpRight;
    63   //this->activeWeaponL = wpLeft;
     59  this->weaponMan->addWeapon(wpRight, W_CONFIG2);
     60  this->weaponMan->addWeapon(wpLeft, W_CONFIG2);
     61
    6462}
    6563
Note: See TracChangeset for help on using the changeset viewer.